windows 7、8/10 安裝centos7雙系統后,默認會將mbr改寫成為grub2,而默認的centos7不識別windows 的ntfs分區,所以啟動項沒有windows。 下面隨小編一起去看看解決centos7雙系統后丟失windows啟動項的方法吧!
可以用3條命令,即可將windows添加到grub2的啟動項。
首先保證互聯網是通的。
1.yum -y install epel-release
2.yum -y install ntfs-3g
3.grub2-mkconfig -o /boot/grub2/grub.cfg
3條命令運行成功,重啟后,即可看到windows 7(loader)的啟動項,即可進入windows。