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.

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

Virtualbox Change Storage Size

Changing the storage size of a virtual machine in VirtualBox involves a few steps. Here’s a general guide. Backup your Virtual Machine (VM) Before...
habibzain
35 sec read

Easy Setup Logrotate Nginx Ubuntu

Log rotation is an important aspect of managing log files on a Linux system, including those generated by Nginx. Logrotate is a utility that...
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