25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Welcome to Emergency mode in Linux – Boot error

by | Mar 26, 2021

Stuck with the boot error, Welcome to Emergency mode in Linux? We can help you.

Recently we had a customer who came across this error. At times, the emergency mode means that there is corruption in the file system.

As part of our Server Management Services, we assist our customers with several Linux queries.

Today, let us see how to fix, Welcome to Emergency mode in Linux.

 

Welcome to Emergency mode in Linux – Boot error

Generally, this error occurs after an emergency power outage on a server, a system crash, or similar situations.

However, in 90% of cases, the error relates to fstab or Linux file system damage which we can fix quite easily.

Moving ahead, let us see how to resolve this issue.

  • How to Fix Linux File System Errors Using LiveCD

Suppose, there is a failure on the server and while connecting to Linux server in the remote console or VNC, we see the following:

Welcome to emergency mode! After logging in, type “journalctl -xb” to view system logs, “systemctl reboot” to reboot, “systemctl default” or ^D to try again boot into default mode.
Give root password for maintained (or press Control-D to continue).

The emergency mode provides a minimum Linux environment to recover our system if an OS cannot boot into the rescue mode.

In the emergency mode, Linux mounts the root file system as read-only.

If we press Control + D, the system will start booting, but in some time it gets back to the emergency mode.

In order to solve this, we boot our server from a LiveCD or LiveUSB and use the SystemRescueCd tool.

Then we run a file system check and fix all found errors using this command:

# fsck -y /dev/sda1

Eventually, we check all partitions and restart our host. In most cases, this will solve the problem.

  • Emergency Mode due to /etc/fstab issues

Another possible error is a fstab damage or incorrect configuration.

Initially, we try to boot from systemrescuecd. Then we check whether the issue is resolved. If not, open fstab.

In this case, there were no disk partitions to mount.

To solve this, we must get UUIDs of disks using blkid.

Then add all the information we have got in fstab and reboot our Linux host. If done properly, our Linux will boot in normal mode.

  • Linux Has Been Installed from a USB Stick

When we install Linux from a USB media, after a server restart, the system might boot with a ‘Welcome to emergency mode!’ message.

After viewing fstab, turns out that the USB device displays there as a working partition.

In this case, we delete the USB drive mount entry and reboot the system.

Like in the first case, we must boot from systemrescuecd and open fstab. It is likely, we will see a similar entry- /mnt/usb1.

Just remove this line if we are not using the USB drive.

  • Dualboot Windows and Linux configuration

Another variant of this problem is using both Windows and СentOS on the same computer. The emergency mode error often occurs when mounting Windows partitions during the boot.

Usually, we can solve the problem by disabling Windows fast startup.

To disable it, select Change settings that are currently unavailable in Control Panel\All Control Panel Items\Power Options\System Settings. Uncheck the option “Turn on fast startup”.

Eventually, save the changes and restart the device. Now, Linux should boot normally.

In addition, using LVM partitions may also lead to this error. However, the solution is similar to the common partition: check fstab configuration and fix errors in it.

[Need help with either of these? We’d be happy to assist]

 

Conclusion

To conclude, this error occurs after an emergency power outage on a server, a system crash, or similar situations. Today we saw how our Support Techs fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

1 Comment

  1. Jemil

    Thank you sir

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF