
windows7和centos7双系统启动问题
本机是windows7,然后想做双系统,就按照网上的方法,将D盘压缩掉60GB,然后用软碟通做了U盘启动,使用这60GB做了centos7,做完发现只能启动centos,...
本机是windows7,然后想做双系统,就按照网上的方法,将D盘压缩掉60GB,然后用软碟通做了U盘启动,使用这60GB做了centos7,做完发现只能启动centos,没有win7的启动项,请问怎么解决啊?
展开
4个回答
2015-09-20 · 知道合伙人数码行家
关注

展开全部
解决安装win7和CentOS7双系统不显示windows启动项问题:
修改/etc/grub.d里的40_custom文件
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'windows 7 ultimate'{
set root=(hd0,1)
chainloader +1
boot
}
保存,运行grub2-mkconfig -o /boot/grub2/grub.cfg(root权限下)
修改/etc/grub.d里的40_custom文件
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'windows 7 ultimate'{
set root=(hd0,1)
chainloader +1
boot
}
保存,运行grub2-mkconfig -o /boot/grub2/grub.cfg(root权限下)
展开全部
应该需要做个引导,在cmd可以写个代码,不过我是用魔方优化软件里面启动项添加的。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
下载一个启动项修复程序,一键傻瓜式修复
追问
能详细点说么?我现在只能进centos系统。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
可以百度下在centos下 grub教程,
追答
grub是Linux下的引导工具,centos应该用的也是grub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询