Booting CentOS/RHEL 7&8 in to Emergency mode / Recovery mode

Procedure:


Start your RHEL / CentOS 7/8 Linux machine. Upon the boot-loader appears, press any key except Enter to interrupt the countdown.

 

Now press "e" key to alter the current entry, where we can modify the default boot-loader entry and log in to emergency mode.

 

With the cursor keys, you can navigate to the line that starts with Linux. Also, need to append systemd.unit=emergency.target to the end of the line.

 

Later press  Ctrl + x key to boot using the modified configuration.

 

Log in to the emergency mode by entering the root password.

 

Use the mount command to remount the / file system read/write. This will enable you to edit the file system.

# mount -o remount,rw /

 

You should be able to rescue a broken system from the emergency mode. 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I configure a ip range in CentOS7?

You have to use a range file Edit /etc/sysconfig/network-scripts/ifcfg-enp0s3 and make...

Adding a Public IPv6 Address to a Linux Server (CentOS 7)

To configure an additional public IPv6 address in CentOS 7, proceed as follows:...

How To Install EPEL Repository On CentOS And RHEL 7

How to install EPEL for Centos 7 [root@localhost ~]# cat  /etc/centos-release CentOS Linux...

Common Commands (CentOS 7)

Basic Configuration Query or System Locale...

Install LAMP Stack on CentOS 7

Install LAMP Stack on CentOS 7 One of the most simple and barebones solutions you can have for...