TechBuzzPro

Fix GRUB Missing Windows 11 in Dual‑Boot Setup

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step‑By‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can restore the GRUB menu so Windows 11 appears alongside Linux; the fix is to update GRUB’s configuration and, if necessary, repair the EFI boot entries.

What You'll Need

  • A Linux installation that you can boot into (or a live USB if the installed system won't start).
  • Administrator (root) privileges on the Linux side.
  • Access to the internet for package updates, though it isn't strictly required.
  • A basic text editor such as nano or vim, already installed on most distributions.
  • Patience and a backup of important data – the steps modify bootloader files but do not touch personal files.

Step‑By‑Step

  1. Boot into your Linux system. If the GRUB menu never appears, use a live USB, choose “Try Ubuntu” (or the equivalent for your distro), and open a terminal.
  2. Identify the EFI system partition (ESP). Run sudo fdisk -l and look for a partition of type “EFI System” – it is usually around 100‑500 MB and labeled /dev/sda1 or similar.
  3. If you booted from a live environment, mount the Linux root and the ESP. Example:
    sudo mount /dev/sda2 /mnt   # replace sda2 with your Linux root
    sudo mount /dev/sda1 /mnt/boot/efi   # mount the ESP
    Then bind the required pseudo‑filesystems:
    for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt$dir; done
    Finally, chroot into the installed system:
    sudo chroot /mnt
  4. Ensure the os-prober package is installed. It detects other operating systems for GRUB.
    sudo apt update && sudo apt install os-prober
    (Replace apt with dnf, pacman, etc., for your distro.)
  5. Run the GRUB configuration command:
    sudo update-grub
    This script runs os-prober, finds the Windows boot manager, and adds a menu entry.
  6. If the Windows entry still does not appear, reinstall GRUB to the EFI partition. For UEFI systems:
    sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
    The --bootloader-id name can be anything; “GRUB” is common.
  7. After reinstalling, run sudo update-grub again to regenerate the configuration file.
  8. Exit the chroot (if you used one) and reboot:
    exit
    sudo reboot
    The system should now present a GRUB menu with a “Windows Boot Manager” entry.
  9. If the menu still boots straight to Windows, check the EFI boot order. From Linux, run:
    sudo efibootmgr -v
    Look for a line containing Boot####*GRUB. If the Windows entry (often Boot0000) is listed first, change the order:
    sudo efibootmgr -o ####,0000
    Replace #### with the number of the GRUB entry.
  10. Confirm the change by running efibootmgr -v again. The GRUB entry should now be first.
  11. Reboot once more. If GRUB appears and you can select Windows, the problem is solved.
  12. Optional: customize the timeout or default entry by editing /etc/default/grub. For example, set GRUB_TIMEOUT=5 to give yourself five seconds to choose an OS, then run sudo update-grub again.

Common Mistakes

  • Running update-grub without os-prober installed – the script will not detect Windows.
  • Installing GRUB to the wrong device (e.g., /dev/sda instead of the EFI partition) – this can overwrite the Windows boot manager.
  • Forgetting to mount the EFI partition before chrooting – GRUB will be installed to a temporary location and disappear after reboot.
  • Using grub2-install on a BIOS‑only system when the machine is actually UEFI – the command will succeed but the bootloader won’t be used.
  • Changing the boot order with efibootmgr but swapping the wrong numbers – this can make the system skip GRUB entirely.

Tips

  • Keep a recent backup of /etc/default/grub before editing; you can restore it with sudo cp if something goes wrong.
  • Run sudo blkid to verify the UUID of the ESP; use that UUID in /etc/fstab if the mount point is missing.
  • If you have multiple Linux distributions, each may try to write its own GRUB entry. Choose one distribution to be the “master” bootloader and disable GRUB_DISABLE_OS_PROBER=false only there.
  • Secure Boot can prevent GRUB from loading unsigned binaries. If you encounter a “Security Violation” error, either enroll the GRUB shim key or disable Secure Boot in the firmware.
  • Running sudo update-grub after a Windows update is a good habit; Windows sometimes overwrites the EFI entry.

Troubleshooting

If the steps above do not bring back the GRUB menu, follow this checklist:

  1. Check firmware settings. Some UEFI firmware has a “Fast Boot” or “Launch directly into OS” option that hides the boot menu. Disable it and enable “Boot Manager” or “Show boot menu”.
  2. Verify the ESP is mounted at /boot/efi. Run mount | grep efi. If nothing appears, manually mount the partition and repeat the GRUB install.
  3. Inspect the GRUB configuration file. Open /boot/grub/grub.cfg and look for a stanza that mentions Windows Boot Manager. If it is missing, the detection step failed.
  4. Manually add a Windows entry. Edit /etc/grub.d/40_custom and append:
    menuentry "Windows 11" {
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'   # adjust to your ESP location
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }
    Then run sudo update-grub again.
  5. Repair the Windows boot manager. Boot from a Windows 11 installation USB, choose “Repair your computer” → “Troubleshoot” → “Advanced options” → “Command Prompt” and run:
    bootrec /fixefi
    bootrec /scanos
    bootrec /rebuildbcd
    After repairing, boot back into Linux and reinstall GRUB as described earlier.
  6. Use a dedicated boot manager. If GRUB continues to be unreliable, consider installing systemd-boot (for UEFI) or rEFInd. Both can coexist with Windows and provide a simple graphical menu.

Frequently Asked Questions

Why does GRUB sometimes disappear after a Windows update?

Windows updates may rewrite the EFI boot entry for bootmgfw.efi, causing the firmware to prioritize it over GRUB. Running sudo update-grub or reinstalling GRUB restores the entry.

Can I keep Secure Boot enabled and still use GRUB?

Yes, if you install the signed GRUB shim package provided by most distributions. The shim validates the GRUB core and allows it to load while Secure Boot remains active.

Do I need to reinstall GRUB every time I install a new Linux kernel?

No. Kernel updates automatically update the GRUB configuration via the postinst script. Only major changes to the bootloader or EFI layout require manual reinstall.

What if I have both BIOS and UEFI entries on the same machine?

Choose the mode you want to use and disable the other in the firmware. Mixing BIOS and UEFI boot entries can cause the system to skip GRUB entirely.

Is it safe to edit grub.cfg directly?

Editing grub.cfg is not recommended because the file is regenerated each time update-grub runs. Use /etc/default/grub or /etc/grub.d/ scripts for permanent changes.

My Windows entry boots to a black screen. What gives?

Make sure the chainloader path points to bootmgfw.efi on the ESP. A typo or an incorrect ESP partition number will cause a black screen.