windows 7、8/10 安裝centos7雙系統(tǒng)后,默認(rèn)會(huì)將mbr改寫(xiě)成為grub2,而默認(rèn)的centos7不識(shí)別windows 的ntfs分區(qū),所以啟動(dòng)項(xiàng)沒(méi)有windows。 下面隨小編一起去看看解決centos7雙系統(tǒng)后丟失windows啟動(dòng)項(xiàng)的方法吧!
可以用3條命令,即可將windows添加到grub2的啟動(dòng)項(xiàng)。
首先保證互聯(lián)網(wǎng)是通的。
1.yum -y install epel-release
2.yum -y install ntfs-3g
3.grub2-mkconfig -o /boot/grub2/grub.cfg
3條命令運(yùn)行成功,重啟后,即可看到windows 7(loader)的啟動(dòng)項(xiàng),即可進(jìn)入windows。