HAL.DLL Missing or Corrupt


HAL.DLL Missing error on Windows XP MCE SP2 with IE8
HAL.DLL Missing error on Windows XP MCE SP2 with IE8

If you are the proud owner of a Sony Vaio VGN-N130G (PCG-7T1L) or similar laptop, you are probably facing this issue right now. The malady also infects laptop of other makes.

Recently a laptop was submitted to me for diagnosis and rectification of this error. What I assumed incorrectly to be a 5 minute job turned out to be a 10 hour job. The error reported was simple – laptop running Windows XP Media Center Edition refuses to start with HAL.DLL Corrupt or Missing error message.

Simplest solution is to ask the user to start the computer with a Windows XP installation disc and press F2 when prompted for ‘Automated System Recovery‘. As it generally turns out, the customer did not have Recovery discs. Sony did not supply any and the customer never bothered to create them using the ‘Vaio Recovery – Create Discs’ option present on his laptop. The laptop was also running Windows XP Media Center Edition for which installations discs are not easily available with neighbors.

I requested the laptop to be brought over to my place so that I could manually replace the missing file. Since Windows XP acts completely dead if HAL.DLL goes for a toss, I generally start the offending computer with Hiren’s Boot CD, Load Mini Windows XP (if present) or go-to Command Prompt and load NTFS4DOS. To replace the offending file, I either search of the I386 folder already exists on the computer and use the EXPAND computer to decompress and replace the corrupted file with the original. If I386 folder is not present, then I either copy the file from another machine using USB Pendrive or Microsoft Networking for DOS.

As it turned out, in this case, neither helped. Replacing HAL.DLL from it’s archived version found in I386 folder present on the laptop did not help. Nor did copying a file from my computer and downloaded from Internet help. The error message re-appeared dutifully on every boot.

What I did notice is message about BOOT.INI that appeared and was replaced so quickly, that I only caught a ghostly image of it. Since I was already at command prompt, a simple DIR & DIR /AH revealed that the critical BOOT.INI file was missing! In Windows 2000/XP, the BOOT.INI file lists the Operating Systems that are installed on the computer and allows the Windows Boot Loader to selectively boot among them.

I copied the BOOT.INI file from my computer and restarted the laptop to be faced with the same missing HAL.DLL error. On a hunch, I used GDISK to list the partitions present on the hard-disk and sure enough: the first partition on the disk was not the partition on which Windows was installed on this computer. The first partition on this computer was actually a hidden partition with Sony Recovery Disc contents stored on it. It is a general practice to create this partition as the second partition but whatever. If Sony can install Root-Kit software on it’s paying customer’s computers, it can very well designate a recovery partition as the first partition.

Since the Windows partition was the second partition, I had to change the BOOT.INI file slightly. More specifically:
where-ever multi(0)disk(0)rdisk(0)partition(1)\WINDOWS appeared, I had to change it to multi(0)disk(0)rdisk(0)partition(2)\WINDOWS

Saving the Boot.ini and restarting the computer worked! Windows loaded up and started just fine. This led me to conclude that the problem all along was NOT about missing/Corrupt HAL.DLL. Since Boot.INI was missing, The boot loader present on the first partition (Vaio Recovery) started up and assumed that Windows was installed on the recovery partition. When it didn’t find it there, it generated a missing HAL.DLL error.

The problem could now be explained, Windows was demonstrated to be working well, albeit the laptop took it’s own sweet time to boot up completely. As is the practice, I restarted the laptop to assure myself and was slapped in the face with yet another ‘Missing HAL.DLL’ error for my efforts.

Starting the computer with Hiren’s Boot CD again revealed that the BOOT.INI was missing. I started wondering about virus infection. I re-created the BOOT.INI with the appropriate changes, made copies of the BOOT.INI file for good measure and restart the computer. Immediately after Windows loaded up, I fired up Windows Explorer to have a peek at the Root of C drive. No surprise! BOOT.INI was missing. The file was deleted by something immediately after boot. Even more amazing was that the backup copies I had made were also missing. This could either be due to corruption in the File Allocation Table or sinister programs (virus).

I connected the laptop to my home-network using a 10/100 Mbps Ethernet cable, restarted it using Kaspersky Live CD and allowed Kaspersky to download updates from the Internet. 15 minutes later, Kaspersky was ready to scan and kill any critter it found on the laptop. 3 hours and 240+ infected file deletions later, Kaspersky declared the laptop free of pests.

I recreated BOOT.INI, made a copy of it and renamed the copy to RAJIB.001 and restarted the machine. Upon Windows start-up, I noticed that BOOT.INI had again been deleted though RAJIB.001 file remained. I copied and renamed the backup to BOOT.INI. Clearly the pestilence was far from gone. I proceed to install Avast Anti-virus on the laptop, Register it, Update it, Configure Boot-time scan and then actually reboot the computer for Avast Boot-time scan to get to work. 2 hours and a couple of infected files deletions later, Windows started up and promptly deleted BOOT.INI

This had me totally flummoxed and clearly, I had run out of conventional methods to fix this problem.

Hunting around on the Internet revealed something that seemed improbable but worth investigating. Someone was facing this problem and he had narrowed it down-to Automatic Up-gradation of Internet Explorer to version 8 on his laptop. The user reported that as long as he stayed with Internet Explorer 7, the problem did not re-appear. Another user reported that the problem was caused due to spyware tool-bars such as MyWebSearch.

Since I plain desist tool-bars and find them to be obnoxious (now that Search bars are present by default in browsers), I discovered to my horror the sheer number of tool-bars that were installed on this laptop. Including MyWebSearch. I proceeded to un-install the tool-bars and chose to keep only the toolbar by Ask.com (the laptop owner had set the home page and default search engine to Ask). I generally like Ask.com and have found their search results to be very relevant . Downgrading to IE 8 was not an option. I have upgraded countless computers to IE 8 and have found the browser to be an excellent alternative to the superior Mozilla Firefox. I know for a fact that IE 8 does not delete BOOT.INI files.

A restart later BOOT.INI was gone again. This time more hunting revealed that users were suspecting the combination of IE 8 & Ask.com toolbar. I un-installed Ask.com quite incredulously, restored BOOT.INI and lo-behold – 3 restarts later, Boot.INI was still intact.

It turns out that due to reasons unknown, previously installed versions of Ask.com tool-bars act cranky when the browser is upgraded from IE 6/7 to IE 8. If the toolbar is uninstalled prior to up-gradation of IE 8, things go lot more smoothly.

Next question was how did Ask.com toolbar get on the system. Turns out, my laptop user does not like Ask.com search. He in fact does not have any browser/search engine preferences. Ask.com toolbar came in through over-loading by some other software.

There are numerous software now that foist the Ask.com tool-bar. It could have come in via any one of them. Though perfectly legit, the tool-bar did cause all the havoc that my laptop user faced.

10 hours, 1/2 night sleep sacrifice later, I present the info that will allow you to fix your computer in 5 minutes flat! 🙂


13 responses to “HAL.DLL Missing or Corrupt”

  1. i have the exact problem, i have to use xp recovery system and command bootcfg /rebuild upon every boot.

    i have ask.com bar istalled, is that whats causing it?

    many thanks

  2. I have this hal.dll problem on my Sony Vaio laptop. As far as I know, I don’t have the ask.com toolbar, but I did install IE8 yesterday after getting bored of the prompts for Automatic Updates.
    I can’t get into the normal setup to remove IE8, so I how can I get rid of it? All I can get to is the recovery wizard (pressing F8) or a few other options (pressing F10), which then all only give me Windows (Default), and it goes back to the error message.
    Thanks

  3. I had this problem on a Dell Desktop. Removing the Ask.com toolbar did nothing. I’ll try uninstalling IE8 and report back.

  4. After removing IE8 the problem is gone. Client didn’t even want IE8 in the first place so we won’t reinstall IE8 till a later date.

  5. Thanks!!!! What a strange error! This had been frustrating me for the past week.
    I also have a VAIO but running standard XP, and this fix worked like a charm, and it was because of the Ask.com toolbar that came with Orbit downloader. I don’t remember wanting it installed as I use Chrome and Google, but there it was!

    I was lucky enough to have a winxp cd. Just a bit more to add for anyone else that’s having issues, here’s what I did;

    1) Followed instructions here; http://www.troublefixers.com/windows-does-not-start-due-to-error-message-invalid-bootini-file/

    2) Once in Window’s removed ask.com toolbar via add/remove programmes and rebooted.

    3) Again got hal.dll error so re-installed boot.ini as per link above, and rebooted and has been going fine since!

    Solved!!
    Thanks Rahib you prob just saved me not just 10+ hours but some money as well!

  6. How do you uninstall ask.com and mywebsearch toolbar what do i do? is it with one of the programs on hirens boot cd?please be detailed im a noob when it comes to computers :/

  7. I cant go to the control panel because im missing the hal.dll file can i still delete it using hirens boot cd?

    • Hi Pedro,

      Firstly, You can use Hiren’s Boot CD to restore the HAL.DLL file into your computer and make it bootable again.
      You cannot un-install Ask/MyWebSearch toolbars because apart from creating folder/files in PROGRAM FILES folders, these apps also create files in the WINDOWS folder. Locating and deleting individual files of these programs is too tedious and also needs deletion of entries from the registry.

      Your focus should be on restoring HAL.DLL to your computer, make it boot into safe mode and then perform the un-install.

      HTH

  8. How do i restore the hal.dll file using hirens boot cd what program do i use?because it wont let me boot in to safe mode.

Leave a Reply to Rajib Ghosh Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.