安装centos后没法引导启动windows7的解决方法

在电脑Windows7系统上安装Centos7,安装后找不到Windows7引导菜单。html


缘由:由于CentOS 7已采用新式的grub2系统,因此须要进入/boot/grub2目录后使用vi编辑grub.cfg文件。linux


解决方法一:修改Centos 7的Grub2引导,添加Windows的启动项ubuntu

1.sudo vi /boot/grub2/grub.cfg
2.找到 ### BEGIN /etc/grub.d/30_os-prober ###
在后面添加
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1) #因为个人windows安装在硬盘的C盘,故(hd0,1)
chainloader +1
}windows


解决方法二:系统自动检测是否有其余系统centos

grub2-mkconfig -o /boot/grub2/grub.cfg工具

Linux只能认识Ext3/4,fat32格式,若是Windows是NTFS格式磁盘分区,Grub2将没法识别。htm


其余解决方法:进PE恢复Windows的mbr引导(固然Centos 7的Grub2引导就没了),再进Windows下使用easyBCD添加Centos 7的Grub2引导,可是这个方法彷佛挺麻烦的,不想折腾了。get


史上最简单的windows引导ubuntu的方法:http://www.linuxdiyf.com/linux/13411.html方法

windows和linux双系统修改启动项顺序:http://www.linuxdiyf.com/linux/13260.htmlloader

妙用修复引导工具恢复ubuntu和windows双系统启动:http://www.linuxdiyf.com/linux/12042.html

win10装centos双系统以后,win10的启动项消失的解决方法:http://www.linuxdiyf.com/linux/13259.html

相关文章
相关标签/搜索