Windows 7 双系统,为Centos 7添加Windows引导程序

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_32846595/article/details/83445168

参考文章https://blog.csdn.net/tuolaji8/article/details/51852524

该方法应用与centos 7.Ubuntu未测试。主要问题:引导页面中只有linux而找不到windows7的。

需要进入/boot/grub2目录后使用vi(或nano)编辑grub.cfg文件。在### END /etc/grub.d/00_header ###之后,添加如下代码:

menuentry 'Windows 7 '{
set root=(hd0,1)
chainloader +1
}

经过此番修改后,重启动后,Windows 7启动项可以看到了,并且也可以成功进入Windows 7。

注意直接重新启动即可!!

猜你喜欢

转载自blog.csdn.net/qq_32846595/article/details/83445168