close

如果安裝好Linux但是卻沒有出現在開機選單裡怎辦?

1. 建立新的選項

bcdedit /create /d "Ubuntu" /application bootsector

(Ubuntu字眼可改成自己看得懂的描述)

(輸入後會得到一組UID, 由很長的數字構成)

2. 設定對應的partition

bcdedit /set {UID} device partition=F:

(F:改成linux是安裝在哪一partition)

(如果是以native方式安裝linux,不確定是否有對應的partition)

(我是將Ubuntu安裝在windows的檔案系統下,所以有對應的partition)

3. 設定開機文件的路徑

bcdedit /set {UID} path \ubuntu\winboot\wubildr.mbr

("wubildr.mbr"是我將Ubuntu安裝在windows檔案系統下時的開機文件)

(以Native方式安裝的開機文件請看下面的註解)

4. 將此新選項加到開機選單裡

bcdedit /displayorder {UID} /addlast

 

[註解]

如何把grub的引導扇區文件導出來?

dd if=/dev/sda3 of=/dev/sda6/linuxloader/ubuntu.lnx bs=512 count=1

假若sda6即F:

則 bcdedit /set {UID} path \linuxloader\ubuntu.lnx

 

[參考]

網址一  網址二

arrow
arrow
    全站熱搜

    狗籠 發表在 痞客邦 留言(0) 人氣()