Windows bootcfg
Bootcfg仅在Windows XP上可用。
如果我们正在寻找bootrec实用程序(适用于Windows Vista,7、8、8.10,请阅读Bootrec教程。
关于bootcfg
使用bootcfg实用程序,可以修改boot.ini文件。
该实用程序是Windows XP故障恢复控制台的一部分。
Windows XP原始安装光盘上提供了故障恢复控制台。
如果没有安装光盘,请使用Easy Recovery Essentials。
我们可以直接在CD,DVD或者USB上刻录EasyRE来访问命令提示符。
使用此实用程序,我们可以:
- 重建一个新的boot.ini文件
- 扫描硬盘驱动器以查找新的Windows安装(Windows NT 4.0,Windows 2000,Windows XP)并将其添加到boot.ini文件中
参数
bootcfg的参数为:
'bootcfg/default'将自动设置默认操作系统。
'bootcfg/add','bootcfg/rebuild'和'bootcfg/scan'将扫描硬盘驱动器以查找新的Windows安装,然后允许我们将这些安装添加到文件中(/scan除外,后者仅会打印找到的安装)。
bootcfg/add将打印以下类型的消息:
Scanning all disks for Windows Installations Please wait, since this Jan take a while... Total Identified Windows Installs: 2 [1] C:\Windows [2] D:\Windows Select installation to add: (select a number) Enter Load Identifier: (Custom description for an operating system loading from the Boot menu) Enter Operating System Load Options: (that is: /fastdetect)
bootcfg/rebuild将打印以下类型的消息:
Total Identified Windows Installs: 2 [1] C:\Windows Add installation to boot list? (Yes/No/All): Enter Load Identifier: (Custom description for an operating system loading from the Boot menu) Enter Operating System Load Options: (that is: /fastdetect) [2] D:\Windows Add installation to boot list? (Yes/No/All): Enter Load Identifier: (Custom description for an operating system loading from the Boot menu) Enter Operating System Load Options: (that is: /fastdetect)
bootcfg/scan将打印以下类型的消息:
Scanning all disks for Windows Installations Please wait, since this Jan take a while... Total Identified Windows Installs: 2 [1] C:\Windows [2] D:\Windows
'bootcfg/list'将读取boot.ini并显示它。
它将打印以下类型的消息:
Total entries in boot list: 2 [1] Microsoft Windows Whistler Professional Operating System Load Options: /fastdetect Operating System Location: D:\Windows [2] Microsoft Windows Whistler Server Operating System Load Options: /fastdetect Operating System Location: C:\Windows
'bootcfg/redirect'将在引导加载程序中启用重定向。
'bootcfg/disableredirect'将禁用引导加载程序中的重定向。
运行bootcfg
如果可以启动到Windows XP
bootcfg命令通常用于修改boot.ini。
我们可以直接从控制面板修改boot.ini文件。
这样做,请按照下列步骤操作:
- 点击开始
- 单击控制面板
- 点击性能和维护
- 点击系统
- 在“高级”选项卡上,单击“启动和恢复”
- 点击设置
- 在“系统启动”选项卡上,单击“编辑”。
- 保存更改,然后单击“确定”。
- 点击开始
- 去运行步
- 输入“ msconfig”
- 按下Enter
- 单击boot.ini选项卡
如果无法启动到Windows XP
如果无法启动进入Windows XP来运行bootcfg命令,则有两个选择:
- 使用原始Windows XP安装光盘启动进入故障恢复控制台
- 使用Easy Recovery Essentials直接从中启动命令行(我们可以将EasyRE刻录到任何CD或者DVD中)
有原始Windows XP安装光盘的说明:
- 将Windows XP CD插入光盘驱动器
- 重新启动电脑
- 在“ Microsoft安装程序”菜单上,按R
- 选择操作系统
- 输入管理员密码
- 当出现命令提示符时,可以键入bootcfg命令:
bootcfg /rebuild
- 完成后,键入“退出”以重新启动计算机
有关使用Easy Recovery Essentials的说明:
- 下载Easy Recovery Essentials
- 刻录ISO镜像。请遵循有关如何刻录可启动ISO镜像的说明。
如果我们想使用恢复USB,请按照我们有关如何制作恢复USB的说明进行操作。
- 从CD,DVD或者USB引导Easy Recovery Essentials
- 选择启动命令行
故障排除
bootcfg /scan 失败
如果'bootcfg/scan'命令失败并引发错误,请首先尝试运行chkdsk(相关教程:chkdsk)命令,以检测硬盘没有问题:
- 将Windows XP安装CD插入磁盘托盘
- 重启你的电脑
- 从CD引导
- 在“按任意键”消息中,按任意键
- 在Windows“选项”菜单上,按R键打开故障恢复控制台
- 输入管理员帐户的密码
- 当命令提示符出现在屏幕上时,键入以下命令,然后按Enter:
chkdsk C: /r
其中“ C:”是安装Windows的驱动器的盘符,“/r”参数将尝试修复错误并扫描坏扇区。