If you installed Linux alongside Windows 10 and now Windows won’t boot, the problem is almost always the GRUB bootloader not listing Windows or the Windows Boot Manager being overwritten. The fix is to either update GRUB to detect Windows or restore the Windows bootloader, depending on which one is missing.
Why Dual Booting Breaks Windows Boot
When you install Linux after Windows, the Linux installer usually replaces the Windows bootloader (Windows Boot Manager) with GRUB. GRUB is designed to chainload Windows, but it sometimes fails to detect the Windows partition, especially if you installed Linux in UEFI mode while Windows was in Legacy BIOS mode, or vice versa. Another common cause is that Windows Fast Startup leaves the NTFS partition in a hibernated state, making GRUB unable to read it.
In other cases, a Windows update resets the boot order, or a failed update corrupts the Boot Configuration Data (BCD). The result is the same: you see a GRUB menu with only Linux entries, or you see a black screen with a blinking cursor, or you get a “No bootable device” error.
First: Check Your Boot Mode and Partitions
Before changing anything, you need to know whether your system uses UEFI or Legacy BIOS, and which partition holds Windows. Boot into Linux, open a terminal, and run:
lsblk– lists all disks and partitions. Look for an NTFS partition (usually labeled “Microsoft reserved” or “Windows”). Note its device name like/dev/sda2or/dev/nvme0n1p3.efibootmgr– if this command works, you are in UEFI mode. If it says “EFI variables are not supported”, you are in Legacy BIOS mode.ls /sys/firmware/efi– if this directory exists, you booted in UEFI mode.
If Windows was installed in UEFI mode, its boot files are on a small FAT32 partition called the EFI System Partition (ESP). If it was installed in Legacy mode, the boot files are on the Windows partition itself. Knowing this determines which fix applies.
Fix 1: Update GRUB to Detect Windows
If GRUB is present but doesn’t show Windows, the simplest fix is to regenerate its configuration. On most Debian/Ubuntu-based systems, run:
- Open a terminal and run
sudo update-grub. This scans all partitions for bootable operating systems and adds them to the GRUB menu. - Reboot and check if Windows appears in the menu.
If you use Arch, Fedora, or another distribution, the command is sudo grub-mkconfig -o /boot/grub/grub.cfg. If Windows still doesn’t appear, you may need to install the os-prober package and run the command again. On some systems, os-prober is disabled by default; you can enable it by editing /etc/default/grub and adding GRUB_DISABLE_OS_PROBER=false, then updating GRUB again.
Fix 2: Restore Windows Boot Manager (UEFI)
If GRUB is missing entirely and your computer boots straight to Linux, or if you see a “No bootable device” error, the Windows bootloader may have been overwritten or deleted. In UEFI mode, you can restore it from Linux using the efibootmgr tool:
- Mount the EFI System Partition (ESP). Usually it’s
/dev/sda1or/dev/nvme0n1p1. Runsudo mount /dev/sda1 /mnt. - Check if the Windows bootloader file exists:
ls /mnt/EFI/Microsoft/Boot/bootmgfw.efi. If it does, you just need to add a boot entry. - Run
sudo efibootmgr -c -d /dev/sda -p 1 -L "Windows Boot Manager" -l \\EFI\\Microsoft\\Boot\\bootmgfw.efi(adjust the disk and partition numbers). - Reboot and press the boot menu key (often F12 or Esc) to select Windows.
If the file is missing, you’ll need to repair it from a Windows recovery USB. Create one on another computer, boot from it, and choose “Repair your computer” → “Troubleshoot” → “Startup Repair”.
Fix 3: Restore Windows Boot Manager (Legacy BIOS)
In Legacy BIOS mode, the Windows bootloader lives in the Master Boot Record (MBR) of the disk. If GRUB replaced it, you can restore it using a Windows recovery USB:
- Boot from the Windows installation USB and select “Repair your computer”.
- Go to “Troubleshoot” → “Advanced Options” → “Command Prompt”.
- Run
bootrec /fixmbrto rewrite the MBR, thenbootrec /fixbootto repair the boot sector, andbootrec /rebuildbcdto rebuild the Boot Configuration Data. - Exit and reboot. Windows should boot directly, but you will lose GRUB. To get dual boot back, you can later reinstall GRUB from Linux.
Common Problem: Windows Update Broke Boot
Sometimes Windows updates overwrite GRUB, so after a reboot you go straight into Windows and can’t boot Linux. The fix is to reinstall GRUB from a Linux live USB:
- Boot from a Linux live USB and open a terminal.
- Mount your Linux root partition (e.g.,
sudo mount /dev/sda5 /mnt). If you have a separate /boot partition, mount that too. - Chroot into the system:
sudo mount --bind /dev /mnt/dev && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys, thensudo chroot /mnt. - Run
grub-install /dev/sda(replace sda with your disk), thenupdate-grub. - Exit chroot, unmount everything, and reboot.
Prevention and Recovery Tips
- Always disable Windows Fast Startup in Control Panel → Power Options → Choose what the power buttons do. This prevents the hibernation state that can confuse GRUB.
- Keep a Linux live USB and a Windows recovery USB handy. They are the two tools you need for almost any boot repair.
- Back up your EFI partition and MBR before major updates. You can use
ddto copy the first 512 bytes of the disk, but restoring it incorrectly can make things worse. - If you use BitLocker on Windows, you may need your recovery key after a boot repair, as the bootloader change can trigger a recovery prompt.
Frequently Asked Questions
Why does GRUB not show Windows even after update-grub?
This usually happens when os-prober is disabled or when the Windows partition is hibernated. Check GRUB_DISABLE_OS_PROBER in /etc/default/grub and set it to false. Also, boot into Windows once, disable Fast Startup, and shut down completely. Then run update-grub again.
Can I boot Windows from the BIOS boot menu instead of GRUB?
Yes. In UEFI mode, you can press the boot menu key (F12, Esc, F9, etc.) during startup and select “Windows Boot Manager” directly. This works even if GRUB doesn’t list Windows. If the entry is missing, you need to add it with efibootmgr as shown above.
Will reinstalling Linux fix the boot problem?
Reinstalling Linux usually reinstalls GRUB and can fix a missing bootloader, but it won’t fix a corrupted Windows bootloader. If Windows itself is broken, you’ll still need to repair it from a Windows USB. Reinstalling Linux also risks overwriting your Linux data if you don’t choose the right partition.
Is it safe to use boot-repair from Linux?
Boot Repair is a popular tool that automates many of the steps above. It is generally safe, but it can sometimes change boot order or install extra packages. Always back up your EFI partition first if you can. It’s a good first step if you’re not comfortable with the command line.
What if I see a black screen with a blinking cursor?
This often means GRUB is trying to boot but can’t find the kernel or the Windows loader. Try pressing Shift or Esc during boot to see the GRUB menu. If you can get to a command line, you can manually boot Linux or Windows. If not, use a live USB to run boot-repair.
How do I know if my system is UEFI or Legacy?
In Linux, run ls /sys/firmware/efi. If the directory exists, you’re in UEFI mode. In Windows, open System Information and look at “BIOS Mode”. It will say UEFI or Legacy. This matters because the fix is different for each.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Turn Off Shutter Sound on iPhone
- VPN Setup on iPhone SE: Step-by-Step Guide
- Fix Internet Not Working on Windows 11
- Fix Right Click Not Working in Firefox
- Compare Two Columns with Comma Separated Values in Excel
- How to Limit Ad Tracking on iPhone Apps