在/boot/grub2/grub.cfg文件中增加一个启动项,如下:
menuentry "Windows 10" --class windows --class os {
insmod part_msdos
insmod ntfs
insmod ntldr
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root AA1A89E31A89ACB
ntldr ($root)/bootmgr
}
其中root后面的id为使用blkid命令查出来的id,windows 10安装在哪个分区上,就查哪个分区的id。
本文详细介绍了如何在Linux系统的/boot/grub2/grub.cfg文件中添加Windows10的启动项,包括必要的insmod指令、设置root路径及查找UUID等关键步骤。

3万+

被折叠的 条评论
为什么被折叠?



