How to exit from emergency mode in Linux?

When I start my Linux computer it shows the given message on the screen “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 to boot into default mode.”  Trying different options and commands but it always brings me back to this screen.

This article explains how you can solve this issue and boot your Linux computer into default mode.

What is the emergency mode in Linux?

The emergency mode in Linux provides the most minimal environment possible and allows you to repair your system even if the system is unable to enter rescue mode. In emergency mode, the system mounts the root file system only for reading, does not attempt to mount any other local file systems, does not activate network interfaces, and only starts few essential services.

You can manually get into emergency mode from the grub2 screen by pressing e.

How to get out of the emergency mode in Linux

If you manually enter into emergency mode then you can mode to rescue mode by pressing Ctrl+x and then enter.

There may be a situation when your system automatically gets into the emergency mode for example when a filesystem is corrupted on your system then you may find yourself stuck on this screen. Try the given options to fix this issue on your system.

Option 1:

  • If it prompts you for a password enter the root password on your system
  • Press Ctrl+Alt+Del to reboot your system and see if this can fix the issue
  • Now run mount -a command to mount all the disks and this will also display the all unmount points on your system
  • Use vi /etc/fstab and comment all unmounted points in this file and then
  • Execute the reboot command to restart your system

Option 2:

If option 1 doesn’t work on your system then use the following –

  • If it prompts you for a password enter the root password on your system
  • Run the journalctl -xb command and view the system log here read the highlighted lines and try to identify the corrupted filesystem
  • Then follow how to fix corrupted filesystem to fix the corrupted filesystem on your system
  • And then use reboot to restart your system

Conclusion

Hopefully, the methods that are given in this article fix issue on your system. If you are still facing the issue then write us in the comments below.

Leave a Comment