1、进入援救模式,查看你的的c盘分布在哪一块硬盘上面
如:grub >ls //就会列出你电脑上面的磁盘分配情况,你可以一个一个的查看
我的c盘对应 (hd0,1)
2、然后修改/etc/grub.d/40_custom文件
[html] view plain copy
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'windows 7 ultimate'{
set root=(hd0,1)
chainloader +1
boot
}
3、# grub2-mkconfig -o /boot/grub2/grub.cfg
4、重启