How do I enter emergency mode? In CentOS/RHEL




In case of a malfunctioning system, systemd emergency targets can be used. In the emergency target, it does not try to mount the root filesystem. In case the root system file is not working, this should be the correct target. This should be the emergency target which still requires a password. In the case of forgetting your root user account password.









Step 1: Getting your system up and running






  1. Sign in to your system or register a newly created one by logging in to your VPSie account
  2. Connect by SSH using the credentials we emailed you.
  3. Once you have logged into your Ubuntu instance, run these commands to update your system.
apt-get update && apt-get upgrade -y







In order to clone the repositories, GIt must be installed first. To install GIt, please run the following command.








Step 2: Entering emergency mode with Centos/RHEL









Step 1: Start your computer.





Step 2: If you see the GRUB2 boot option, select it by pressing the letter e – located at the bottom of the screen.





Step 3: The screen will look like the one below, find the line that begins with linux16





Step 4: Scroll down to the bottom of the page, then type systemd.unit=emergency followed by Ctrl + x to start the system as an emergency system.






Then you will be prompted for your root password, enter it, and you will be taken to emergency mode. It’s that simple. It is important that you follow all the steps correctly here, otherwise you may not get the emergency mode screen and have to repeat the process. 







Thanks for reading! I hope it was informative for you! 




Try VPSie for free today!