Fix Windows 10 GRUB Rescue Prompt – Step‑by‑Step Guide
In this article
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
- 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. - 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.
- Repair the Windows bootloader. In the command prompt, run the following commands one by one:
bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcdThese commands rewrite the Master Boot Record, create a fresh boot sector, scan for Windows installations, and rebuild the Boot Configuration Data. - 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.
- 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.
- 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/sda2for root and/dev/sda1for ESP. - Mount the Linux root partition. Replace
/dev/sda2with 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
- 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
- Enter the chroot. Run:
sudo chroot /mnt
You are now operating as if you had booted into your installed Linux system. - 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
/dev/sdawith the drive that contains the EFI partition if different. - BIOS (legacy) systems:
- Update GRUB configuration. Run:
update-grub
This scans for installed operating systems and writes a newgrub.cfgfile. - Exit chroot and unmount. Type
exitto 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
- 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/sdbinstead of/dev/sdacan corrupt another drive. Double‑check the output offdisk -lbefore runninggrub-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 /fixbootwithout administrator rights. The command may fail with “Access is denied.” In that case, runbootsect /nt60 sysor use a Windows 10 ISO that matches your system architecture. - Not updating the GRUB config. After reinstalling, you must run
update-grub(orgrub-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 blkidinside the live session to see UUIDs; you can edit/etc/fstabin the chroot if the system fails to mount partitions after reboot. - Back up the current
grub.cfgbefore 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:
- Verify the boot order. Enter the BIOS/UEFI setup and ensure the drive containing the GRUB EFI file is first in the boot sequence.
- 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 seegrubx64.efi. If it is missing, repeat thegrub-installcommand with the--targetflag. - Check for duplicate boot entries. Run
efibootmgr -vinside the chroot or from a live session. If multiple entries point to old or corrupted GRUB files, delete the unwanted ones withefibootmgr -b XXXX -B(replace XXXX with the boot number). - Repair the BCD store. Boot back into the Windows recovery command prompt and run:
bcdboot C:\Windows /l en-us /s Z: /f ALL
ReplaceZ:with the drive letter assigned to the EFI partition (you can assign it usingdiskpartif needed). - 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. - 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 not1.
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.