If you’ve ever used a dual-boot system and then removed one of the operating systems, it can still show up in Windows 7’s boot menu. We’ll show you how to get rid of old entries and speed up the boot process.
如果您曾经使用过双重引导系统,然后删除了其中一个操作系统,则它仍可以显示在Windows 7的引导菜单中。 我们将向您展示如何清除旧条目并加快启动过程。
Note: If you’re still rocking Windows XP, you can remove items from the boot menu there too.
注意:如果您仍在使用Windows XP,则也可以从启动菜单中删除项目。
To edit the boot menu, we will use a program called bcdedit that’s included with Windows 7. There are some third-party graphical applications that will edit the menu, but we prefer to use built-in applications when we can.
要编辑启动菜单,我们将使用Windows 7附带的名为bcdedit的程序。有一些第三方图形应用程序将编辑菜单,但是我们更愿意使用内置的应用程序。
First, we need to open a command prompt with Administrator privileges.
首先,我们需要打开一个具有管理员权限的命令提示符。
Open the start menu and type cmd into the search box. Right click on the cmd program that shows up, and select Run as administrator.
打开开始菜单,然后在搜索框中键入cmd 。 右键单击显示的cmd程序,然后选择“以管理员身份运行” 。
Alternatively, if you’ve disabled the search box, you can find the command prompt in All Programs > Accessories.
或者,如果您禁用了搜索框,则可以在“所有程序”>“附件”中找到命令提示符。
In the command prompt, type in bcdedit and press enter. A list of the boot menu entries will appear.
在命令提示符下,键入bcdedit ,然后按Enter。 将会出现启动菜单条目的列表。
Find the entry that you would like to delete – in our case, this is the last one, with the description of “Ubuntu”. What we need is the long sequence of characters marked as the identifier. Rather than type it out, we will copy it to be pasted later.
找到您要删除的条目-在我们的例子中,这是最后一个条目,其描述为“ Ubuntu”。 我们需要的是标记为标识符的长字符序列。 而不是将其键入,我们将复制它以便稍后粘贴。
Right-click somewhere in the command prompt window and select Mark.
右键单击命令提示符窗口中的某个位置,然后选择标记。
By clicking the left mouse button and dragging over the appropriate text, select the identifier for the entry you want to delete, including the left and right curly braces on either end.
通过单击鼠标左键并拖动适当的文本,选择要删除的条目的标识符,包括两端的左花括号和右花括号。
Press the Enter button. This will copy the text to the clipboard.
按下Enter键。 这会将文本复制到剪贴板。
In the command prompt, type in: (make sure to put a space at the end)
在命令提示符下,键入:(确保在末尾放置一个空格)
bcdedit /delete
bcdedit /删除
and then right-click somewhere in the command prompt window and select Paste.
然后右键单击命令提示符窗口中的某个位置,然后选择“粘贴” 。
Press Enter to input the now completed command. The boot menu entry will now be deleted.
按Enter输入现在完成的命令。 现在,引导菜单项将被删除。
Type in bcdedit again to confirm that the offending entry is now gone from the list.
再次输入bcdedit ,以确认该违规条目现在已从列表中消失。
If you reboot your machine now, you will notice that the boot menu does not even come up, because there is only one entry in the list (unless you had more than two entries to begin with).
如果现在重新启动计算机,您会注意到启动菜单甚至都没有出现,因为列表中只有一个条目(除非您开头有两个以上的条目)。
You’ve shaved a few seconds off of the boot process! Not to mention the added effort of pressing the enter button.
您已将启动过程缩短了几秒钟! 更不用说按下回车按钮了。
There’s a lot more that you can do with bcdedit, like change the description of boot menu entries, create new entries, and much more. For a list of what you can do with bcdedit, type the following into the Command Window.
使用bcdedit可以做很多事情,例如更改启动菜单项的描述,创建新项等等。 有关使用bcdedit可以执行的操作的列表,请在“命令窗口”中键入以下内容。
bcdedit /help
bcdedit /帮助
While there are third-party GUI solutions for accomplishing the same thing, using this method will save you time by not having to go through the extra steps of installing an extra program.
尽管有第三方GUI解决方案可以完成同一件事,但是使用此方法可以节省不必要的时间,而不必执行安装额外程序的额外步骤。
翻译自: https://www.howtogeek.com/howto/17903/remove-ubuntu-or-xp-from-the-windows-7-boot-menu/