The Grub Rescue error in Windows 10 typically occurs when the boot loader of a dual-boot system becomes corrupted or missing, especially if you've been using Linux alongside Windows. Grub (GRand Unified Bootloader) is a Linux bootloader, and if it can't find the necessary files to boot, it throws you into a rescue mode. If you're encountering this issue on Windows 10, don’t worry - this guide will help you troubleshoot and fix the problem.
How Can I Fix Windows 10 Grub Rescue Errors?
1. Identify the Issue in Grub Rescue Mode
Before you proceed with fixing the problem, it's helpful to understand what is causing the issue.- Check for the Grub Error:
- When you boot your system, you may see something like error: no such partition or grub rescue>.
- Run Grub Commands:
- At the grub rescue> prompt, type the following commands:
- ls
- This will list the partitions on your system. You will see something like (hd0,msdos1), (hd0,msdos2), etc.
- Identify the partition that contains your boot files by typing:
- ls (hd0,msdos1)/
- Keep checking each partition until you find the one that contains /boot/grub or /boot/vmlinuz.
- At the grub rescue> prompt, type the following commands:
2. Set the Boot Partition Temporarily
Once you’ve found the correct partition, you can set it temporarily to boot your system.- Set the Root Partition:
- At the grub rescue> prompt, type:
arduino
Copy code
set root=(hd0,msdosX)
Replace X with the correct partition number you identified earlier.
- At the grub rescue> prompt, type:
- Load the Normal Boot:
- Then, type the following commands to load the normal boot configuration:
css
Copy code
insmod normal
normal
- Then, type the following commands to load the normal boot configuration:
- Boot the System:
- If successful, your system should boot into your Linux distribution or the Grub boot menu, allowing you to choose Windows 10.
3. Fix Grub Permanently from Linux (if dual-booting)
Once you've booted into Linux, you can reinstall or repair Grub to avoid future rescue mode issues.- Open Terminal:
- Once in Linux, open a terminal window.
- Reinstall Grub:
- Enter the following commands to reinstall Grub to the master boot record (MBR):
bash
Copy code
sudo grub-install /dev/sda
sudo update-grub
- Enter the following commands to reinstall Grub to the master boot record (MBR):
- Restart the System:
- Reboot your computer. Grub should now load correctly, and you should be able to select both Linux and Windows 10 at startup.
4. Fix the Boot Loader via Windows 10 (Without Linux)
If you’ve removed Linux or no longer need Grub, you can use the Windows boot loader instead.Method 1: Use Windows Installation Media
- Create a Bootable USB:
- Download the Windows 10 ISO and create a bootable USB using tools like Rufus.
- Boot from the USB:
- Insert the USB, restart your computer, and boot from the USB drive.
- Open Command Prompt:
- Once in the Windows setup screen, click Repair your computer.
- Go to Troubleshoot > Advanced options > Command Prompt.
- Repair the Boot Loader:
- In the Command Prompt, type the following commands one by one:
bash
Copy code
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd - These commands will repair the Master Boot Record (MBR) and rebuild the boot configuration data (BCD).
- In the Command Prompt, type the following commands one by one:
- Restart Your Computer:
- After running the commands, restart your computer without the USB drive. Windows 10 should now boot directly.
Method 2: Use Windows Automatic Repair
If you don’t have installation media or want a quicker method, you can use Windows' built-in automatic repair tool.- Restart your PC a few times during the boot sequence.
- From the list of options, Select Troubleshoot > Advanced options > Startup Repair.
- The repair process will now start.
- After the repair process is complete, check if the problem is resolved.
- Connect the Windows 10 bootable media to your computer (DVD or USB flash drive)
- Restart your computer to enter into ‘Automatic Repair’ mode.
- Go to Troubleshoot > Advanced Options > Command Prompt to launch the CMD.
- In the CMD window, type the following command and hit “Enter” afterward:
- diskpart
- select disk 0
- list volume
- All volumes will be displayed. In the “Type” column, you will find the “DVD-ROM” value. (ensure you remember the drive letter of the Windows 10 bootable media you plugged to your PC). For instance letter E.
- Now, type the following command and hit Enter afterward:
- Exit
- E:
- cd boot
- Dir
- Check to see if you have bootsect.exe files in the list. If yes, enter the following command keys and hit ‘Enter’ afterward:
- bootsect /nt60 SYS /mbr
- Exit
- Restart your PC and check to see if the problem is resolved.
5. Use a Third-Party Boot Repair Tool
If you're uncomfortable using the command line, there are third-party tools that can help repair boot loader issues.- Download a Boot Repair Tool:
- One popular tool is Boot-Repair, which is typically used for Linux systems but can also help with fixing Grub issues.
- You can create a Boot-Repair live USB and boot from it.
- Repair Grub:
- Once booted into the Boot-Repair tool, follow the on-screen instructions to repair the Grub loader or install the Windows boot loader.
6. Perform a System Restore (If Applicable)
If the issue started after a recent change, such as a system update or software installation, you can use System Restore to revert your system to a previous state.- Access System Restore:
- Boot into the Windows Recovery Environment by using installation media or the Automatic Repair screen.
- Choose a Restore Point:
- Select Troubleshoot > Advanced options > System Restore.
- Choose a restore point from before the Grub error started.
- Restore Your System:
- Follow the on-screen instructions to complete the restoration.