Skip to content

Instantly share code, notes, and snippets.

@Pristavkin
Last active February 10, 2020 19:16
Show Gist options
  • Select an option

  • Save Pristavkin/2ae751c1d48efe594415f61b78b84bfa to your computer and use it in GitHub Desktop.

Select an option

Save Pristavkin/2ae751c1d48efe594415f61b78b84bfa to your computer and use it in GitHub Desktop.
RHEL/CentOS GRUB dualboot Winows config
# /etc/grub.d/41_Windows
# Boot from hd0,1 - sda2 partition ("hd0" is sda, and ",1" is second partition on disk)
# Add "GRUB_DEFAULT="Windows 10"" line to /etc/default/grub for default boot to window 10
# Run "grub2-mkconfig --output=/boot/grub2/grub.cfg" after all modifications for make new config file
menuentry "Windows 10" {
set root=(hd0,1)
chainloader +1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment