After CentOS7 is installed, resume Windows boot. the following content is added to the cfg file. after restarting, you can see the Windows boot item and enter the win10 system smoothly. ### BEGIN/etc/grub. d/30_os-prober ### menuentry & #39; Windows10 (loader) (on/dev/sd
Recover Windows boot after CentOS 7 installation
According to the practices in the website/boot/grub2/grub.cfg
After the following content is added to the file, you can see the Windows boot item after restart and enter the win10 system smoothly.
### BEGIN /etc/grub.d/30_os-prober ###menuentry 'Windows 10 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-140E68540E6830C2' { insmod part_msdos insmod ntfs set root='hd0,msdos1' chainloader +1}### END /etc/grub.d/30_os-prober ###
Note that,set root=
It is followed by the partition where the Windows system boot is located, that is, the Windows system disk, which is generally a drive C.hd0
It refers to the first hard disk.msdos1
It refers to the first partition.