-
問題描述:
卸載ubuntu後系統啓動項還有殘留的無效Ubuntu啓動項選擇。
-
錯誤的方法:
我在網上找了許多方法,提到很多的是採用運行 --> msconfig -->啓動項-->刪除ubuntu啓動項。但這種方法好像不頂用,因爲WIN7下好像啓動項中只有windows 7os這一個選項。
-
成功的方法:
首先,以管理員身份啓動cmd窗口
-
其次,輸入並執行命令bcdedit,得到如下結果:
C:\Windows\system32>bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
description Windows Boot Manager
locale zh-CN
inherit {globalsettings}
default {current}
resumeobject {f00a81b4-9c18-11de-817f-f75094157968}
displayorder {current} {f00a81b3-9c18-11de-817f-f75094157968}
{f00a81b8-9c18-11de-817f-f75094157968}
toolsdisplayorder {memdiag}
timeout 10
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale zh-CN
inherit {bootloadersettings}
recoverysequence {f00a81b6-9c18-11de-817f-f75094157968}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {f00a81b4-9c18-11de-817f-f75094157968}
nx OptIn
Real-mode Boot Sector
---------------------
identifier {f00a81b8-9c18-11de-817f-f75094157968}
device partition=F:
path \ubuntu\winboot\wubildr.mbr
description Ubuntu
-
其中最後一條記錄正是需要刪除掉的ubuntu,它的ID號是{f00a81b8-9c18-11de-817f-f75094157968}
-
輸入並執行命令bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968} 得到操作成功的提示:
C:\Windows\system32>bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968} The operation completed successfully.
-
重啓計算機,驗證成功!
https://jingyan.baidu.com/article/6fb756eca1316e241958fb10.html