Fix GRUB Missing Windows 11 in Dual‑Boot Setup
In this article
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
- 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.
- Identify the EFI system partition (ESP). Run
sudo fdisk -land look for a partition of type “EFI System” – it is usually around 100‑500 MB and labeled/dev/sda1or similar. - 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
- Ensure the
os-proberpackage is installed. It detects other operating systems for GRUB.sudo apt update && sudo apt install os-prober
(Replaceaptwithdnf,pacman, etc., for your distro.) - Run the GRUB configuration command:
sudo update-grub
This script runsos-prober, finds the Windows boot manager, and adds a menu entry. - 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-idname can be anything; “GRUB” is common. - After reinstalling, run
sudo update-grubagain to regenerate the configuration file. - 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. - If the menu still boots straight to Windows, check the EFI boot order. From Linux, run:
sudo efibootmgr -v
Look for a line containingBoot####*GRUB. If the Windows entry (oftenBoot0000) is listed first, change the order:sudo efibootmgr -o ####,0000
Replace####with the number of the GRUB entry. - Confirm the change by running
efibootmgr -vagain. The GRUB entry should now be first. - Reboot once more. If GRUB appears and you can select Windows, the problem is solved.
- Optional: customize the timeout or default entry by editing
/etc/default/grub. For example, setGRUB_TIMEOUT=5to give yourself five seconds to choose an OS, then runsudo update-grubagain.
Common Mistakes
- Running
update-grubwithoutos-proberinstalled – the script will not detect Windows. - Installing GRUB to the wrong device (e.g.,
/dev/sdainstead 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-installon 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
efibootmgrbut swapping the wrong numbers – this can make the system skip GRUB entirely.
Tips
- Keep a recent backup of
/etc/default/grubbefore editing; you can restore it withsudo cpif something goes wrong. - Run
sudo blkidto verify the UUID of the ESP; use that UUID in/etc/fstabif 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=falseonly 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-grubafter 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:
- 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”.
- Verify the ESP is mounted at
/boot/efi. Runmount | grep efi. If nothing appears, manually mount the partition and repeat the GRUB install. - Inspect the GRUB configuration file. Open
/boot/grub/grub.cfgand look for a stanza that mentionsWindows Boot Manager. If it is missing, the detection step failed. - Manually add a Windows entry. Edit
/etc/grub.d/40_customand 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 runsudo update-grubagain. - 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. - Use a dedicated boot manager. If GRUB continues to be unreliable, consider installing
systemd-boot(for UEFI) orrEFInd. 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.