Linux grub_rescueHigh

GRUB Recovery: Step-by-Step Fix for Linux Boot Errors

Complete guide to fixing a broken GRUB bootloader in Linux. Learn how to identify system partitions, restore configuration, and regain system functionality without reinstalling the OS.

Updated at April 4, 2026
30-60 min
Hard
FixPedia Team
Применимо к:Ubuntu 22.04 LTS / 24.04 LTSDebian 12 / 13Fedora 39+ / RHEL 9+Arch Linux

What the grub rescue or error: unknown filesystem Error Means

This situation occurs when the BIOS/UEFI successfully hands off control to the drive, but the GRUB bootloader cannot locate its configuration files or the Linux kernel. Instead of the familiar OS selection menu, you see a black screen with a grub rescue> prompt or the white text error: unknown filesystem. The system remains stuck because the boot chain is interrupted at a very early stage. This error does not indicate corruption of your personal files—the issue is strictly isolated to the boot sectors and the /boot/grub/ configuration.

Common Causes

Boot failures are almost always linked to changes in the disk structure or bootloader configuration:

  1. Windows update or reinstallation. The Windows installer automatically overwrites the MBR or wipes the EFI partition, removing GRUB entries without warning.
  2. Disk repartitioning. Operations using gparted, fdisk, or parted can change partition UUIDs or shift the /boot location, causing GRUB to lose track of its configuration.
  3. File system corruption. A sudden power loss or disk failure at the file system level (ext4/xfs/btrfs) can make the /boot/grub/grub.cfg file inaccessible.
  4. Deletion of the Linux partition. If you removed the Linux distribution partition but kept Windows, GRUB remains in the boot record but cannot find the target OS.

How to Fix It

Method 1: Quick Recovery via the grub rescue> Console

If the system halts at the grub rescue> prompt, try manually specifying the path to the GRUB modules and loading the kernel. This method works if the files haven't been deleted but have simply lost their reference.

  1. List available partitions: ls
  2. Locate the Linux partition by testing options: ls (hd0,msdos1)/ (note the trailing slash). Look for the partition containing the boot/grub/ directory.
  3. Set the prefix: set prefix=(hd0,X)/boot/grub (replace X with the correct partition number).
  4. Load the modules: insmod normal
  5. Start the standard bootloader: normal

If the familiar menu appears after running normal, immediately boot into Linux and run sudo update-grub to make the changes permanent.

Method 2: Full Reinstallation via Live USB (chroot)

If the file system is corrupted or grub rescue> does not respond to commands, you will need a bootable USB drive with any modern Linux distribution.

  1. Boot from the USB drive into a Live Session. Open a terminal.
  2. Identify the root and EFI partitions:
    lsblk -f
    
  3. Mount the root partition (e.g., /dev/sda2) and the EFI partition (e.g., /dev/sda1):
    sudo mount /dev/sda2 /mnt
    sudo mount /dev/sda1 /mnt/boot/efi  # For UEFI systems only
    
  4. Prepare the chroot environment:
    for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt$dir; done
    sudo chroot /mnt
    
  5. Reinstall the bootloader and update the configuration. For Debian/Ubuntu-based systems:
    grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --recheck
    update-grub
    
    For Fedora/RHEL/Arch, use grub2-mkconfig -o /boot/grub2/grub.cfg or grub-mkconfig instead of update-grub.

⚠️ Important: In the grub-install command, specify the entire disk (/dev/sda or /dev/nvme0n1), not a partition (/dev/sda2). Specifying a partition will result in an install_device isn't a disk error.

Method 3: Automatic Recovery with the Boot-Repair Utility

If working manually in the terminal is challenging, use a reliable graphical tool. It automatically detects partitions, restores the MBR/EFI, and generates a correct configuration.

  1. In the Live session, add the repository and install the utility:
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt update && sudo apt install boot-repair
    
  2. Launch boot-repair from the applications menu.
  3. Click the Recommended repair button.
  4. Follow the on-screen instructions. The utility will ask you to run a few commands in the terminal—simply copy and paste them.
  5. Once finished, restart your computer and remove the USB drive.

Prevention

To avoid future bootloader failures, adopt a few simple practices when working with multiple operating systems:

  • Disable Fast Startup in Windows. This feature locks partitions in a hibernated state and prevents Linux from mounting the EFI partition correctly.
  • Do not modify the /boot, /boot/efi, or Linux root partitions using third-party managers without creating a backup first.
  • Back up your GRUB configuration before major updates: sudo cp /boot/grub/grub.cfg ~/grub-backup-$(date +%F).cfg.
  • When setting up a dual-boot system, always install Windows first, followed by Linux. This ensures GRUB automatically detects both operating systems and correctly registers itself in the boot record.

F.A.Q.

Can I recover GRUB without a Live USB?
Why does GRUB break after a Windows update?
Do I need to format partitions when recovering GRUB?

Hints

Boot from Live USB
Check and Mount Partitions
Enter chroot Environment
Reinstall GRUB
Verify Boot Process

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community