/boot/grub/grub.cfg中关于启动windows7的内容,
3E7649F87649B207 是/dev/sda1的UUID,供大家借鉴,生成windows的启动选项.
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-3E7649F87649B207' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3E7649F87649B207
else
search --no-floppy --fs-uuid --set=root 3E7649F87649B207
fi
parttool ${root} hidden-
chainloader +1
}