暫時更改 BIOS 設定後雙啟動停止工作

暫時更改 BIOS 設定後雙啟動停止工作

我有一台筆記型電腦(Toshiba Portege Z30-C),可以在Windows 7 Pro 和Linux Mint 18 之間進行雙重啟動。 CSM」啟動」。將 BIOS 設定更改回「UEFI(傳統)」後,不再載入 grub,而是直接進入 Windows 載入程式。當我按 F12 進行啟動覆蓋時,我只看到“HDD”作為一個選項,我認為這就是 Windows 啟動的原因。

在更改之前,我記得 BIOS 在可啟動設備清單中包含“Ubuntu”。然而現在,它似乎忘記了我的 Linux 安裝,沒有明顯的方法來獲取 ubuntu(我猜想是在其中一個分割區上引用 grub)。

linux 分割區上沒有任何變化,據我所知,開機分割區上也應該沒有任何變化。如何讓我的 Linux 發行版重新回到 BIOS 中的可啟動「裝置」?

從我在windows的分區工具中看到的,所有分區都和以前一樣。

答案1

類似的事情曾經發生在我身上。我能夠透過引導到 CD 來修復它,只是為了獲得更好的引導選單,然後我能夠從 CD 提供的選單引導到磁碟上的 Linux 作業系統。然後我剛剛修復了 Grubs 啟動。我不知道 Windows 這樣做的來龍去脈。這也是很多年前的事了,所以 ymmv。

答案2

事實證明,將 BIOS 設為 CSM 會刪除除筆記型電腦隨附的 Windows 之外的所有 uefi 條目。修復方法是啟動 Windows 並使用bcdeditWindows 的 dos 提示字元手動重新新增項目:

#List the entries to find a usable one to start from:
bcdedit /enum firmware

#Copy the usable entry to a new one with an appropriate name:
bcdedit /copy {bootmgr} /d "Mint UEFI boot"

#The previous command returns the guid of the new entry. This entry goes into the next command where we edit the new entry to point to the ubuntu firmware.
bcdedit /set {guid_goes_here} path \EFI\ubuntu\shimx64.efi

#Optional: Set the new entry to be the first choice when booting:
bcdedit /set {fwbootmgr} displayorder {guid_goes_here_too} /addfirst

完成此操作後,一切都恢復正常。不需要其他改變。

相關內容