Skip to content

Instantly share code, notes, and snippets.

@vaporwavie
Created June 16, 2021 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaporwavie/1829160de0a678a1c205211b2b98bc02 to your computer and use it in GitHub Desktop.
Save vaporwavie/1829160de0a678a1c205211b2b98bc02 to your computer and use it in GitHub Desktop.
Adding Windows to your Grub loader.

Step-by-step

  • su -
  • vim /boot/grub/custom.cfg (should be a new file)
  • Add the following snippet:
#This entry should work for any version of Windows installed for UEFI booting

menuentry "Windows (UEFI)" {
 search --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
  • :wq
  • reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment