
How to Rebuild a Missing or Corrupted boot.ini File
- Document ID: 98080079
- Posted Date: 2002-09-25
- Last Updated: 2002-09-25
- Distribution: View Public Website
- Applicable Models
Satellite All Portege All Tecra All Satellite Pro All M-Series All
- Issue
- How to rebuild a corrupted or missing Windows XP BOOT.INI file.
- Procedure
The bootcfg command is a Microsoft Windows XP Recovery Console command that manipulates the Boot.ini file. This command has a function that can scan your hard disks for Microsoft Windows NT, Microsoft Windows 2000, and Windows XP installations, and then add them to an existing Boot.ini file or rebuild a new Boot.ini file, if one does not exist. The bootcfg command enables additional Boot.ini file parameters to be added to existing or new entries.
To use the bootcfg command, start the Recovery Console with the Windows XP CD-ROM, and then click Recovery Console. Or, install the Recovery Console locally, and then select the command from the Boot menu.
The bootcfg command and its uses:- The bootcfg /default command sets the default operating system option in the Boot menu (the command selects the operating system entry automatically).
- The bootcfg /add command scans the
computer for Windows NT, Windows 2000, or Windows XP (if
dual booting) installations, and then displays the
results. From this location you can add an installation
to the Boot menu.
An example of the message that may be displayed:
Scanning all disks for Windows Installations
Please wait, since this may 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)
This process adds a new entry into the Boot menu. When you add an installation, the bootcfg command also makes the installation the default operating system boot entry.
- The bootcfg /rebuild command scans the
hard disks of the computer for Windows NT, Windows 2000,
or Windows XP installations, and then displays the
results. You can add the detected Windows installations.
An example of the message that may be displayed:
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)
- The bootcfg /scan command scans the hard
disks of the computer for Windows NT, Windows 2000 or
Windows XP installations, and then displays the results.
An example of the message that may be displayed:
Scanning all disks for Windows Installations
Please wait, since this may take a while...
Total Identified Windows Installs: 2
[1] C:\Windows
[2] D:\Windows
- The bootcfg /list command reads the Boot.ini
file, and then displays the operating system identifier,
the operating system load options, and the operating
system location (path).
An example of the message that may be displayed:
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
- The bootcfg /redirect command enables
redirection in the boot loader with the configuration
specified as port and baudrate. This command is used to
enable the Headless Administration feature.
An example of this command:
bootcfg /redirect com1 115200
bootcfg /redirect useBiosSettings
- The bootcfg /disableredirect command
disables redirection in the boot loader with the
configuration specified as port and baudrate. This
command is used to disable the Headless Administration
feature.
You can also modify the Boot.ini file in the Windows XP graphical user interface (GUI):
- In Control Panel, double-click System.
- On the Advanced tab, click Startup and Recovery, and then click Settings.
- Under System Startup, click Edit.
- You must save your changes, and then click OK to to leave the Startup and Recovery window before the changes to the Boot.ini file are seen.
- Click Start, click Run, and then type: msconfig to start the System Configuration utility.
- Click the Boot.ini tab.
COMMENTS:
Please refer to Microsoft Knowledgebase Article Q291980.- Export Control and EULA
- Use of any software made available for download from this system constitutes your acceptance of the Export Control Terms and the terms in the Dynabook end-user license agreement both of which you can view before downloading any such software.