1. Edit the /boot/grub2/grub.cfg file with
vi vi /boot/grub2/grub.cfg
to find the following
paragraph ### BEGIN /etc/grub.d/30_os-prober ###
### END /etc /grub.d/30_os-prober ###
Modify to the following paragraph (+2 without spaces)
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7"{
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-flooppy --fs-uuid --set 6a9463b094637e07
chainloader +2
}
### END /etc/grub.d/30_os-prober ###
View the uuid
blkid of the partition /dev/sda1
2. Modify win7 as the default boot system to
view the default boot kernel
grub2-editenv list
Modify the default boot system (the string in double quotes is "Windows 7" in the modified grub.cfg above)
grub2-set-default "Windows 7"
Modify win7 boot items after centos7 installation
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326644595&siteId=291194637
Ranking