問題描述:
在電腦Windows7系統(tǒng)上安裝Centos7,安裝后找不到Windows7引導菜單。
原因分析:
因為CentOS 7已采用新式的grub2系統(tǒng),所以需要進入/boot/grub2目錄后使用vi編輯grub.cfg文件。
解決方法:
修改Centos 7的Grub2引導,添加Windows的啟動項。
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 }
推薦教程:centos教程