歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 重裝Vista或Win 7後恢復Ubuntu啟動項

重裝Vista或Win 7後恢復Ubuntu啟動項

日期:2017/2/28 16:42:23   编辑:Linux教程

最近裝了Windows7,不想卻讓之前裝的Ubuntu沒有啟動項了,Windows7沒有boot.ini文件編輯的方法,由於當時Ubuntu是用wubi在Windows下安裝的,找來找去,下面這個方法最適用,記錄下吧:
//復制文件到c:"下(在Ubuntu安裝分區的winboot目錄下,我多復制了個menu.lst)
D:\>copy d:\ubuntu\winboot\wubildr c:\
D:\>copy d:\ubuntu\winboot\wubildr.mbr c:\

D:\>bcdedit /create /d "Ubuntu" /application bootsector //多啟動菜單上顯示的名字
項 {dbff544b-a7c4-11dd-a51d-00155803ebb4} 成功創建。

//把得到的GUID復制下來,需要輸入的時候直接粘貼就行
D:\>bcdedit /set {dbff544b-a7c4-11dd-a51d-00155803ebb4} device partition=C: //啟動文件所在分區
操作成功完成。

D:\> bcdedit /set {dbff544b-a7c4-11dd-a51d-00155803ebb4} path \wubildr.mbr //啟動路徑及文件
操作成功完成。

D:\>bcdedit /displayorder {dbff544b-a7c4-11dd-a51d-00155803ebb4} /addlast //將此啟動項放到菜單的最後
操作成功完成。

Copyright © Linux教程網 All Rights Reserved