TechBuzzPro

Fix GRUB Rescue: File Not Found Error

· 5 min read · Windows & PC

In this article
  1. What Is the GRUB Rescue Prompt?
  2. Why Does This Error Occur?
  3. How to Identify the Correct Linux Partition
  4. Manual Boot from the Rescue Prompt
  5. Reinstalling GRUB with a Live USB
  6. Common Mistakes and Misconceptions
  7. When Manual Fixes Fail
  8. Frequently Asked Questions

If you see error: file not found at the grub rescue> prompt, your computer cannot find the GRUB bootloader files it needs to start Linux. This usually happens after a partition was deleted, resized, or after installing Windows over Linux. You can often fix it by finding the correct Linux partition and manually loading GRUB, or by using a live USB to reinstall GRUB.

What Is the GRUB Rescue Prompt?

GRUB (GRand Unified Bootloader) is the program that loads your Linux kernel when you power on your computer. When GRUB cannot find its own configuration or module files, it drops to a minimal command line called grub rescue>. This is not a full recovery environment; it has only a few commands: ls, set, insmod, normal, and boot. The file not found error specifically means GRUB is looking for a file that does not exist at the expected path, often /boot/grub/i386-pc/normal.mod or similar.

Why Does This Error Occur?

The most common triggers are:

  • Installing Windows after Linux – Windows overwrites the master boot record, but GRUB may still be partially present and then fail to find its files.
  • Deleting or resizing the Linux partition – If the partition containing /boot is moved or removed, GRUB's stored drive and partition numbers become wrong.
  • Corrupted GRUB configuration – A failed update or a bad manual edit to /boot/grub/grub.cfg can cause this.
  • Swapping drives or changing BIOS boot order – GRUB may be installed on a drive that is no longer first, so it loads from the wrong location.

How to Identify the Correct Linux Partition

At the grub rescue> prompt, type ls and press Enter. This lists all drives and partitions, like (hd0), (hd0,msdos1), (hd0,gpt2). You need to find which partition holds the /boot directory (or the root filesystem if /boot is not separate). Try each partition with ls (hd0,msdos1)/ and look for a boot folder or vmlinuz files. For example, ls (hd0,msdos1)/boot/grub will show if that partition contains GRUB modules. If you see normal.mod there, that is the right partition.

Manual Boot from the Rescue Prompt

Once you find the correct partition, you can load GRUB manually:

  1. Set the root: set root=(hd0,msdos1) (replace with your actual partition).
  2. Load the normal module: insmod normal
  3. Start the normal GRUB menu: normal

If normal.mod is not in /boot/grub but the kernel is present, you can boot directly by setting the prefix and loading the kernel manually. For example:

set prefix=(hd0,msdos1)/boot/grub
insmod linux
linux /boot/vmlinuz-5.15.0-91-generic root=/dev/sda1
initrd /boot/initrd.img-5.15.0-91-generic
boot

The exact filenames depend on your distribution and kernel version. Use ls to list the /boot directory to see what is available.

Reinstalling GRUB with a Live USB

If manual booting works but you want a permanent fix, boot from a Linux live USB, open a terminal, and mount your root partition. For example, if your Linux partition is /dev/sda1:

  1. Mount the partition: sudo mount /dev/sda1 /mnt
  2. Mount system directories: sudo mount --bind /dev /mnt/dev && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
  3. Enter the installed system: sudo chroot /mnt
  4. Reinstall GRUB to the disk (not partition): grub-install /dev/sda
  5. Update the configuration: update-grub
  6. Exit chroot with exit, then reboot.

This rewrites the bootloader and regenerates the configuration file, which usually fixes the error permanently.

Common Mistakes and Misconceptions

One frequent mistake is using the wrong device name in grub-install. You must install to the disk (/dev/sda) not the partition (/dev/sda1). Another is assuming the error means your hard drive is failing; it is almost always a software problem. Also, set root in GRUB uses GRUB's own naming (like hd0,msdos1), not Linux device names, so do not type /dev/sda1 there. If you have an EFI system, the fix is different: you need to reinstall the EFI boot entry, often with efibootmgr or by copying files to the EFI partition.

When Manual Fixes Fail

If you cannot find any partition with /boot, or if the ls command returns no partitions, your partition table may be corrupted or the drive is not being detected. In that case, check BIOS/UEFI settings to ensure the drive is recognized. If the drive is fine but the partition table is damaged, tools like testdisk from a live USB can often recover it. If you never had a separate /boot partition and the root partition is encrypted, you may need to unlock it manually before GRUB can read files, which is more complex and may require a live environment.

Frequently Asked Questions

Can I fix this without a live USB?

Yes, if you can manually boot from the rescue prompt as described above. Once you run normal and get the menu, you can boot into Linux and then run sudo update-grub from there. However, if GRUB's modules are missing entirely, you will need a live USB to reinstall GRUB.

Will this erase my data?

No. Reinstalling GRUB only rewrites the bootloader code and configuration. It does not touch your personal files, documents, or installed programs. The manual boot commands also do not modify anything on disk.

How do I know if I have BIOS or UEFI?

If your system uses UEFI, you will typically see a graphical boot manager and have an EFI system partition (usually FAT32, around 100-500 MB). In the rescue prompt, ls may show a partition labeled efi. If you are unsure, check your motherboard manual or look for a /sys/firmware/efi directory when booted into Linux.

Why did this happen after a Windows update?

Windows updates sometimes rewrite the boot sector or change the EFI boot order. If Windows is installed after Linux, it overwrites GRUB. A Windows update can also reset the boot order in UEFI, making the system skip GRUB. The fix is the same: boot a live USB and reinstall GRUB.

What is the difference between grub> and grub rescue>?

The grub> prompt appears when GRUB loads but cannot find its configuration file. The grub rescue> prompt appears when GRUB cannot load its core modules at all. The rescue prompt has fewer commands, so you may need to load modules manually before you can access the full GRUB command line.

Is there a way to prevent this in the future?

Keep a live USB handy, and always back up your partition table and important files. When dual-booting, install Linux after Windows, and if you must install Windows later, expect to reinstall GRUB. Also, avoid resizing or deleting partitions without understanding the boot process.