• 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. flashrom: command not found
  2. chntpw Command Examples in Linux
  3. Linux OS Service ‘lm_sensors’
  4. e2label: command not found
  5. How to change the PATH variable in Linux
  6. “shutdown” Command Examples in Linux
  7. lsns: command not found
  8. archlinux-java: command not found
  9. Intel I219-LM Centos 6 network failed to start
  10. RPM command examples to query, install, remove and upgrade packages

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright