centos 7 安裝 恢複windows引導項

來源:互聯網
上載者:User

標籤:try   loader   啟動   centos 7   代碼   安裝centos7   chain   linux   -o   

在電腦Windows10系統上安裝Centos7,安裝後找不到Windows7引導菜單。

原因:因為CentOS 7已採用新式的grub2系統,所以需要進入/boot/grub2目錄後使用vi編輯grub.cfg檔案。

解決方案一:修改Centos 7的Grub2引導,添加Windows的啟動項

1 1.sudo vi /boot/grub2/grub.cfg2 2.找到 ### BEGIN /etc/grub.d/30_os-prober ###3    在後面添加4    menuentry "Windows 10 (loader) (on /dev/sda1)" {5      insmod ntfs6      set root=(hd0,1) #由於我的windows安裝在硬碟的C盤,故(hd0,1)7      chainloader +18    }

解決方案二:系統自動檢測是否有其他系統

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

Linux只能認識Ext3/4,fat32格式,如果Windows是NTFS格式磁碟分割,Grub2將無法識別。

轉自:http://www.cnblogs.com/duzishanglu/p/4687958.html

 

centos 7 安裝 恢複windows引導項

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.