安裝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

相關文章
相關標籤/搜索