Windows Entry for GRUB

Posted by zbrom on June 27, 2021 · 1 min read

This tutorial explains how to add Windows to GRUB if you are dual booting. This tutorial accounts for whether you are on an UEFI system or BIOS system.

BIOS Systems:

First edit the grub.cfg file, and modify (hd1,1) according to your drive and partition number.

nano /boot/grub/grub.cfg

menuentry "Windows" {
set root=(hd1,1)
chainloader +1

UEFI Systems:

Determine the UUID for your EFI boot partition on your drive. Replace /dev/sdb3 with your EFI partition number.

blkid /dev/sdb3

Edit the grub.cfg file, and enter your UUID for the EFI partition from above.

nano /boot/grub/grub.cfg

menuentry "Windows 10" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --no-floppy --set=root [Enter your UUID here]
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi

This technique may also be used to add LiveCD entries to your GRUB menu with the following tutorial here.