How Do I Boot Ubuntu as Root?
Contents

During boot, press and hold Shift (for BIOS) or ESC (for UEFI). This will bring up the Grub2 boot menu from where we can select “recovery mode” (usually the second boot entry). Choose “Resume normal boot” to proceed booting as usual.

How do you drop into root shell?

Here’s how I boot into Ubuntu recovery mode and access the file system as root in write mode.

  1. Hold ‘Shift’ while the machine is starting up to load up GNU GRUB.
  2. Start up Ubuntu in recovery mode.
  3. Choose “Drop To Root Shell Prompt’
  4. By default, this will allow you to access the file system in read-only mode.

How do I get into root shell without password?

Press ‘e’ on your keyboard to edit the boot parameter, then scroll down and add init=/bin/bash in the end of kernel (or linux) line. Then press Ctrl+X or F10 will boot directly into root shell prompt without password.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest