GRUB Rescue: Fixing "error: no such partition" and Other Boot Failures

Recover from grub rescue> prompts, "no such partition", "unknown filesystem" and missing kernels. Boot manually from the GRUB shell and repair with chroot.

Published November 27, 2026

Few things are as alarming as a black screen saying "error: no such partition. Entering rescue mode... grub rescue>". The good news is that GRUB rescue mode is a fully usable shell, your data is almost always intact, and the fix usually takes a few commands. This guide walks through diagnosing the prompt, booting manually, and repairing GRUB permanently.

The concept

GRUB drops to rescue mode when its core image loads but cannot find its modules or configuration. That happens when the partition GRUB expected has moved or changed: after resizing or deleting partitions, cloning a disk, installing Windows, changing disk order, or upgrading to a filesystem feature GRUB does not understand.

There are two prompts. grub rescue> is minimal: only a few commands (ls, set, insmod) work because the normal module is not loaded. grub> is the full shell, where you can use linux, initrd and boot to start the system by hand. The usual path is rescue → find the partition → load the normal module → boot → reinstall GRUB from the running system.

The rescue recipe

  1. ls: list disks and partitions GRUB can see
  2. ls (hd0,gpt2)/ on each until you find /boot/grub
  3. set prefix=(hd0,gpt2)/boot/grub and set root=(hd0,gpt2)
  4. insmod normal, then normal to load the menu
  5. Boot, then run grub-install and update-grub to fix it for good
From grub rescue> to a permanent fix.

A real recovery session

error: no such partition.
grub rescue> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
grub rescue> ls (hd0,gpt2)/
error: unknown filesystem.
grub rescue> ls (hd0,gpt3)/
./ ../ lost+found/ boot/ etc/ home/ usr/ var/
grub rescue> set prefix=(hd0,gpt3)/boot/grub
grub rescue> set root=(hd0,gpt3)
grub rescue> insmod normal
grub rescue> normal
Probing partitions until /boot/grub turns up, then loading the full menu.

If the menu still fails: boot by hand

From the full grub> shell you can boot any kernel manually, even if grub.cfg is missing or wrong. Tab completion works for paths, which makes finding the kernel file easy.

grub> set root=(hd0,gpt3)
grub> linux /boot/vmlinuz-6.8.0-49-generic root=/dev/nvme0n1p3 ro
grub> initrd /boot/initrd.img-6.8.0-49-generic
grub> boot

Common messages decoded

MessageLikely causeFix
no such partitionPartition table changed, UUID goneRescue recipe, then grub-install
unknown filesystemWrong partition, or unsupported fs featureTry other partitions; check filesystem
file /boot/vmlinuz... not foundKernel removed or /boot not mounted when updatingBoot another kernel, reinstall kernel package
Minimal BASH-like line editing (grub>)grub.cfg missingBoot manually, run update-grub
Machine boots straight to WindowsWindows reset the UEFI boot orderefibootmgr -o or firmware boot menu

Practical examples

Repair from a live USB with chroot

When you cannot boot at all, boot an Ubuntu live USB and chroot into the installed system.

sudo mount /dev/nvme0n1p3 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi            # the EFI System Partition
for d in dev proc sys run; do sudo mount --bind /$d /mnt/$d; done
sudo chroot /mnt
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu
update-grub
exit && sudo reboot

Fix the UEFI boot order after Windows

Put the Linux entry first again.

sudo efibootmgr                 # note the Linux entry number, e.g. Boot0001
sudo efibootmgr -o 0001,0000

Make GRUB find Windows again

os-prober is disabled by default on newer GRUB versions.

echo 'GRUB_DISABLE_OS_PROBER=false' | sudo tee -a /etc/default/grub
sudo update-grub

Common mistakes

  • Reinstalling the OS when a two-minute GRUB repair would do.
  • Forgetting to mount the EFI System Partition before running grub-install in a chroot.
  • Mixing up partitions: always check with ls (hdX,Y)/ before setting root.
  • Fixing it with the rescue recipe and stopping there: without grub-install the error returns on the next boot.

Key takeaways

  • grub rescue> means GRUB cannot find its files; your data is usually fine.
  • Find the partition with ls, set prefix and root, insmod normal, normal.
  • linux, initrd and boot let you start any kernel by hand.
  • Finish with grub-install and update-grub, from the booted system or a live USB chroot.

FAQ

Will reinstalling GRUB delete my data?

No. grub-install writes the bootloader to the MBR/ESP and /boot/grub; it does not touch your files.

Why does ls show (hd0,msdos1) instead of gpt?

The disk uses an MBR (DOS) partition table rather than GPT. The commands are the same; only the partition naming differs.

How do I know if I booted in UEFI or BIOS mode?

If /sys/firmware/efi exists, the system booted in UEFI mode. Install GRUB for the same mode you booted with.

More Linux articles