General discussion

Locked

Replace a corrupted file without Windows

By bob ·
Windows will not load on this laptop running XP Home.
It displays an error stating "<Windows root> \system32\hal.dll File is missing or corrupted. Reinstall this file."
If I copy this file from another machine and put it on a floppy, will it work on this different machine?
And,
If I use a boot disk to boot into DOS mode, what are the DOS commands to copy this file from the floppy to the appropriate location?

This conversation is currently closed to new comments.

13 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by TheChas In reply to Replace a corrupted file ...

There should be no problem with copying a file from one PC running XP Home to another.

Keep in mind, that it is likely that the hard drive is formatted as a NTFS volume.
If so, DOS cannot even see the drive.

You can get a utility to allow DOS to access NTFS volumes here:

http://www.sysinternals.com/ntw2k/freeware/ntfsdos.shtml

2 better options would be to boot from the XP Home CD and either:

Run setup and choose a repair installation.

Run the recovery console and replace the file.

Chas

Collapse -

by TheChas In reply to

For sgt_shultz:

Looking at the properties of HAL.DLL on my XP Pro system, it looks like it is a file extracted from the XP installation CD.

My only concern would be having the file from the same version of XP as to not cause any problems.

Now, if the file was a .VXD that would be a different story.
Many VXD files are created when you install Windows or device drivers and are system specific.

Chas

Collapse -

by bob In reply to

I thank you fellas for trying, unfortunately, I never got the chance to try your concepts toward this dilemna.
The machine now fails to recognize any optical drives, preventing me from using them.
Thanks Again.

Collapse -

by dmiles In reply to Replace a corrupted file ...

To resolve this issue, use Recovery Console to replace the corrupt file.
Windows XP
To replace the corrupt sys file in Windows XP, follow these steps:
Start the computer from the Windows XP CD-ROM.
At the Welcome to Setup screen, press R to repair, and then press C to start Recovery Console.
At the C:\Windows prompt, type the following command, and then press ENTER:
ren c:windows\system32\file

At the C:\Windows prompt, type the following command, and then press ENTER:
expand cd-romdrive:\i386\file name c:\windows\system32\file name

For example, type:
expand d:\i386\file name c:\windows\system32\drivers

After the file is successfully expanded, type exit, and then press ENTER to exit Recovery Console.
Restart the computer.

Collapse -

by bob In reply to

Poster rated this answer.
I thank you fellas for trying, unfortunately, I never got the chance to try your concepts toward this dilemna.
The machine now fails to recognize any optical drives, preventing me from using them.
Thanks Again.

Collapse -

by wcp In reply to Replace a corrupted file ...

In my experience, replacing the file with your error message has never worked (I hope there?s an exception).

If replacing the file does not work, try the following in order.

1. Run ?Chkdsk /r? without the quotes from Recovery Console,
2. Reinstall Windows on top of the current one as in Answer 1,
3. Clean install Windows.

References:
http://tinyurl.com/tzek
http://tinyurl.com/zdnv

Collapse -

by bob In reply to

I thank you fellas for trying, unfortunately, I never got the chance to try your concepts toward this dilemna.
The machine now fails to recognize any optical drives, preventing me from using them.
Thanks Again.

Collapse -

by sgt_shultz In reply to Replace a corrupted file ...

my 2 cents. laziest, easiest way to fix. boot from installation cd. make like you are going to reinstall. just at the point where you are sure it is gonna hose your current installation, you will see 'setup found a current installation. would you like setup to repair it? say yes.
then bob's your uncle. which may actually be the case...

Collapse -

by sgt_shultz In reply to

btw, guys. what if he gets the hal.dll off a desktop and he is a laptop or viceversa. you think that is gonna work?

Collapse -

by bob In reply to

I thank you fellas for trying, unfortunately, I never got the chance to try your concepts toward this dilemna.
The machine now fails to recognize any optical drives, preventing me from using them.
Thanks Again.

Back to Windows Forum
13 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums