1

I have this in my linux machine

  grub>

how from this I start the linux machine as single user mode?

in order to update some file after boot

dandan
  • 1,021
  • 4
  • 13
  • 21

1 Answers1

0

For RHEL < 7, quoting RHEL docs:

At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu.

  • Select Red Hat Enterprise Linux with the version of the kernel that you wish to boot and type a to append the line.
  • Go to the end of the line and type single as a separate word (press the Spacebar and then type single). Press Enter to exit edit mode.

For RHEL >= 7 Source:

Scroll down until you find the actual kernel line. It starts with linux16 /vmlinuz-... and will span a couple of lines. You're now looking for the ro keyword in the kernel linux, which would start the OS with a read only (ro) file system, replace ro with rw init=/sysroot/bin/bash.

Then hit CTRL+X to boot.

fuero
  • 9,413
  • 1
  • 35
  • 40