GRUB Repair Guide
Add Missing Windows 11 Entry (Tested on Debian 12 + Windows 11 UEFI systems)
sudo apt install os-prober sudo update-grub
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT
Look for:
sudo nano /etc/grubd/40_custom
Add:
menuentry "Windows 11" { insmod part_gpt insmod chain insmod ntfs set root=(hd0,gpt1) #hd0 = first disk, gpt1 = first partition chainloader /EFI/Microsoft/Boot/bootmgfw/efi }
sudo update-grub sudo reboot
Linux should show UEFI vars:
ls /sys/firmware/efi/efivars
Windows partition should have EFI files:
sudo ls /boot/efi/EFI/Microsoft/Boot
Expected file is bootmgfw.efi
Troubleshooting Table
“hd0 not found”
No bootmgfw.efi
GRUB menu not showing