linux 在grub2中添加windows启动项

2019-04-15 13:44发布

查看Windows分区UUID
[img]http://dl.iteye.com/upload/picture/pic/133655/7f9c13f9-6a83-37fb-af58-8d95c9223ad5.png[/img]

修改grub.cfg
[img]http://dl.iteye.com/upload/picture/pic/133657/b444c3af-5f8b-39fa-8b07-3b091dec51e3.png[/img]

menuentry 'Windows 7'{
insmod ntfs
set root='hd0,msdos3'
search --no-floppy --fs-uuid --set B2C49581C495490D
chainloader +1
}