我使用 Wubi 与 Windows 并排安装了 ubuntu。我决定卸载 ubuntu 并安装 Kubuntu,我成功地做到了。但是现在当我启动计算机时,Windows 启动管理器显示 3 个选项:
Ubuntu 选项不起作用,但是当我第一次卸载 Ubuntu 时该条目没有被删除。我如何摆脱这个额外的条目?
对于 Windows Vista、7 或 8,bcdedit以管理员身份运行(按 Windows 键,键入cmd,查看上方并右键单击CMD.EXE并选择Run as administrator)。
这将列出 Windows 启动管理器条目:
C:\Windows\system32>bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume2
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {1476af5e-e5bc-11de-b180-0024543ae029}
displayorder {current}
{1476af63-e5bc-11de-b180-0024543ae029}
toolsdisplayorder {memdiag}
timeout 10
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \windows\system32\winload.exe
description Windows 7
locale en-US
inherit {bootloadersettings}
recoverysequence {1476af60-e5bc-11de-b180-0024543ae029}
recoveryenabled Yes
osdevice partition=C:
systemroot \windows
resumeobject {1476af5e-e5bc-11de-b180-0024543ae029}
nx OptIn
Real-mode Boot Sector
---------------------
identifier {1476af63-e5bc-11de-b180-0024543ae029}
device partition=C:
path \ubuntu\winboot\wubildr.mbr
description Ubuntu
C:\windows\system32>
Run Code Online (Sandbox Code Playgroud)
请注意Real-mode Boot Sector描述为的条目Ubuntu。复制并粘贴identifier,然后按如下方式删除它(在我的情况下):
bcdedit /delete {1476af63-e5bc-11de-b180-0024543ae029}
Run Code Online (Sandbox Code Playgroud)
对于 Windows XP,您可以编辑C:\boot.ini. 我建议先进行备份,因为错误会阻止 Windows 启动。您还应该按如下方式编辑它:
My Computer,然后单击Properties。Advanced选项卡,单击Settings下Startup and Recovery。System Startup点击下Edit。C:\wubildr.mbr = "Ubuntu"