0x00 概述
安裝黑蘋果和linux需要更改uefi,裝回windows在主板bios頁面發現有蘋果和linux的uefi啟動項殘余;
安裝EasyUefi提示不兼容,下面展示如何通過win10使用管理員權限刪除uefi多余啟動項。
0x01 以管理員身份運行cmd
win+s搜索“cmd”,右鍵“以管理員身份運行”;
0x02 通過cmd刪除多余uefi啟動啟動項
列出所有uefi啟動項
Bcdedit /enum firmware
固件啟動管理器 --------------------- 標識符 {fwbootmgr} displayorder {bootmgr} timeout 1 Windows 啟動管理器 -------------------- 標識符 {bootmgr} device partition=\Device\HarddiskVolume1 path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI description Windows Boot Manager locale zh-CN inherit {globalsettings} flightsigning Yes default {current} resumeobject {44ad672d-18c2-11ea-b9bd-fd3674e6a7bd} displayorder {current} toolsdisplayorder {memdiag} timeout 30 Firmware Application (101fffff) ------------------------------- identifier {93cee840-f524-11db-af62-aa767141e6b3} description clover
需要注意的是path這個參數,可以看出是否是你想要刪除的引導項。例如primeos的路徑就是\EFI\android\xxxx,ubuntu的路徑是\EFI\ubuntu\xxx,下邊會用到其中的identifier(也就是標識符)項。
使用下面的代碼,將配置導出到savebcd文件中。
Bcdedit /export savebcd
復制這個文件,方便我們修改。
Copy savebcd newbcd
刪除指定identifier的uefi
Bcdedit /store newbcd /delete {93cee841-f524-11db-af62-aa767141e6b3}
導入編輯后的bcd文件
Bcdedit /import newbcd /clean
檢查uefi啟動
Bcdedit /enum firmware
固件啟動管理器 --------------------- 標識符 {fwbootmgr} displayorder {bootmgr} timeout 1 Windows 啟動管理器 -------------------- 標識符 {bootmgr} device partition=\Device\HarddiskVolume1 path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI description Windows Boot Manager locale zh-CN inherit {globalsettings} flightsigning Yes default {current} resumeobject {44ad672d-18c2-11ea-b9bd-fd3674e6a7bd} displayorder {current} toolsdisplayorder {memdi
0x03 參考