Ubuntu GRUB Repair: Reinstall GRUB From a Live USB

If Ubuntu no longer boots because GRUB is missing, damaged, or replaced by another bootloader, you can usually repair it from an Ubuntu live USB without reinstalling the operating system. The safest manual method is to boot a live session, mount the installed system, enter it with chroot, reinstall GRUB, and regenerate the boot menu.

Important: the device names below are examples. Do not copy a partition name such as /dev/sda2 or /dev/nvme0n1p3 until you have confirmed it belongs to your Ubuntu installation. Selecting the wrong disk can make another operating system unbootable.

Before you repair GRUB

You need an Ubuntu live USB that can boot on the affected computer. Canonical's current bootable USB documentation recommends an 8 GB or larger USB drive and warns that writing the image erases the drive. If you already have working Ubuntu installation media, you can reuse it.

This guide is intended for a standard Ubuntu installation with accessible Linux partitions. Full-disk encryption, complex LVM, software RAID, or unusual Btrfs layouts can require extra unlock or mount steps before the chroot procedure.

1. Boot the USB and choose Try Ubuntu

Start the computer from the Ubuntu USB and choose Try Ubuntu rather than installing. Canonical's Ubuntu Desktop installation guide confirms that the Try Ubuntu option starts a live environment without installing to the internal drive.

For UEFI systems, boot the USB in UEFI mode when possible. You can check the live session with:

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

Ubuntu's UEFI documentation explains why the firmware mode should match the installed system, especially on dual-boot PCs.

Ubuntu live session welcome screen with Try Ubuntu selected
Boot the live USB and enter the Try Ubuntu session so you can repair the installed system without reinstalling it.

2. Identify the Ubuntu and EFI partitions

Open Terminal with Ctrl+Alt+T, then list filesystems:

lsblk -f

Find the Linux root partition that contains your Ubuntu installation. It is commonly formatted as ext4. On a UEFI installation, also identify the EFI System Partition, usually a small FAT32/vfat partition. If you have a separate /boot partition, note that as well.

Ubuntu terminal showing lsblk -f with EFI, ext4 Ubuntu, swap, and live USB filesystems
lsblk -f helps distinguish the Ubuntu root filesystem from the EFI System Partition and the live USB.

3. Mount Ubuntu and enter a chroot

Replace the example device names with the partitions you identified. First mount the Ubuntu root filesystem:

sudo mount /dev/ROOT_PARTITION /mnt

If the installation has a separate /boot partition, mount it at /mnt/boot. For UEFI, mount the EFI System Partition:

sudo mkdir -p /mnt/boot/efi
sudo mount /dev/EFI_PARTITION /mnt/boot/efi

Bind the live system's runtime filesystems into the installed system, then enter it:

for i in /dev /dev/pts /proc /sys /run; do sudo mount --bind "$i" "/mnt$i"; done
sudo chroot /mnt

Your prompt should change to indicate that commands now run against the installed Ubuntu system.

Ubuntu terminal mounting the root and EFI partitions, bind mounting system directories, and entering chroot
After mounting the installed filesystems, chroot lets GRUB tools operate on the Ubuntu installation rather than the live USB.

4. Reinstall GRUB and rebuild the menu

The command differs slightly between UEFI and Legacy BIOS systems:

Boot modeGRUB install command
UEFIgrub-install
Legacy BIOSgrub-install /dev/DISK

For Legacy BIOS, use the whole disk, such as /dev/sda or /dev/nvme0n1, not a numbered partition. For UEFI, the EFI System Partition must already be mounted at /boot/efi. This matches the installation behavior described in the current GNU GRUB manual.

After GRUB installs successfully, regenerate Ubuntu's boot menu:

update-grub

On Ubuntu, update-grub is a wrapper that generates /boot/grub/grub.cfg, as documented in the Ubuntu man page. Let it finish and check that it finds at least one Linux kernel.

Ubuntu terminal showing successful grub-install and update-grub output
A successful repair ends with GRUB installed and a freshly generated configuration containing the installed Linux kernels.

5. Exit the chroot and reboot

Leave the installed system, unmount the repair environment, and restart:

exit
sudo umount -R /mnt
sudo reboot

Remove the live USB when the machine restarts. GRUB should load from the internal drive again.

If GRUB still does not appear

  • Check firmware boot order: on UEFI PCs, make sure the Ubuntu entry or the correct internal drive is ahead of other boot entries.
  • Confirm the live USB boot mode: if the installed Ubuntu system is UEFI but the repair USB was started in Legacy mode, reboot the USB explicitly in UEFI mode and repeat the repair.
  • Recheck the partitions: mounting the wrong Linux root or EFI partition is one of the most common reasons a repair appears successful but does not boot.
  • Do not disable Secure Boot automatically: supported Ubuntu releases use signed shim and GRUB components. Treat Secure Boot changes as troubleshooting, not the first repair step.
  • Watch for disk errors: repeated I/O errors, missing partitions, or filesystem corruption point to a storage problem rather than a GRUB-only problem. Back up recoverable data before making further changes.

If the system reaches Ubuntu after rebooting, the GRUB repair is complete; there is no need to reinstall Ubuntu or keep third-party boot-repair software installed.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.