• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 6 : How to Boot into single user mode

by admin

Booting into single user mode using GRUB is accomplished by editing the kernel line. single user mode can be accessed by appending an “S“, “s“, or “single” to the kernel command line in GRUB. This assumes that either the GRUB boot menu is not password protected or that you have access to the password if it is.

Steps

1. When the system boots up, you will see the GRUB countdown, which is set to 5 seconds by default.

GRUB countdown

2. Press “Esc” to intercept this countdown and go enter a GRUB menu as show below :

GRUB menu

3. Select/highlight the desired kernel using the up/down arrow keys. Press ‘e’ to start editing the desired kernel. In my case, I have only one kernel.

Highlight desired kernel in GRUBmenu

4. Scroll down to the “kernel…” line. This line tells GRUB which kernel to boot. Press ‘e’ again to edit this line. Move to the end of the line (instead, you can also press a to directly go to the end of the kernel line). You can add number “1” or word “single” to the end (to signify single user mode).

GRUB single user mode

5. Once you have finished the change, press Enter to accept the editing. Then press ‘b’ to boot using that kernel and boot into runlevel 1 (single user mode). This will boot the system into single-user mode, i.e. the boot process will stop immediately after execution of rc.sysinit and present a root BASH shell.

CentOS / RHEL 6 : How to password-protect single user mode
CentOS / RHEL 5 : How to password-protect single user mode

Filed Under: Linux

Some more articles you might also be interested in …

  1. env Command Examples in Linux
  2. What Are Dirty Pages in Linux
  3. dstat Command Examples in Linux
  4. CentOS / RHEL 7 : unable to start vsftpd service
  5. df Command Examples in Linux
  6. locate Command Examples in Linux
  7. pvcreate Command Examples in Linux
  8. groupmod Command Examples in Linux
  9. netstat Command Examples in Linux
  10. How to configure LDAP Client on CentOS/RHEL 6 using SSSD

You May Also Like

Primary Sidebar

Recent Posts

  • qemu-system-x86_64: command not found
  • timedatectl: command not found
  • mpirun.openmpi: command not found
  • startkde: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright