How to Boot into Single User Mode in CentOS/RHEL 7?

First restart your CentOS 7 machine, once boot process starts, wait for the GRUB boot menu to appear as shown in the screenshot below.

Next, select your Kernel version from the grub menu item and press e key to edit the first boot option. Now use the Down arrow key to find the kernel line (starts with “linux16“), then change the argument ro to rw init=/sysroot/bin/sh as shown in the screenshot below.

Once you have finished the task in the previous step, press Ctrl-X or F10 to boot into single user mode (access an emergency shell).

Now mount root (/) filesystem using the following command.

# chroot /sysroot/

At this point, you can perform all the necessary low-level system maintenance tasks. Once you are done, reboot the system using this command.

# reboot -f



Was this answer helpful? 0 Users Found This Useful (0 Votes)