Fix GRUB Issues from Windows Easily
In this article
Yes, you can resolve GRUB issues from Windows by using built-in tools to repair the bootloader or restore Windows as the default boot option. This guide walks you through accessing and fixing GRUB-related boot problems—such as dual-boot systems failing to start Windows or showing a GRUB rescue prompt—directly from within a working Windows environment. You’ll use command-line tools like bcdedit and bootrec, and optionally third-party boot repair tools, to restore control over your boot process without needing a Linux live USB.
What You'll Need
- A working Windows installation (must be accessible)
- Administrator access to Windows
- Command Prompt (Run as Administrator)
- Internet access (for downloading trusted repair tools if needed)
- Optional: Boot-Repair-Disk or EasyUEFI (if manually editing boot order or entries)
Step-by-Step
- Boot into Windows. If you can’t boot at all, use a Windows recovery drive or installation media to access the recovery environment, then open Command Prompt from there.
- Press the Windows key, type "cmd", right-click on Command Prompt, and select "Run as administrator".
- In the Command Prompt window, type
bcdeditand press Enter. This displays the current boot entries. Look for the identifier labeled{bootmgr}and any entries withpath \EFI\ubuntuor similar (indicating GRUB). - To set Windows Boot Manager as the default, type:
bcdedit /default {bootmgr}and press Enter. This ensures Windows boots by default if multiple boot options exist. - If GRUB is still taking over, remove the Linux boot entry. First, note the identifier (a long string in curly braces) next to the Linux entry. Then run:
bcdedit /delete {identifier} /f(replace {identifier} with the actual ID). The/fforces deletion. - Alternatively, use the
bootrectool to rebuild the Windows boot configuration. In the same Command Prompt, run these commands one by one:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
These commands replace GRUB in the Master Boot Record (MBR) or EFI system partition with Windows’ bootloader. - If your system uses UEFI (most modern PCs), ensure Secure Boot is enabled in BIOS/UEFI settings. Access BIOS by restarting and pressing F2, F12, Del, or Esc (varies by manufacturer). Navigate to the Boot or Security tab and enable Secure Boot if disabled.
- Restart your computer. If done correctly, the system should now boot directly into Windows without showing GRUB.
- (Optional) To permanently remove GRUB, you may need to delete the Linux partition using Disk Management. Press Windows+X, select Disk Management, locate the Linux partitions (usually ext4 or unallocated space), right-click, and delete volume. Then extend your Windows partition if desired.
- (Optional) Use EasyUEFI (free version available) to manage EFI boot entries graphically. Launch it from Windows, go to the Manage EFI Boot Options tab, and remove or reorder the Ubuntu/GRUB entry.
Common Mistakes
- Running
bcdeditwithout administrator privileges, which causes access denied errors. - Deleting the wrong boot entry using
bcdedit /delete, which can make the system unbootable. Always double-check the identifier. - Using
bootrec /fixbooton UEFI systems with GPT disks—this command is legacy BIOS-only. It may fail or not apply cleanly. - Disabling Secure Boot unnecessarily, which can expose the system to firmware-level threats.
- Formatting the EFI system partition, which contains critical boot files for all OSes and can brick the system.
Tips
- Before making changes, run
bcdedit /export C:\bcdbackupto back up the current boot configuration. You can restore it withbcdedit /import C:\bcdbackupif something goes wrong. - If you plan to keep Linux later, consider using a boot manager like rEFInd instead of GRUB, which plays better with Windows.
- Use
diskpartandlist volumein Command Prompt to identify which drive holds the EFI partition (usually a small 100–500 MB FAT32 partition). - After removing GRUB, check BIOS/UEFI boot order to ensure Windows Boot Manager is at the top.
- Some laptops have a boot menu key (like F12) that lets you choose OS per boot—useful for testing before permanent changes.
Troubleshooting
If the system still boots into GRUB after running bootrec commands, the EFI boot order may still prioritize GRUB. Re-enter BIOS/UEFI and manually move "Windows Boot Manager" above "ubuntu" or "grubx64.efi" in the boot priority list.
If bootrec /rebuildbcd finds no installations, your Windows partition may not be marked as active (for BIOS systems) or the BCD store may be corrupted. Run diskpart, then list disk, select disk 0, list partition, select partition X (where X is the Windows partition), then active (for MBR systems only).
If you get "Access is denied" during bootrec commands, ensure you're in an elevated Command Prompt and that no third-party disk utilities are running. Also, disable BitLocker temporarily if enabled.
If Windows fails to boot after removing GRUB, use Windows installation media to access Startup Repair or run bootrec again. You may need to restore the BCD backup.
Frequently Asked Questions
Can I fix GRUB without a Windows installation disc?
Yes, if Windows can still boot. Use built-in admin tools like Command Prompt. If not, you’ll need a recovery drive or installation media to access repair tools.
Does removing GRUB delete Linux?
No. Removing GRUB only deletes the bootloader. The Linux system remains on its partition until you manually delete or reformat it.
Will this method work on laptops with Fast Startup enabled?
Yes, but Fast Startup can interfere with disk access. Disable it in Power Options before editing partitions or boot entries.
Can I reinstall GRUB later if needed?
Yes. Boot from a Linux live USB and use grub-install and update-grub commands in a terminal to restore GRUB.
Why does GRUB appear even after uninstalling Linux?
Because the bootloader wasn’t removed. Uninstalling Linux doesn’t always delete GRUB entries from the EFI partition or BCD store. Manual cleanup is required.
Is it safe to delete the EFI partition with GRUB?
No. The EFI partition holds boot files for all operating systems. Deleting it can make your system unbootable. Only remove GRUB files from it if you know what you’re doing.