Repair/fix system32 boot error Windows XP

I get this error " C:\windows\system32\ is corrupted " so I cant boot to windows xp , and I really need to restore my windows to work cause I have very important software installed , even the windows scandisk don't fix the problem and I cant restore my system!

Finely I managed to find a solution from the using the repair option when you boot to your Windows XP disk so if you have this kind of problem and want to restore your windows back just try this:

First the simple Method:
when you power or restart your PC keep pressing F5 , and chose last known good configuration option , see picture below:
if it doesnt work try the second method .

Second Method :
In the second method you need your windows xp disk to Repair a Corrupted Registry Hive, put the disk to your CD/DVD reader and restart your computer then boot to the disk , 
When the "Welcome to Setup" screen appears, press R to start the Recovery Console. 
   1. If you have a dual-boot or multiple-boot computer, select the installation that you want to access from the Recovery Console.
   2. When you are prompted to do so, type the Administrator password. If the administrator password is blank, just press ENTER.
   3. 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

delete c:\windows\system32\config\system

copy c:\windows\repair\system c:\windows\system32\config\system

  • Type exit to quit Recovery Console. Your computer will restart.
now your windows xp should boot up as usual , 
if not flow the same steps but with the following command lines :

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

delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default

copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default
Repair/fix system32 boot error Windows XP Repair/fix system32 boot error Windows XP Reviewed by Maherr Live on Tuesday, March 16, 2010 Rating: 5