TechBuzzPro

Fix Windows 10 GRUB Rescue Prompt – Step‑by‑Step Guide

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes – you can fix the GRUB rescue prompt after installing Windows 10 by restoring the Windows bootloader or reinstalling GRUB, using a few simple commands and a bootable USB.

What You'll Need

  • A Windows 10 installation USB/DVD (or a recovery drive).
  • A Linux live USB (Ubuntu, Fedora, or any distro that boots to a live desktop).
  • An internet connection for downloading additional tools if needed.
  • Basic familiarity with the command line.

Step-by-Step

  1. Identify the problem. When the computer stops at grub rescue>, it means the GRUB bootloader cannot find its configuration files. This usually happens after Windows overwrites the MBR during installation.
  2. Boot into a Windows recovery environment. Insert the Windows 10 installation USB, restart the PC, and press the key (often F12, Esc, or Del) to open the boot menu. Choose the USB device and select Repair your computer > Troubleshoot > Advanced options > Command Prompt.
  3. Repair the Windows bootloader. In the command prompt, run the following commands one by one:
    bootrec /fixmbr
    bootrec /fixboot
    bootrec /scanos
    bootrec /rebuildbcd
        
    These commands rewrite the Master Boot Record, create a fresh boot sector, scan for Windows installations, and rebuild the Boot Configuration Data.
  4. Restart the computer. Remove the USB and let the system boot. If Windows loads normally, the GRUB issue is resolved. If you still see the GRUB rescue prompt, proceed to step 5.
  5. Boot into a Linux live environment. Insert the Linux live USB, boot from it, and choose the option to Try Ubuntu (or equivalent). This loads a fully functional Linux desktop without installing anything.
  6. Identify your Linux partitions. Open a terminal and run:
    sudo fdisk -l
    Look for the partition that contains your Linux root (usually ext4) and the EFI System Partition (ESP) if you use UEFI. Note the device names, e.g., /dev/sda2 for root and /dev/sda1 for ESP.
  7. Mount the Linux root partition. Replace /dev/sda2 with your actual root partition:
    sudo mount /dev/sda2 /mnt
    If you have a separate boot or EFI partition, mount it as well:
    sudo mount /dev/sda1 /mnt/boot/efi
  8. Bind necessary system directories. This allows the chroot environment to access hardware and network:
    for i in /dev /dev/pts /proc /sys /run; do sudo mount --bind $i /mnt$i; done
  9. Enter the chroot. Run:
    sudo chroot /mnt
    You are now operating as if you had booted into your installed Linux system.
  10. Reinstall GRUB. The command differs between BIOS and UEFI:
    • BIOS (legacy) systems: grub-install /dev/sda
    • UEFI systems: grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
    Replace /dev/sda with the drive that contains the EFI partition if different.
  11. Update GRUB configuration. Run:
    update-grub
    This scans for installed operating systems and writes a new grub.cfg file.
  12. Exit chroot and unmount. Type exit to leave the chroot, then run:
    for i in /run /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
    sudo umount /mnt/boot/efi
    sudo umount /mnt
  13. Reboot. Remove the live USB and let the system start. GRUB should now present a menu with both Linux and Windows entries.

Common Mistakes

  • Using the wrong device name. Accidentally targeting /dev/sdb instead of /dev/sda can corrupt another drive. Double‑check the output of fdisk -l before running grub-install.
  • Skipping the EFI mount. On UEFI systems, failing to mount the EFI System Partition means GRUB cannot write its files, resulting in the same rescue prompt.
  • Running bootrec /fixboot without administrator rights. The command may fail with “Access is denied.” In that case, run bootsect /nt60 sys or use a Windows 10 ISO that matches your system architecture.
  • Not updating the GRUB config. After reinstalling, you must run update-grub (or grub-mkconfig -o /boot/grub/grub.cfg) otherwise the menu will not list Windows.

Tips

  • Keep a small USB stick dedicated to Windows repair and another for Linux live sessions; it saves time switching media.
  • If you use Secure Boot, disable it temporarily while reinstalling GRUB, then re‑enable it after the bootloader is functional.
  • Run sudo blkid inside the live session to see UUIDs; you can edit /etc/fstab in the chroot if the system fails to mount partitions after reboot.
  • Back up the current grub.cfg before overwriting it: cp /boot/grub/grub.cfg /boot/grub/grub.cfg.backup.
  • Consider using Boot-Repair (a graphical tool) if the manual steps feel intimidating; it automates many of the commands listed.

Troubleshooting

If the system still drops to grub rescue> after following the steps, try the following checks in order:

  1. Verify the boot order. Enter the BIOS/UEFI setup and ensure the drive containing the GRUB EFI file is first in the boot sequence.
  2. Confirm the EFI file exists. From the live environment, mount the EFI partition and list its contents:
    ls /mnt/boot/efi/EFI/GRUB
    You should see grubx64.efi. If it is missing, repeat the grub-install command with the --target flag.
  3. Check for duplicate boot entries. Run efibootmgr -v inside the chroot or from a live session. If multiple entries point to old or corrupted GRUB files, delete the unwanted ones with efibootmgr -b XXXX -B (replace XXXX with the boot number).
  4. Repair the BCD store. Boot back into the Windows recovery command prompt and run:
    bcdboot C:\Windows /l en-us /s Z: /f ALL
    Replace Z: with the drive letter assigned to the EFI partition (you can assign it using diskpart if needed).
  5. Use Boot-Repair. Install it in the live session:
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt update
    sudo apt install -y boot-repair
    boot-repair
    Choose the “Recommended repair” option. It will automatically detect problems and fix them.
  6. Re‑create the Windows boot entry. In UEFI mode, you can manually add an entry:
    sudo efibootmgr -c -d /dev/sda -p 1 -L "Windows Boot Manager" -l \EFI\Microsoft\Boot\bootmgfw.efi
    Adjust the partition number (-p) if your EFI partition is not 1.

If none of the above resolves the issue, consider backing up your data using the live Linux environment (copy important files to an external drive) and then performing a clean reinstall of Windows followed by a fresh Linux installation.

Frequently Asked Questions

Why does installing Windows 10 erase the GRUB menu?

Windows writes its own bootloader to the MBR or EFI partition, overwriting the GRUB files that were previously managing the dual‑boot menu.

Can I fix the problem without a Linux live USB?

Yes, you can restore the Windows bootloader using the bootrec commands, but you will lose the ability to boot Linux until you reinstall GRUB.

Do I need to reinstall Windows after fixing GRUB?

No. Restoring the Windows bootloader or reinstalling GRUB does not require a full Windows reinstall; the operating system files remain intact.

What is the difference between BIOS and UEFI in this context?

BIOS uses the Master Boot Record, while UEFI uses an EFI System Partition. The GRUB installation command must match the firmware type, otherwise the bootloader will not be recognized.

My system boots straight to Windows after fixing the bootloader. How do I get the GRUB menu back?

Boot into a Linux live session, chroot into your installed Linux system, and run update-grub after reinstalling GRUB. This rewrites the menu and adds the Windows entry.

Is it safe to disable Secure Boot while repairing GRUB?

Disabling Secure Boot temporarily is safe; just remember to re‑enable it after the repair if your system requires it for other OSes.