1、以管理员身份启动cmd窗口【一定要以管理员身份启动,否者提示无法打开启动配置文件,拒绝访问。启动方法可以按照C:/windows/system32/cmd.exe路径找到cmd.exe 然后鼠标右键选择 以管理员身份运行】
2、输入并执行命令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}
3、输入并执行命令bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968}
得到操作成功的提示:
C:/Windows/system32>bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968}
The operation completed successfully.
4、重启计算机,验证成功!