habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Fix Linux Welcome to Emergency Mode

1 min read

Fix Linux Welcome to emergency mode

Hi Dude, today I faced a problem running my linux server. The linux distro that I use is Centos 7. Suddenly server went down, after I logged in via the console the monitor show Welcome to Emergency Mode. Looked like this.

fix linux maintenance mode

If we face like this, don’t panic. Calm down so you can think. Ha ha. :D. I write this to remember if in the future it happens again to me or my blog readers who experience the same thing.

Why Emergency Mode Happen

Usually this happens for two reasons.

  1. There is an additional partition in /etc/fstab that is not permanently mounted.
  2. There is a corrupted partition, and it is necessary to do a file system check with the fsck tool.

In my case, I don’t have any additional partitions, so what I checked is the existing partition, I’m afraid the partition is corrupt.

Lets Dig Problem Linux Emergency Mode

Enter password root to login to root mode. And then type “journalctl -xb” to view system logs. Read the logs carefully and pay attention to the red log lines. When the log shown, I see an error in the mounting partition sda2 and sda3.

Boot with Live CD

Then, I try to run fsck on the server. And it can’t. Because /etc/sda2 and /etc/sda3 are still mounted. Finally I used “Linux Live CD Gparted” to run fsck.

gparted live cd to fix linux maintenance mode
gparted screen

Running gparted with default mode. And then go to terminal. Type this.

root@debian:~# fsck /etc/sda2
fix linux maintenance mode

We just enter “y” only.

After finished, repeat the same steps in /etc/sda3.

root@debian:~# fsck /etc/sda3

After all finish, reboot server. And now the problem is gone.

That’s it. Easiest way linux solve eelcome emergency mode. May be it’s helpful, please feel free to leave a comment if you have any questions and I’ll appreciate it.


habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Centos Failed Update Kernel

Today I did a kernel update on my server with Centos 7 OS. At the end of the update process, I found a kernel...
habibzain
1 min read

Easy Fix Missing mirrorlist http://mirrorlist.centos.org on CentOS 7

When running yum update or command that utilize the yum system, errors similar to the following are produced: If you’re encountering issues with the...
habibzain
1 min read

Easy Create Laravel Project with Composer

Requirement Laravel, a popular PHP framework, is renowned for its elegant syntax and robust features, making it a top choice for web developers. One...
habibzain
1 min read

Leave a Reply

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

Never miss good article from us, get weekly updates in your inbox