
Description
After switching on your computer or after restarting Windows XP you receive either of the error messages below and cannot get into Windows.
These errors are usually shown on a black screen with white writing and you cannot get anywhere further. You have no choice but to shutdown or restart the computer.
Symptoms
- You receive one of the following error messages when attempting to boot into Windows XP:
- Invalid Boot.ini
- Windows could not start because the following file is missing or corrupt: Windows/System32/Hal.dll
Explanation
The above error message is usually caused by the boot.ini file not having the correct entries in it following the upgrade but can also be caused by a hardware problem or a missing or corrupt Ntoskrnl.exe file.
Solution – Correct the Boot.ini file entries
- Insert your Windows XP CD and start your computer and watch out for the “Press any key to boot from CD” message.
- Press any key!
- At the welcome screen press ‘R’ to enter the Recovery Console
- At the recovery console, select your Windows XP installation and enter your Administrator password if requested
- At the prompt issue the following command and press ENTER:
- When the bootcfg tool finds your Windows XP installation you will be asked the following:
- Type Yes and press ENTER
- You will now be asked to Enter Load Identifier (message may differ)
- Enter the version of Windows XP that you own
- You will now be asked to Enter OS Load options
- Issue the following and press ENTER:
- Remove your Windows XP CD, issue the following command and press ENTER:
bootcfg /rebuild
[1] C:\Windows
Add installation to boot list?
(Yes/No/All)
The above text may look different for you depending on your installation type.
Example: Windows XP Professional or Windows XP Home Edition
/fastdetect
exit

this fixed my problem thank you but i need to do this every time i reboot any suggestions
Hi Brian,
Which error are you getting? There are two possible errors for this solution.
Describe the sequence of events please?
Thanks
Rosco
I am having the same issue, and have followed the rebuild procedure twice, both times successfully restoring Windows and allowing me to boot up completely. However, as soon as I restart again the same error messages appear (I receive both the errors listed above, Invalid Boot.ini,
and Windows could not start because the following file is missing or corrupt: Windows/System32/Hal.dll). Is there anything else I can do, or is it probably due to the hard drive beginning to fail?
Bryon M I fixed mine by inserting boot disc that came with computer. Then in the I386 folder i found all the boot files (they say boot in name) copied all of them I think theres was 5. Then droped them in 386 folder on my computer theres were only 2 in there it asked if I wanted to replace those 2 i said yes. It has been fine since.
What if I can’t boot from CD?
I have tried changing bios to boot from CD first but it doesn’t work.
Hi Gina…
Can you give me some info on your system? i.e. make/model of PC, message on screen, etc
R.
Thank you for your response Brian. I have a OS cd-rom and Recovery cd from another PC, but the computer I am having problems with did not come with any OS or Recovery cd’s (came with XPH pre-installed). I was able to use the OS & Recovery cd to follow the rebuild steps to allow me to login to Windows again, however when I tried to use the same “foreign” OS CD from within Windows it recognized that the OS CD was not compatible with the existing installation of XP.
I haven’t tried dragging the boot files from the i386 folder on the OS cd yet. Do you think that it will still work even if the OS cd is from another PC’s version of XPH? Thanks again, and thanks in advance for your help.
This article describes how to view and manually configure the Boot.ini file in Windows XP from within the Startup and Recovery dialog.
In Windows XP, you can quickly and easily locate the Boot.ini to verify and/or edit the file.
It is suggested to backup the Boot.ini file before editing. The first tasks will involve modifying folder option so as to view hidden files and then backing up the Boot.ini file.
Back to the top
Save a Backup Copy of Boot.ini
Right-click My Computer, and then click Properties.
-or-
Click Start, click Run, type sysdm.cpl, and then click OK.
On the Advanced tab, click Settings under Startup and Recovery.
Under System Startup, click Edit. This opens the file in Notepad ready for editing.
In Notepad, click File on the Menu bar, and then click Save As.
Right click in an empty area of the Save As dialog box, point to New in the context menu, and then click Folder.
Type a name for the new folder, for example temp, and then press the ENTER key to create the folder named temp.
Double-click the new folder named temp, and then click the Save button to save a backup copy of the Boot.ini file.
Back to the top
Edit the Boot.ini File
To view and edit the Boot.ini file:
Right-click My Computer, and then click Properties.
-or-
Click Start, click Run, type sysdm.cpl, and then click OK.
On the Advanced tab, click Settings under Startup and Recovery.
Under System Startup, click Edit.
Back to the top
Sample Boot.ini File
This is a sample of a default Boot.ini file from a Windows XP Professional computer.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”Microsoft Windows XP Professional” /fastdetect
This is a sample of the above Boot.ini file with a previous installation of Windows 2000 on a separate partition.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”Windows XP Professional” /fastdetect
multi(0)disk(0)rdisk(0)partition(2)\WINNT=”Windows 2000 Professional” /fastdetect
Back to the top
Modifying the Boot.ini
While you can modify the Boot.ini file using the Startup and Recovery dialog, where you can select the default operating system, change the timeout value, or manually edit the file, the following method uses the command line utility, Bootcfg.exe.
Note The Bootcfg.exe utility is only available in Windows XP Professional. This utility is not available in Microsoft Windows XP Home Edition. Therefore, this section does not apply to Windows XP Home Edition.
Click Start, and then click Run.
In the Open text box, type cmd.
At the command prompt, type bootcfg /?.
The help and parameters for BOOTCFG.exe will display.
Adding an Operating System
At the command prompt, type:
bootcfg /copy /d Operating System Description /ID#
Where Operating System Description is a text description (e.g. Windows XP Home Edition), and where # specifies the boot entry ID in the operating systems section of the BOOT.INI file from which the copy has to be made.
Removing an Operating System
At the command prompt, type:
bootcfg /delete /ID#
Where # specifies the boot entry ID that you want to be deleted from the operating systems section of the BOOT.INI file (e.g. 2 for the second Operating system that is listed.
Setting the Default Operating System
At the command prompt, type:
bootcfg /default /ID#
Where # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.
Setting the Time Out
At the command prompt, type: bootcfg /timeout# Where # specifies the time in seconds after which default operating system will be loaded.
Back to the top
Open the Boot.ini File to Verify Changes
Right-click My Computer, and then click Properties.
-or-
Click Start, click Run, type sysdm.cpl, and then click OK.
On the Advanced tab, click Settings under Startup and Recovery.
Under System Startup, click Edit.
where can i get a boot.ini for my flashdrive to be inserted to my computer….i cant insert the windows xp cd….due to….my computers harddrive is not available…
tnx in advance..
[...] First try: http://www.proposedsolution.com/solution… [...]