Grub issues in Windows 10 typically arise when the GRand Unified Bootloader overwrites the Windows Boot Manager, preventing your PC from starting the operating system directly. To resolve this, you must repair the Master Boot Record or restore the default boot configuration using a Windows installation media and command-line tools.
Understanding the Boot Conflict
When you install Linux alongside Windows, the installer often places GRUB as the primary bootloader on the hard drive. This replaces the Windows Boot Manager, causing your computer to present a GRUB menu instead of the familiar Windows startup screen. In many cases, users do not have a Linux partition configured correctly, leading to a "grub rescue" error or a black screen with no options. This is not a hardware failure but a configuration issue within the disk's partition table and boot sector. The core problem lies in how the BIOS or UEFI firmware selects which boot loader to execute. If the EFI System Partition (ESP) contains a GRUB entry that takes precedence over the Microsoft one, the system will load GRUB first. If GRUB cannot find its configuration files because they are missing or corrupted, it fails to hand off control to any operating system. Restoring the correct boot path requires accessing the Windows recovery environment to rewrite these critical sectors. For more information on resolving broader hardware detection issues that might complicate boot repairs, see our guide on External Hard Drive Not Detected on Windows PC.Preparing Your Repair Media
Before attempting any fixes, you need a bootable Windows 10 installation USB drive. This tool provides access to the Command Prompt required for manual boot sector repairs. If you do not have one, use another working computer to download the Windows 10 Media Creation Tool from Microsoft’s official website. Run the tool and select "Create installation media for another PC." Choose the same architecture (64-bit or 32-bit) as your affected machine. Insert a USB flash drive with at least 8GB of free space into the working computer. The tool will format the drive, so ensure all important data is backed up. Once the process completes, you will have a reliable diagnostic and repair environment. Connect this USB drive to the problematic Windows 10 machine. You may also need to adjust your BIOS settings to allow booting from USB devices if it does not happen automatically.Accessing the Recovery Environment
Start your computer and insert the Windows installation USB. Restart the machine and enter the BIOS/UEFI setup by pressing the appropriate key during startup, commonly F2, Del, F12, or Esc depending on your motherboard manufacturer. Navigate to the Boot tab and set the USB drive as the first boot device. Save changes and exit. Your computer should now boot from the USB. You will see the Windows Setup screen asking for language and time preferences. Click Next, then select "Repair your computer" in the bottom-left corner instead of "Install Now." This opens the Advanced Options menu. From here, choose Troubleshoot, then Advanced options, and finally Command Prompt. This gives you elevated administrative privileges to modify boot records safely. If you encounter difficulties with peripheral devices during this process, such as a keyboard that refuses to respond or shut down properly, refer to our article on Troubleshooting: Keyboard preventing PC from turning off to ensure your input devices function correctly in the recovery mode.Rebuilding the Boot Configuration
In the Command Prompt, typediskpart and press Enter. This launches the disk partitioning tool. Type list disk to identify your primary drive. Usually, Disk 0 is your main hard drive. Type select disk 0 to target it. Then, type list volume to see all partitions. Look for a small partition (usually 100MB to 500MB) formatted as FAT32, which is your EFI System Partition. Note its volume number.
Type select volume X replacing X with the EFI partition number. Then type assign letter=Z to give it a temporary drive letter. Exit diskpart by typing exit. Now, rebuild the boot files. Type bcdboot C:\Windows /s Z: /f ALL. This command copies the necessary boot files from the Windows folder to the EFI partition and sets them as active. Replace C: with the actual drive letter where Windows is installed if it differs; you can check this by typing dir C: to verify contents.
After running the command, you should see a message stating "Boot files created successfully." Close the Command Prompt and remove the USB drive. Restart your computer. It should now bypass GRUB and load Windows 10 normally.
Removing GRUB Completely
Once Windows is booting, you may want to remove GRUB entirely if you no longer dual-boot. Open File Explorer and navigate to the EFI partition (now mounted as Z:). Delete theubuntu or linux folders inside the \EFI directory. Also, open an elevated Command Prompt in Windows and run bcdedit /delete {current} if you wish to clear old entries, though usually just deleting the folder is sufficient. Ensure you do not delete the Microsoft folder.
If your wireless network behaves erratically after these changes, check our troubleshooting tips for Troubleshooting Wireless Networking Issues in Windows 10 to rule out driver conflicts introduced during the repair process.
Frequently Asked Questions
What if I get a "GRUB Rescue" prompt?
This indicates GRUB cannot find its configuration files. Use the Windows USB repair method described above to overwrite the boot sector with Windows Boot Manager, effectively ignoring the broken GRUB installation.Can I fix this without a USB drive?
No, you cannot reliably fix MBR/EFI issues from within a non-booting Windows environment. You must use external media to access the recovery command line tools.Will repairing GRUB erase my data?
No, rebuilding the boot configuration only affects the boot sector and EFI partition. Your personal files and Windows installation remain intact.How do I stop Windows Update from breaking my boot?
Ensure you disable automatic updates temporarily during major OS changes. Also, always keep your Windows Boot Manager updated by runningbcdboot regularly if you dual-boot.