How to fix “Windows XP could not start because the following file is missing or corrupt”
A corrupt registry is the usual headache for most of my clients. The registry is a vital part of your Windows Operating system, it is what we call the central room. It stores all the informations on your PC, so a small error can cause big problems.
Yesterday I’ve been called to repair a clients PC because his PC receives an error when he try to boot on Windows XP. He thinks of reformatting the PC but opted to call me first to seek advice. Below is the error he recieves when loading Windows XP. Fortunately I was able to save him from formatting his PC.
Here are the procedures that you can follow to be able to recover from a corrupted registry and normally boot again on Windows XP. The procedures below are also applicable to the following registry errors.
- Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM
- Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SOFTWARE
- Stop: c0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE or its log or alternate
Boot into the Recovery Console
To be able to fix the registry error you need to use Windows XP Recovery Console. You can boot from a Windows XP CD or boot directly to the Recovery Console.
Follow these steps to boot into Windows XP Recovery Console
- Place your Windows XP in the CD-ROM Drive
- Restart your computer, make sure that your BIOS is set to boot from CD
- When you see the message “press any key to boot from cd…” press the space bar or any key.
- Wait until you see the “Welcome to Setup” screen, and press R to start the Recovery Console
- Choose which Windows installation you wish to load
- Type the administrator password and Press Enter
- You should now be at the C:\Windows> prompt
- Copy Repair Files Using the Recovery Console
If your Windows installation is on a different drive please substitute the substitute the appropriate drive letter in the procedure below.
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
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
Quit Recovery Console by typing “quit”. when your computer restarts press F8 then choose Safe Mode
Restart in Safe Mode and Find a Recent Snapshot Backup
Restart your computer in Safe Mode by pressing F8 during the initial bootup and choosing Safe Mode. Once in Safe Mode, you need to make sure the files and folders are visible so you can access them. Follow these instructions to accomplish this.
1. Open My Computer
2. Click on the Tools menu, then click Folder Options.
3. Click the View tab.
4. Under Hidden files and folders, click to select Show hidden files and folders, and then click to clear the Hide protected operating system files (Recommended) check box.
5. Click Yes when the dialog box that confirms that you want to display these files appears.
In My Computer, Double-click the drive where you installed Windows XP (usually Drive C) to display a list of the folders. then double-click on the “System Volume Information” folder. This folder contains the system restore points stored on your computer. The folders will look similar to
_restore{EE42BEB8-700A-495F-8004-53D26C2E12C5}
You might receive an access denied error message similar to the following when trying to access the System Volume Information folder.
C:\System Volume Information is not accessible. Access is denied.
You received this error message because you are logged in under does not have permissions set on the folder. To fix this, follow the instructions in the Microsoft Knowledge Base article 309531 to gain access and continue.
Once you have access to the snapshots, use the instructions below to copy one of the latest snapshots to the Windows\TMP directory so you have access to it.
1) In the System Volume Information Folder, click on View, and then click Details to display the date of each snapshot folder.
2) Open a folder that was not created at the current time but rather before the problem started.
3) Open the Snapshot subfolder
4) Highlight the following files and copy and paste them into the C:\Windows\TMP folder
- _REGISTRY_USER_.DEFAULT
- _REGISTRY_MACHINE_SECURITY
- _REGISTRY_MACHINE_SOFTWARE
- _REGISTRY_MACHINE_SYSTEM
- _REGISTRY_MACHINE_SAM
5) Rename the files that you just copied into the C:\Windows\TMP folder.
- Rename _REGISTRY_USER_.DEFAULT to DEFAULT
- Rename _REGISTRY_MACHINE_SECURITY to SECURITY
- Rename _REGISTRY_MACHINE_SOFTWARE to SOFTWARE
- Rename _REGISTRY_MACHINE_SYSTEM to SYSTEM
- Rename _REGISTRY_MACHINE_SAM to SAM
6) Once your done renaming the files, restart your computer again with the Recovery Console
Replace the Repair Files with a Current Backup of the Registry
In the Recovery Console again, type the following commands at the prompt to replace the files with a current backup. You’ll need to press Enter after each command.
del c:\windows\system32\config\sam
del c:\windows\system32\config\security
del c:\windows\system32\config\software
del c:\windows\system32\config\default
del c:\windows\system32\config\system
copy c:\windows\tmp\software c:\windows\system32\config\software
copy c:\windows\tmp\system c:\windows\system32\config\system
copy c:\windows\tmp\sam c:\windows\system32\config\sam
copy c:\windows\tmp\security c:\windows\system32\config\security
copy c:\windows\tmp\default c:\windows\system32\config\default
After the files have been replaced, type EXIT at the command prompt to restart Windows in normal mode.
Use System Restore to Return to a Good Backup Point
Because there is more to a System Restore than just the registry files, follow these steps to restore your computer to a good backup point.
1. Click Start, and then click All Programs.
2. Click Accessories, and then click System Tools.
3. Click System Restore, and then click Restore to a previous Restore Point and finish the restore.
Related posts:
- How to fix missing file WTSAPI32.DLL
- How to Fix “NTLDR is Missing” Error
- How to Delete undeletable file
- How to fix “Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)”
- Signs that you might have a Windows Registry problem
- How to Fix Windows Security Reporting Antivirus Programs
- How to Start Windows in Safe Mode
- How to Repair Windows XP Without Formatting Your PC
- How to fix Access Denied Error when installing Windows XP SP3
- How to fix USB device error “This Device Cannot Start. (Code 10)”














14 Comments
Great article!
This seems like a ton of work. This isnt something that a registry repair too can fix?
What do you think?
Take Care
LaPrentiss
thanks for the comment.
yes it’s really a ton of work but I think it’s a small job compared to reformatting your PC and re-installing your softwares, games and other applications
.
I don’t think this kind of error can be repaired by a reg fixer. but if you have a tool that can easily fix this problem kindly send a mail to me or just place a comment and I will make a post about it.
I visited your site and you got a great list of registry fixers.
Thanks for the tricks. I normally reformat my machine if my windows is corrupted.
Steve Yu´s last blog post..3 Free Online Virus and Malware Scan Services that use Multiple Anti-Virus Engines
your welcome
. thank you also for the comment.
for most of the computer users (just like me before
) formating is usually the only way to bring back windows when this type of error occurs. but formatting takes a lot of time especially on machines that has many installed programs. so the best way is to first diagnosed the problem without reformatting the computer.
El único problema al que uno se podría encontrar es que el equipo no tenga System Restore Service en funcionamiento ( o sea se haya deshabilitado la restauración del sistema), por lo demás un copia de seguridad del System State sirve.
EXITOS, ese es un buen artículo que si lo calificaremos tendría un 4.9, por que para evitar todos esos pasos, cojemos el HDD fallante lo conectamos en la otra cinta de disco, y copiamos directamente a las carpetas de system32, los archivos que mencionas en System Volume Information
Sie haben eine sch?ne Seite!
infor great and useful , i have had my share of system problems, ican put it to good use, let my freinds know about this web site. thank you ! very good job . april 25, 2009
michae’s last blog post..8 ways to spring clean your career
hi, thank u so much for the posts, but before i start all of this, i just wanna ask abt the last step, the system restore thing. Ive never set any system restore point in my computer before i got this registry problem and now i cant startup i dun hv the chance anymore, so is the step necessary? or everything will resume to normal after ive finished replacing the files and i can get back to everything and set up a system restore point by then??? PLEASE HELP ME!!! the files in my computer meant the whole world to me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! and it happened out of no where!!!!
anyway thanks for the help so much!!!!!
This post will also help you http://pcremix.com/how-to-repair-windows-xp-without-formatting-your-pc/
Thanks a million for this; you’re an absolute life saver!
Hi, I’m a new visitor of your site. I was just wondering, could a Windows Repair do this? Without going through the hassle of doing all of these? Sorry, end-user here
(Not the Recovery Console).
Pls help me!!! What is Recovery Console??? And what if I don’t have that?? I don’t even have that Windows XP CD-ROM, where can I get one and what does it look like??? And will this procedure delete all my files in my computer???? PLS HELP ME, myfuture depends on the project that is saved in THAT computer, and the submission is on Monday!!!! PLS
Every windows installed computer has recovery console. If you don’t have a XP CD you could just buy a a CD or borrow from a friend. No it will not delete all your files.