如何在Windows启动管理器菜单上删除额外的Ubuntu选项?
我使用Wubi与Windows并排安装了ubuntu。 我决定卸载ubuntu并安装Kubuntu,我成功完成了。 但是现在当我启动计算机时,Windows启动管理器显示3个选项:
- 视窗
- Ubuntu的
- Kubuntu的
Ubuntu选项不起作用,但是当我第一次卸载Ubuntu时,该条目没有被删除。 我如何摆脱这个额外的条目?
对于Windows Vista,7或8,以管理员身份运行bcdedit
(按Windows键,键入cmd
,查看上方并右键单击CMD.EXE
并选择Run as administrator
)。
这将列出Windows Boot Manager条目:
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>
请注意具有Ubuntu
描述的Real-mode Boot Sector
条目。 复制并粘贴identifier
,然后按如下方式删除它(在我的例子中):
bcdedit /delete {1476af63-e5bc-11de-b180-0024543ae029}
对于Windows XP,您可以编辑C:\boot.ini
。 我建议首先进行备份,因为错误可能会导致Windows无法启动。 您还应该按如下方式编辑它:
- 右键单击“
My Computer
,然后单击“Properties
。 - 在“
Advanced
选项卡上,单击Settings
Startup and Recovery
Settings
下的Settings
。 - 在
System Startup
单击Edit
。 - 删除行
C:\wubildr.mbr = "Ubuntu"
您可以使用Grub Customizer ,一个图形grub2设置管理器。