I restarted my pc and got this error message "Windows could not start because the following file is missing or corrupt : \WINDOWS\SYSTEM32\CONFIG\SYSTEM
You can attempt to repair this file by starting Windows Setup.
Select ‘r’ at the first screen to start repair."
Then I followed these steps :

Boot to the Recovery Console.
At the Recovery Console command prompt, type the following lines, pressing ENTER after you type each line:
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak

My problem is after typing
copy c:\windows\system32\config\security c:\windows\tmp\security.bak then i press enter it says "the system cannot find the file specified" and so on the c:\windows\system32\config\default.
Please Help

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

This is a common error and I see all kinds of troubleshooting online. This message has come on my computer many times. The error has probably happened at least 5 times and I had to reformat my hard drive each time. None of the online solutions helped besides reformatting. I maintain my computer with recent updates and Norton. I also noticed that when I install some LEGIT programs, my computer tends bring this error.

My computer is around 8 years old that uses XP SP2 but I can’t afford a new one. Is there a way to prevent this hal.dll error? Should I buy a new hard drive? I replaced my original hard drive around maybe 4 years ago with a Seagate Barracuda (currently using). One weird thing to note is that the hard drive has worked when under a hard drive enclosure. Not sure about now. Any suggestions?