hal.dll Missing Or Corrupt Error
Welcome, Guest. Please login or register. Did you miss your activation email?


Pages: [1] 2
  Print  
Author Topic: hal.dll Missing Or Corrupt Error  (Read 812 times)
Rafa_R
Newbie
*
Posts: 1


Lol. I copied Britec..xD


View Profile
« on: June 10, 2010, 08:37:09 PM »

Error Message

    * "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."

    * "<Winnt_root>\System32\Hal.dll missing or corrupt:
      Please re-install a copy of the above file."

    * "Cannot find \Windows\System32\hal.dll"

    * "Cannot find hal.dll"



I'm having a problem with my laptop. I can't use it because when I try to turn it on it says, "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." It has been like this for two days now, and I'm not able to access any of my information. I have tried to install the missing file by using the Spotmau BootCD but whenever I press scan I get a prompt that says, "Cannot Find Any Windows System In Your Computer." Oh yeah, and I also have tried going in safe mode but it won't work. What can I do to fix this?
« Last Edit: June 12, 2010, 02:05:33 AM by Britec » Logged
tf76
Full Member
***
Posts: 127



View Profile WWW
« Reply #1 on: June 10, 2010, 09:19:05 PM »

OK, first things first. You have posted in the wrong section of the forum. I believe Brian will redirect this post into the proper section later.

Now for your issue. I'm assuming you're running XP.

First thing is check your boot order in your BIOS. Is this your only hard drive installed? If the boot order is OK then do this:

Boot from your CD and follow the directions to start Recovery Console. Then:

Attrib -H -R -S C:\Boot.ini
DEL C:\Boot.ini
BootCfg /Rebuild
Fixboot

Regards,
Another PC Technician
« Last Edit: June 10, 2010, 09:56:15 PM by tf76 » Logged

MrTicker
Sr. Member
****
Posts: 343



View Profile
« Reply #2 on: June 11, 2010, 12:46:34 AM »

Hi there,

In order to help you as quickly as possible please supply the information requested here:

http://www.briteccomputers.co.uk/forum/windows-xp-support/please-read-before-posting-745/msg2372/#msg2372

On your specific problem follow this link:

http://www.youtube.com/profile?user=Britec09#p/search/4/jvMkt9fkHCI

Post back with your results when you have followed those instructions.

Cheers HTH,

ticker
Logged

Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #3 on: June 11, 2010, 08:19:40 PM »

May I piggyback on this thread since I'm having the same Hal.dll issue? (perhaps it's the same...)


Little background info real quick,
I'm a computer repair tech of a few years experience, I own my own business that's fairly busy (3-7 computers per day) and do mostly virus repair, hardware upgrades and data/disaster recovery as well as on-site networking.

So, with that out of the way, I had a customer bring me her XP computer yesterday.  It was experiencing the missing or corrupt hal.dll error and wouldn't boot into Windows at all.
I've dealt with this before, so I tried the normal steps, but kept getting hung up on a couple different parts that always worked before.  This is when I started searching and found your video on youtube, then followed you here for some advice.
Here's her quick spex:
XP Home (32bit) - no idea on the SP, as I can't get into it at all)
512MB PC-133
Pentium4 1.7GHz
(etc.)

Now, I've already made a complete image of the entire HDD so that I've got backup of everything for the worst-case scenario of having to reinstall XP from scratch.
I have tried a repair install when all else failed (see below), but apparently someone in this computer's past, in all their experience and glory, installed Windows on a second partition (177GB) D drive, and left bits and pieces on their 13GB C drive.  Don't ask why, as I have NO idea. Wink  - So, repair install sees the correct previous XP install, but leaves me with no Repair function...only clean install.
So to be clear, Windows is installed on the D drive, along with their Documents and Settings, Program Files and some downloads, and their C drive has the ntldr, boot.ini, msdos, etc. (in several years, I've not seen an install quite like this one!)


OK, so I've followed the youtube vid to the letter (which is a good visual representation of the normal steps I've used to fix this same error in the past.  Good job!)  - expanding hal.dl_ from the CD worked fine, but then, I kept getting an error after running the attrib command line that "the parameter isn't valid"...until I added the -a command like this:
attrib -r-a-s-h c:\boot.ini (no spaces in between)
...apparently the install on this computer requires the -a command for some reason.

After getting that to work, the next step was to rebuild the boot.ini, which WILL NOT work.
I've done this at least a dozen other times on other rigs, but this XP install won't take it.
bootcfg /rebuild ends up hanging for several minutes (8 or so) and then dumps this error:
"Failed to successfully scan disks for Windows installations.
This error may be caused by a corrupt file system, which would prevent Bootcfg from successfully scanning.
Use chkdsk to detect any disk errors." - (yeah, ya think??!!!  isn't this why I got to here in the first place?!!)

I've tried using chkdsk /r on both C and D drives, but that didn't work.
I've tried using sfc /scannow, but that didn't work.

So, loading up BartPE, I created a new boot.ini, but that still wouldn't allow me to boot into Windows, so back into BartPE, brought up the boot.bak (I renamed the original rather than deleted it), made sure that the parameters were correct, but it still didn't work.

I've tried using ERD System Restore to restore the system back to the day before it started the hal.dll error, and that didn't work.
And it's beginning to look like the only option is to bite my lip and install XP from scratch since there's no repair option available when I get there.

I really don't want to have to resort to the format/reinstall/reinstall backed up data for this, as I've already invested a day into something that usually wouldn't take more than an hour, and starting them over from scratch and reinstalling everything that I backed up (to image) would take another whole day.

So, any ideas?
Logged
Britec
Administrator
Hero Member
*****
Posts: 3497



View Profile
« Reply #4 on: June 12, 2010, 01:55:25 AM »

Give this a try
If you have restore points in system volume information folder do this

<a href="http://www.youtube.com/watch?v=HMndA_ND9_A" target="_blank">http://www.youtube.com/watch?v=HMndA_ND9_A</a>
« Last Edit: June 12, 2010, 01:57:54 AM by Britec » Logged



Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #5 on: June 12, 2010, 09:44:40 AM »

That didn't work either. (although I did learn a new trick from that video - replacing the reg hives from the restore points rather than their originals from \Restore)
After the reboot, I was met with the boot.ini error followed by the now very familiar hal.dll error.
So, I went back in (was using BartPE rather than UBCD) and created a new boot.ini file with the correct parameters, but that still left me at the hal.dll error after a reboot.

Anything else before I call these people and tell them I can't do anything but format and reinstall from scratch??

Thanks for the help so far,
Psychlone
« Last Edit: June 12, 2010, 09:52:37 AM by Psychlone » Logged
dannyjks
Sr. Member
****
Posts: 371



View Profile
« Reply #6 on: June 12, 2010, 09:55:55 AM »

what os r u runing
Logged

Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #7 on: June 12, 2010, 10:20:12 AM »

It's a customer's computer running XP Home.

Thing that's thrown me is their install...they've got their HDD partitioned to 2, with the Windows folder, Documents and Settings, and some random things on the D drive, and Program Files, random things and boot.ini/ntldr/other system files on their C drive.

The boot.ini looks like this:
[boot loader]
timeout=1
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" /fastdetect

...and that's exactly what it should look like with the Windows folder on the D drive (at least, that's the way it's always worked for multiple-partitioned drives in the past)

I seriously can't figure out what's happening here - I've replaced the registry hives with their originals since my last post and STILL have the hal.dll error.
So, in summary:
chkdsk /r (on both C and D)
attrib -r-a-s-h c:\boot.ini (this line refuses to work without the -a switch)
bootcfg /rebuild (this ends in the error "failed to successfully scan - blahblah")
replaced hal.dll with hal.dl_ from an XP Home CD
ERD Commander System Restore - tried several different restore points going back a month

^ NONE of the things I would normally try worked in this instance - I've never seen a computer absolutely refuse to be fixed!

Thanks for the help,
Psychlone
Logged
dannyjks
Sr. Member
****
Posts: 371



View Profile
« Reply #8 on: June 12, 2010, 10:25:14 AM »

have you tried a repair install   
Logged

Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #9 on: June 12, 2010, 10:35:47 AM »

Oh yeah - it gets right to where it finds the previous Windows install but doesn't give me the Repair option, only Enter to Install, which I know doesn't wipe out their files, but all their settings and installed programs would be gone.

After thinking about it and looking at that boot.ini file multiple times, I just discovered that it's looking for the Windows directory in partition 2, which doesn't exist - partition 0 is the C drive (again, with Program Files and random system files) and partition 1 is the D drive, where the Windows folder exists.

I'm going to give it a new boot.ini showing Windows in partition 1 and see what happens.

If there's anything else you can think of, please don't hesitate!

Thanks,
Psychlone


***EDIT:  Nope - that didn't help
« Last Edit: June 12, 2010, 10:38:08 AM by Psychlone » Logged
Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #10 on: June 12, 2010, 10:39:26 AM »

Sorry for the double reply here...

Do you think it would be possible to remove the drive, hook it up to my computer, resize the C partition and copy over all the folders/files from the D drive to C???
Logged
dannyjks
Sr. Member
****
Posts: 371



View Profile
« Reply #11 on: June 12, 2010, 10:41:29 AM »

year you could try that and see if it helps  but you will have to set it as a slave drive
« Last Edit: June 12, 2010, 11:06:22 AM by dannyjks » Logged

Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #12 on: June 12, 2010, 03:45:28 PM »

That didn't work - and probably was a bad idea.  Fortunately for me, I had the foresight to make an image of the disk before completely messing it up with changing partitions!
So, after formatting and putting the original image back on, I'm back to where I started.

ANY ideas as to how to fix hal.dll after following through with all the known protocols?Huh?

Psychlone
Logged
Britec
Administrator
Hero Member
*****
Posts: 3497



View Profile
« Reply #13 on: June 12, 2010, 04:22:02 PM »

Well these are the steps to follow, I think you have tried most, apart for a fresh install and test your hard drive
these are the only options you have left really

Did you try chkdsk /r

1. Restore the hal.dll file from the Windows XP CD

2. Check for proper boot order in BIOS

3. Repair or replace the boot.ini file.

4. Run Windows XP System Restore from a command prompt

5. Write a new partition boot sector to the Windows XP system partition

6. Perform a repair installation of Windows XP

7. restore points in system volume information folder

8. Recover data from any bad sectors on your hard drive

9. Perform a clean installation of Windows XP

10. If all above fails Test the hard drive
« Last Edit: June 12, 2010, 04:26:28 PM by Britec » Logged



Psychlone
Newbie
*
Posts: 7


View Profile
« Reply #14 on: June 12, 2010, 05:13:50 PM »

Thanks for the input, and I should say that you're running one really great site here!
I'm a fairly seasoned pro at OS repairs, with several years of experience.  I've encountered this same exact error multiple times, and protocol always has worked for me in the past - but the one thing that's different (for me) this time is that the OS is partitioned to 2 separate partitions, with most on the D drive and some on the C drive)

Nowthen, here are the steps in (pretty much) exact order that I've tried (actually MULTIPLE TIMES - sense the frustration in my caps?? Wink) (note: there were reboots between most every step to test for functionality)

Replaced hal.dll with hal.dl_ from the XP CD (deleted the original and renamed the copied file hal.dll)
Attrib -r-a-s-h C:\Boot.ini (this line failed to run without the -a switch, but did run successfully with it many times)
DEL C:\Boot.ini
BootCfg /Rebuild (error, said that it couldn't successfully scan and to run chkdsk)
Boot into BartPE, create a new boot.ini file with the following parameters:
Code:
[boot loader]
timeout=1
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" /fastdetect
Chkdsk /r (I ran this on both the C drive and the D drive - as mentioned earlier, this particular install is on BOTH partitions, with the Windows installation folder on D, boot.ini, msdos, ntkrnl, etc. on the C drive)
Fixboot
Back into BartPE to change the parameters of the boot.ini file to reflect partition 1 as the Windows partition (don't know how I missed pointing it to partition 2 which doesn't exist)
Back into BartPE, run ERD System Restore for several periods dating back to a month ago
Replaced SAM, SYSTEM, SOFTWARE, SECURITY, DEFAULT from a restore point (which was a great trick I never knew about!)
Replaced SAM, SYSTEM, SOFTWARE, SECURITY, DEFAULT from the Windows\Repair folder (which is the only way I knew before learning the new trick from your site)
Tried a Repair Install - it had no option to Repair, only clean install (which I could have done, but then I'd have damage control picking up all their files/folders and putting them back from Windows.old to their original locations)
System Restore would be a decent option if I had a better access to use it - ERD Commander (via BartPE) System Restore allows such a feat, but every restore point I reverted to dating back an entire month still left me hanging with the hal.dll error.

I have checked and double-checked all the BIOS options, and found them to be correct.
Keep in mind that this is a very old machine (512MB PC-133/P4 1.7GHz) with 1 bad stick, so it's running with 256MB of PC-133 and takes a long time to do anything.

Last thing I tried was pulling the HDD and plugging it in my own computer, copied everything from the D drive over to one of my HDDs, resized the C partition to the HDDs full space, then copied everything back to the new C drive, then changed the boot.ini to reflect partition 0 as the Windows directory.

I've also checked the HDD for errors using several of my benchmarks, and nothing throws an error - all the SMART info is within threshold and there's not a single bad sector (since running chkdsk /r several times) - So I know that the drive is in OK form (perhaps not great, considering it's 5400RPM 40GB

Here's a question for you:  This appears to have XP Home on it (Pavillion 7965), and I have no idea if it has ANY service packs installed as I can't find any ServicePack folders inside the Windows directory.  The only XP CD that I've tried is XP Home + SP3 OEM.  Could this be the root of my issues?  If so, I have access to every OEM and retail release via ISO images made by the guy I bought this computer repair business from - if I'm barking up the wrong tree with the wrong CD, I could remedy that...

So, here I am...2 and a half days later with a simple hour-long job, and still no headway.


I can't believe that I'm not able to fix such a simple problem that I've done at least a dozen times in the past...

Any info for me, or should I just bite the bullet and do a fresh install? (I'd really hate to go that route, as setting everything back up for them is going to take a day in itself!)

Psychlone
Logged
Pages: [1] 2
  Print  
 
Jump to: