KEuVUe149Y7e320zVKJqOjpo0SGIHzz7ueew9qo8
Bookmark

How to Fix You Are in Emergency Mode in Ubuntu Without Reinstal

Linuxslaves.com - Yesterday I encountered an issue in related to emergency mode when running Ubuntu 18.04 LTS Bionic Beaver with XFCE desktop environment on my laptop.

So I decided to make an article on how to fix these issues in Ubuntu, in case you run into the same issue.

You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode.

Suggested Read :

Press Enter for maintenance (or press Control-D to continue).

Ubuntu Emergency Mode Repair

As stated the message above, I run journalctl -xb (after logged in of course) and find that my /dev/sda3 is corrupt.

Here's how I get out of an emergency mode in Ubuntu :
  • Create a Ubuntu live USB
  • Restart the laptop and boot into live USB
  • Install e2fsck v1.43.1 by run the following commands :

sudo apt update
sudo apt install build-essential
wget http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.43.1/e2fsprogs-1.43.1.tar.gz
tar xzf e2fsprogs-1.43.1.tar.gz
cd e2fsprogs-1.43.1
./configure
make
cd e2fsck/
sudo ./e2fsck -y /dev/sda3

  • Don't forget to change /dev/sda3 with your corrupt filesystem name
  • Once completed, reboot the machine
  • Remove the live USB

Cheeerrs!. Ubuntu should be out of the emergency mode and works just fine as before. That's it!.