
1.使用root身份(必须)打开
/boot/grub2/grub.cfg
2.找到 ### BEGIN /etc/grub.d/30_os-prober ### 在后面添加
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
chainloader +1
}
说明:set root=(hd0,1) 其中 hd0 表示硬盘,1 表示C盘 ,我的win7装在C盘所以是1
3.保存重启 reboot