运行->CMD 右鍵利用管理員開啟 cmd,进入命令行窗口,改变当前目录到X:\WINDOWS\SYSTEM32(X是你安装VISTA的盘符)
输入BCDEDIT,回车

下面是我的计算机输入BCEDIT的结果:
Windows Boot Manager
--------------------
Identifier: {bootmgr}
Type: 10100002
Device: partition=C:
Description: Windows Boot Manager
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Default: {2d0d9c22-4a77-11da-a56e-d40c063bbf5e}
Display order: {legacy}
{2d0d9c22-4a77-11da-a56e-d40c063bbf5e}
{1625d476-43a5-11da-a549-f1ee9bdf6971}
{2f3cc56a-43b8-11da-8c03-d55e13bb3670}
{33e42816-4a65-11da-aed2-c823da34f85e}
{871d0272-45a7-11da-8068-a7b82002f671}
{90f4c1fe-43ea-11da-b377-f72b86a72270}
Timeout: 30

Windows Legacy OS Loader
------------------------
Identifier: {legacy}
Type: 10300006
Device: partition=C:
Path: \ntldr
Description: Legacy (pre-Longhorn) Microsoft Windows


Windows Boot Loader
-------------------
Identifier: {2d0d9c22-4a77-11da-a56e-d40c063bbf5e}
Type: 10200003
Device: partition=E:
Path: \Windows\system32\winload.exe
Description: Microsoft Windows Vista 64
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=E:
Windows root: \Windows
No Execute policy: OptIn

Windows Boot Loader
-------------------
Identifier: {1625d476-43a5-11da-a549-f1ee9bdf6971}
Type: 10200003
Device: partition=D:
Path: \Windows\system32\winload.exe
Description: Microsoft Windows Vista 32
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=D:
Windows root: \Windows
No Execute policy: OptIn
Detect hal: Yes

简单说明一下:我的计算机上C盘装了XP32,D盘装了VISTA32,E盘装了VISTA64,缺省启动是E盘的VISTA64
启动后显示启动菜单,等待时间是30秒,有3个选项,分别是Legacy (pre-Longhorn) Microsoft Windows,Microsoft Windows Vista 64和Microsoft Windows Vista 32
所以猜测如下:
Windows Boot Manager
--------------------
Identifier: {bootmgr}
Type: 10100002
Device: partition=C: BOOT MANAGER是装在C区的
Description: Windows Boot Manager
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Default: {2d0d9c22-4a77-11da-a56e-d40c063bbf5e} 这是缺省启动项
Display order: {legacy} 第一个菜单项
{2d0d9c22-4a77-11da-a56e-d40c063bbf5e} 第二个菜单项
{1625d476-43a5-11da-a549-f1ee9bdf6971} 第三个菜单项
{2f3cc56a-43b8-11da-8c03-d55e13bb3670} 未知
{33e42816-4a65-11da-aed2-c823da34f85e} 未知
{871d0272-45a7-11da-8068-a7b82002f671} 未知
{90f4c1fe-43ea-11da-b377-f72b86a72270} 未知
Timeout: 30 等待时间是30秒

Windows Legacy OS Loader
------------------------
Identifier: {legacy} 这是第一个菜单项
Type: 10300006
Device: partition=C: 启动分区是C
Path: \ntldr 使用\NTLDR作为引导程序
Description: Legacy (pre-Longhorn) Microsoft Windows 显示为Legacy (pre-Longhorn) Microsoft Windows


Windows Boot Loader
-------------------
Identifier: {2d0d9c22-4a77-11da-a56e-d40c063bbf5e} 这是第二个菜单项(注意这个才是唯一的ID,不会重复的)
Type: 10200003
Device: partition=E: 启动分区是E
Path: \Windows\system32\winload.exe 使用\Windows\system32\winload.exe作为引导程序
Description: Microsoft Windows Vista 64 显示为Microsoft Windows Vista 64
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=E:
Windows root: \Windows
No Execute policy: OptIn

Windows Boot Loader
-------------------
Identifier: {1625d476-43a5-11da-a549-f1ee9bdf6971} 这是第三个菜单项(注意这个才是唯一的ID,不会重复的)
Type: 10200003
Device: partition=D: 启动分区是D
Path: \Windows\system32\winload.exe 使用\Windows\system32\winload.exe作为引导程序
Description: Microsoft Windows Vista 32 显示为Microsoft Windows Vista 32
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=D:
Windows root: \Windows
No Execute policy: OptIn
Detect hal: Yes

对BCDEDIT的简单探索:
BCDEDIT 查看当前启动菜单内容
BCDEDIT -? 查看BCDEDIT命令帮助
BCDEDIT -? -xxxxx 查看BCDEDIT能够使用的命令选项的帮助(其中的xxxxx可以是TIME, DELETE, SET等等)

有用的命令:
BCDEDIT -TIME 30 设置启动菜单等待时间为30秒
BCDEDIT -DELETE {2d0d9c22-4a77-11da-a56e-d40c063bbf5e} 删除Identifier为{2d0d9c22-4a77-11da-a56e-d40c063bbf5e}的菜单项,如果没有发现这个Identifier的有效菜单,则什么也不做,推荐使用
BCDEDIT -DELETE {2d0d9c22-4a77-11da-a56e-d40c063bbf5e} 强制删除Identifier为{2d0d9c22-4a77-11da-a56e-d40c063bbf5e}的菜单项,请一定小心使用
BCDEDIT -SET {2d0d9c22-4a77-11da-a56e-d40c063bbf5e} Description "MY god1" 将Identifier为{2d0d9c22-4a77-11da-a56e-d40c063bbf5e}的菜单的显示文字改为MY god1(注意:如果中间有空格,则要包括在引号中)

 

來源:

http://5he11.blogspot.tw/2007/02/bcd-ntmgr-bcdedit.html

arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()