Skip to content

Instantly share code, notes, and snippets.

@KavenTheriault
Last active February 16, 2019 14:03
Show Gist options
  • Save KavenTheriault/30486643598a733ee2d3b4fa4ba3faae to your computer and use it in GitHub Desktop.
Save KavenTheriault/30486643598a733ee2d3b4fa4ba3faae to your computer and use it in GitHub Desktop.
Configure Windows partition in grub

Configure Windows partition in grub

List all devices

lsblk

Look at the UUID of your Windows 10 partition, for exemple:

sudo blkid /dev/sda2

Then edit /etc/grub.d/40_custom, and at the end of the file add:

menuentry "Windows 10" --class windows --class os {
  insmod ntfs
  search --no-floppy --set=root --fs-uuid $your_uuid_here$
  ntldr /bootmgr
}

Run the following command to update grub config

grub-mkconfig -o /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment