How to boot into emergency mode in CentOS/RHEL?

In this article, you will learn about how to boot into emergency mode in CentOS/RHEL?

If your system is not functioning correctly, you can use systemd emergency targets. In the emergency target, it does not try to mount the root filesystem. It should be the correct target if the root system file were having a problem. Note that the emergency target still requires a password. If you have been forgotten the root user account password. So, you can go to the link Reset forget root user password.

In emergency mode, you can troubleshoot for your problem, or you can revert the changes you have done before. It is also a good thing to manage the issues with the system.

Booting Centos/RHEL into emergency mode

To go to the emergency mode follow the below steps.

Step 1: Turn on your computer.

Step 2: When you see the GRUB2 boot menu, it means boot option, something like the below picture, press letter e to edit the boot menu.

Linux GRUB menu screen
Linux GRUB menu screen

Step 3: You will see the screen like below picture, you have to look for the line which is starting with linux16 .

How to boot into emergency mode in CentOS/RHEL

Step 4: Please go to the end of this line, and there you have to type systemd.unit=emergency and then press Ctrl + x to start the system in emergency mode.
Also, you can see the below picture.

editing the grub file and putting there systemd.unit=emergency

It will ask for your root user account password, enter the password and you are into the emergency mode. That’s it. The changes you are doing here make sure that all the steps you perform correctly otherwise you might not get the emergency mode screen and you have to follow again the whole process. So follow every step wisely as described. if you found any problem you can share it with us so we can reply to that problem.


In this tutorial, you learned, how to boot into emergency mode in CentOS/RHEL. I hope, you understand but if you have any questions, you can ask in the comment section.

Leave a Reply

Your email address will not be published.