Skip to content

Instantly share code, notes, and snippets.

@MRo47
Created July 19, 2022 09:49
Show Gist options
  • Save MRo47/e456866fd5d50441c3492acfa4d0ec05 to your computer and use it in GitHub Desktop.
Save MRo47/e456866fd5d50441c3492acfa4d0ec05 to your computer and use it in GitHub Desktop.
Windows boot not showing in grub (ubuntu/windows dualboot)

Grub menu fix for Windows / Ubuntu dual boot

Use this if boot repair does not fix the issue.

adapted from: https://askubuntu.com/questions/197868/grub-does-not-detect-windows

Make sure Windows is installed and the .efi file exists

sudo os-prober

Get UUID of Windows partition

sudo blkid /dev/<windows partion> #eg: sudo blkid /dev/sda1

Add the following to /etc/grub.d/40_custom

menuentry 'Windows 11' {
    search --fs-uuid --no-floppy --set=root <partion UUID>
    chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

Update grub

sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment