win10安装Centos7双系统后,添加win10引导

vim /boot/grub2/grub.cfg

在### END /etc/grub.d/00header ###之后添加:

BEGIN /etc/grub.d/30os-prober ###

menuentry ‘Windows 10 (loader) (on /dev/sda1)’ –class windows –class os $menuentryidoption ‘osprober-chain-140E68540E6830C2’

insmod partmsdos

insmod ntfs

set root=’hd0,msdos1′

chainloader +1

}

END /etc/grub.d/30os-prober ###