Win7系统下删除安装Linux系统后残余的启动项

本文提供了一种有效的方法来清除卸载Ubuntu后在Windows系统中留下的无效启动项。通过使用管理员权限的CMD窗口和输入特定的BCDEdit命令,可以定位并删除与Ubuntu相关的启动项ID,从而彻底解决启动项残留问题。
  1. 问题描述:

    卸载ubuntu后系统启动项还有残留的无效Ubuntu启动项选择。 

  2. 错误的方法:

    我在网上找了许多方法,提到很多的是采用运行 --> msconfig -->启动项-->删除ubuntu启动项。但这种方法好像不顶用,因为WIN7下好像启动项中只有windows 7os这一个选项。 

  3. 成功的方法:

    首先,以管理员身份启动cmd窗口

  4. 其次,输入并执行命令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

     

  5. 其中最后一条记录正是需要删除掉的ubuntu,它的ID号是{f00a81b8-9c18-11de-817f-f75094157968} 

  6. 输入并执行命令bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968} 得到操作成功的提示: 

    C:\Windows\system32>bcdedit /delete {f00a81b3-9c18-11de-817f-f75094157968} The operation completed successfully.

  7. 重启计算机,验证成功!

 

 

 

https://jingyan.baidu.com/article/6fb756eca1316e241958fb10.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值