Booting into rescue,emergency or recovery mode on ubuntu

Ubuntu 22.04

Rescue Mode

  1. Hold Shift (for BIOS) or press Esc (for UEFI) during boot to access the GRUB menu.

  2. In GRUB, highlight the kernel like Ubuntu and press e to edit.

  3. Find the line starting with linux and append:

    systemd.unit=rescue.target

  4. Press Ctrl + X or F10 to boot.

  5. Remount root filesystem as read-write.

    mount -n -o remount,rw /

Emergency Mode

  1. Hold Shift (for BIOS) or press Esc (for UEFI) during boot to access the GRUB menu.

  2. In GRUB, highlight the kernel like Ubuntu and press e to edit.

  3. Find the line starting with linux and append:

    systemd.unit=emergency.target

  4. Press Ctrl + X or F10 to boot.

  5. Remount root filesystem as read-write.

    mount -n -o remount,rw /

Recovery Mode

  1. Hold Shift (for BIOS) or press Esc (for UEFI) during boot to access the GRUB menu.

  2. In GRUB, highlight the kernel like recovery mode and press enter to boot.

  3. Choise root option to open a shell prompt.

  4. Remount root filesystem as read-write.

    mount -n -o remount,rw /