把下面代码加到 /boot/grub2/grub.cfg 文件中,重启就可以看到win7的启动项了
### BEGIN /etc/grub.d/30_os-prober ###
74 menuentry ‘Windows 7 (loader) (on /dev/sda1)‘ --class windows --class os $menuentry_id_option ‘osprober-chain-C2AE5AA3AE5A8FB1‘ {
75 insmod part_msdos
76 insmod ntfs
77 set root=‘hd0,msdos1‘
78 chainloader +1
79 }
80 ### END /etc/grub.d/30_os-prober ###
C2AE5AA3AE5A8FB1 这串为盘号(添自己对应的盘)
hd0,msdos1 win7所在盘
原文地址:http://falcon1106.blog.51cto.com/6638492/1620731