• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Welcome to Free PC Help, a free PC Help forum to get help with your computer problems.

    Free PC Help is a community that offers free computer help and support for all users, all ages, worldwide.

    In order to start asking questions or contribute on someone else's post you will first need to register. Don't worry - it's quick and easy and once you have registered you will have instant access to the entire forum.

    If you do decide to join the forums you will not have the option to send Private Messages [ PMs ] or add a Signature until you have made 5 posts or more. This is an attempt to try to stop Spammers using the PM system or adding links to their Signature.

Windows could not start because the following file is missing or corru

need_help

FPCH New Member
Joined
Jun 15, 2007
Messages
1
#1
Hi, can someone help??? I accidently turned my laptop off whilst performing a system restore, and now my laptop wont even boot and get past the following message:

"Windows could not start because the following file is missing or corrupt:
<Windows root>\system32\hal.dll "

I try to press F8, but the comp will not Boot what so ever. I have not got the Microsoft XP disc that I think I need to re-install, can this be resolved in another way? I'm using my mothers comp at the moment, can I copy something from here that I can use to boot my Laptop with? If I create a system backup disc will this work on the laptop?

I'd be gratefull if someone out there could help, and even email me, thanks!
 

RandyL

Administrator
Joined
Jan 22, 2003
Messages
4,878
Location
USA, Nebraska
PC Experience
Very Experienced
#2
What version of Windows?
What is the make/model of your computer?

On HP/Compaq with XP I have followed HP's instructions a few times to fix a few computers with this message so I'll try to copy/paste their text on some steps that worked for me. FROM HP:

HP and Compaq Desktop PCs - Error: Windows could not start because the following file is missing or corrupt: <Windows root>\system32\hal.dll
This document applies to HP and Compaq Desktop PCs that come with Windows XP.
When Windows starts, the following error message appears:
" Windows could not start because the following file is missing or corrupt: <Windows root>\system32\hal.dll. Please re-install a copy of the above file."
Use the following steps to resolve this error:
Step 1: Opening a command prompt
This error prevents Windows XP from opening. This problem has to be addressed from a command prompt environment.
Use the following steps to open a command prompt environment:
1.Turn on the PC and press the F8 key repeatedly when the first screen appears.
The Windows advanced options menu appears.
2.Use the Up and Down Arrow and Enter keys to select Return to OS choices.
3.Select Microsoft Windows Recovery Console.

NOTE:
If "Microsoft Windows XP Recovery Console" is not listed, restart the PC with a Windows XP CD, Recovery Console CD, or Recovery Tools CD in the top CD or DVD drive and open Microsoft Windows Recovery Console. If a Windows XP Setup screen appears when using Recovery Console CDs, press the R key to open the Recovery Console.
4.

NOTE:
If "Microsoft Windows XP Recovery Console" does not list and you do not have a CD with recovery console, try the following:
a.Turn on the PC, and press the F10 key repeatedly at the first screen.
b.At the Recovery screen, click Advanced Options.
c.Press the Alt + D keys at the same time to open a command prompt window and skip to step 5.
5.When the login prompt appears, press the number next to the windows version (minint or Windows) and type the logon password. Try pressing Enter if you do not know the password.
6.At the command prompt, type the following: diskpart
7.Press Enter, do one the following:
If a table of volume names appears, remember the drive letter next to the main drive volume name (usually D or H next to HP_PAVILION or PRESARIO) and press the Esc key.
If a diskpart prompt appears, type list volume, press Enter, remember the drive letter next to the main drive volume name (usually D or H next to HP_PAVILION or PRESARIO), type exit when done, and then press Enter.

NOTE:
If the main drive volume name does not appear in the list, the PC needs to be recovered. For more information, refer to Performing a Full System Recovery in XP .
Step 2: Restoring boot.ini
Use the following steps to replace the boot.ini file with the backup boot.ini file:
1.Type the following at the command prompt: X: (where X is the drive letter).
2.At the prompt, type the following: ren boot.ini boot.in2
3.Press Enter
4.At the prompt, type the following: ren boot.bak boot.ini
5.Press Enter
6.At the prompt, type the following: exit
7.Press Enter
The system automatically restarts. If Windows XP does not open, continue to the next Step.
Step 3: Editing boot.ini
If the steps above fail to resolve the error, use the following steps:

NOTE:
The following steps use the recovery partition on the hard drive. If the recovery partition has been removed, these steps will not work and you should recover the PC using recovery discs.
1.Turn on the PC. When the initial logo screen appears, press the F10 key repeatedly until a message about starting recovery appears.
2.At the Recovery screen, click Advanced Options and then press the Alt and D keys at the same time to go to a command prompt.
3.At the command Prompt, type the following: diskpart
4.Press Enter and type the following at the diskpart prompt: list volume
A table of drive volumes and names appears.
5.Note the drive letter next to the main drive volume name (usually D or H next to HP_PAVILION or PRESARIO).
6.Type the following at the diskpart prompt: Exit
7.Press Enter and type the drive letter followed by a colon ( : ) at the command prompt. For example, D:.
8.Press Enter and type the following at the command prompt: attrib -h -s -r boot.ini
9.Press Enter and type the following at the command prompt: boot.ini
10.The file opens for editing in Notepad. Edit the boot.ini file to read exactly as follows:
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons

NOTE:
If your PC came with Windows XP Professional, edit the line referring to Home Edition under [operating systems] to read as follows: multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
11.Save and Exit from the menu.
12.Type the following at the command prompt: attrib +h +s +r boot.ini
13.Press Enter and type the following at the command prompt: Exit
14.Click Quit on the recovery screen to restart the computer.
The PC should now restart without the error message. If the error still persists, perform a full system recovery. For more information, see HP and Compaq Desktop PCs - Performing a System Recovery in Microsoft Windows XP "