HOWTO: Fix a Corrupted HAL.DLL file

Various changes to the Windows Operating System, also for the Intranet

Moderator: sjj1805

Post Reply
User avatar
sjj1805
Site Admin
Posts: 1194
Joined: Fri Oct 27, 2006 12:45 am
operating_system: Windows 10 Pro
motherboard: Hewlett Packard 2AF7
system_drive: C
32bit or 64bit: 64 Bit
processor: 2-90 gigahertz Intel Core i5 4460S
ram: 8 GB
video card: NVIDIA GeForce GT 705
sound card: P40D100-4 NVIDIA High Definition Audio
Hard_Drive_Capacity: 8 TB
Location: Birmingham UK
Contact:

HOWTO: Fix a Corrupted HAL.DLL file

Post by sjj1805 » Sun May 02, 2010 11:44 pm

This thread applies to Windows XP only!
You need a CD of Windows XP. I do not believe it matters which Service Pack or whatnot. Any will do. You are going to reinstall Windows (regardless of version, you can install Windows XP next to another installation of Windows XP, it's dual-booting the same OS) to regenerate HAL.DLL.

Now, follow these steps.
1. Boot from the CD and start the installer
2. Choose to install onto the already formatted partition with the unbootable Windows, but opt to leave the existing filesystem and any other OSes alone. Choosing this will require you to create another folder for Windows to avoid writing over the existing installation (that it somehow sees now but not when the Repair "Scanning for previous installations of Windows" is run, argh!) I usually call the new folder "WINXP."
3. Install Windows as you would normally, you'll need a Product Key but you can actually use your personal key on someone else's computer with no danger to you losing it or being accused of piracy, I'll explain this later.
4. Boot the NEW Windows XP install. Do not "Activate" or "register," you're going to be deleting this copy of Windows from the machine if all goes well.
5. Edit the BOOT.INI on the hard drive from the original installation of Windows with the corrupted HAL if you messed it up like I did and had four OS entries in it, none of which worked. This usually happens when you try to use the method outlined in the InformationWeek article repeatedly and it does not work.
6. Go to C:\WINXP\system32\hal.dll (where "WINXP" is the folder you installed the second copy of Windows XP) and copy it from the new Windows to C:\WINDOWS\system32\hal.dll (or wherever you installed Windows XP originally, I use "WINDOWS" but some people use strange folder names for their XP) and overwrite any file there. The new hal.dll is uncorrupt and newly regenerated. The file is specific to each machine's hardware configuration and we needed to rebuild it. The installer did that for us with the new installation.
7. Try rebooting your computer to see if you can get into your OLD Windows installation. If you can, congratulations!
8. DELETE the "WINXP" folder (or wherever you put your new Windows install).

Post Reply