Add Windows to the Linux OS boot menu
Add Windows to the Linux OS boot menu
vi /ect/grub.d/40_custom
- Describe the following contents in the 40_custom file
menuentry "Windows 7" {
set root='(hd0,1)'
chainloader +1
}
- 40_custom Reflects file changes
grub2-mkconfig -o /boot/grub2/grub.cfg
Set Windows as the default boot OS in the Linux OS boot menu
vi /etc/default/grub
- Change the GRUB_DEFAULT value in the grub file
If Windows is displayed second in the Linux OS boot menu, describe 1 as the value obtained by subtracting 1 from 2
GRUB_DEFAULT=1
- Reflect changes in the grub file
grub2-mkconfig -o /boot/grub2/grub.cfg
sudo shutdow -r now