Linux

Boot the System Directly into a Root Bash Shell from the GRUB Bootloader#

Access the GRUB menu#

Hold down the left Shift key during reboot to bring up the GRUB menu.

Select the desired boot entry#

Use the arrow keys to highlight the GRUB boot menu entry you wish to use.

Edit the GRUB boot commands#

Press e to edit the GRUB boot commands for the selected boot menu entry. You will see a screen similar to this:

GRUB boot menu

Modify the Linux boot command#

  • Scroll down to the line starting with linux.
  • Move the cursor to the end of this line and add the following:
rw init=/bin/bash

After the modification, the line should look something like this:

Modified GRUB boot command

Boot with the modified options#

Press Ctrl+X or F10 to boot using the modified kernel options.

These changes are temporary and will only apply to the current boot. Once the system reboots again, the original GRUB configuration will be restored.