How to recover a corrupted registry in Microsoft® Windows® XP?

Discussion in 'Tutorials' started by sabret00the, Sep 26, 2006.

Thread Status:
Not open for further replies.
  1. sabret00the

    sabret00the New Member

    Joined:
    Aug 6, 2006
    Messages:
    699
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Calcutta
    When you try to start or restart Windows XP, you may receive one of the following error messages:

    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 from the Microsoft® Windows® XP cd,

    At the Press any key to boot from CD prompt, perform the following steps:

    Press the <Spacebar>.
    The Windows Setup screen appears, and several files are loaded.
    Press the <R> key.
    If prompted, select the number corresponding to the Windows installation you want to log on to (usually C:\WINDOWS).
    Press the <Enter> key.
    Enter the Administrator password (if any) and press the <Enter> key.
    The C:\WINDOWS> prompt appears.
    NOTE: If the system fails to boot, the following method of recovery is not possible.


    To copy the restore point in the recovery console, perform the following steps:

    Type cd \ and press the <Enter> key.
    Type cd system~1\_resto~1 and press the <Enter> key.



    NOTE: If a message Access Denied is displayed while attempting this fix, perform the following steps:
    Type cd \ and press the <Enter> key.
    Type cd windows\system32\config and press the <Enter> key.
    Type ren system system.bak and press the <Enter> key.
    Type exit and press the <Enter> key.
    Restart the computer.
    Continue troubleshooting below.



    Type dir and press the <Enter> key.
    A list of restore points appear. Choose the restore point which is dated the day prior to the occurence of the reported error.
    Type cd rpx (where x represents the restore point you chose in the step above) and press <Enter>.
    Type cd snapshot and press the <Enter> key.
    Type dir and press <Enter>.
    Type copy _registry_machine_system c:\windows\system32\config\system and press <Enter>.
    Overwrite system? (Yes/No/All): appears.
    Type Y and press the <Enter> key.
    Type copy _registry_machine_software c:\windows\system32\config\software and press the <Enter> key.
    Overwrite software? (Yes/No/All): appears.
    Type Y and press the <Enter> key.
    Type copy _registry_machine_sam c:\windows\system32\config\sam and press the <Enter> key.
    Overwrite sam? (Yes/No/All): appears.
    Type Y and press the <Enter> key.
    Type copy _registry_machine_security c:\windows\system32\config\security and press the <Enter> key.
    Overwrite security? (Yes/No/All): appears.
    Type Y and press <Enter>.
    Type copy _registry_user_.default c:\windows\system32\config\default and press the <Enter> key.
    Overwrite default? (Yes/No/All): appears.
    Type Y and press the <Enter> key.
    Type exit and press <Enter> to restart the computer and remove the Windows CD.
    NOTE: If any error message is returned while in the recovery console, use an earlier restore point.
    __________
    Method 2:

    Run the CHKDSK /R command in the Microsoft® Windows® XP operating system.

    Insert the Windows XP CD into the CD drive.

    Boot the system from the CD drive.

    The prompt Press any key to boot from CD... appears.

    Press the spacebar.

    The Welcome to Setup dialog box appears.

    Press the <R> key to repair Windows by using the Recovery Console.

    Select the number that is associated with the Windows installation you want to log into, and then type the administrator password (or press the <Enter> key if no administrator password exists).

    From Recovery Console, type the following command:

    CHKDSK /R

    Press the <Enter> key.

    From the Recovery Console, type the following command:

    EXIT

    Press the <Enter> key to restart your computer.


    NOTE: If the system still does not boot to the hard drive, attempt to run the CHKDSK /R command again. Depending on the corruption on the hard drive, it may take several tries to achieve a complete repair.
     
    Last edited: Sep 26, 2006
    anandk likes this.
  2. jz2linkinpark

    jz2linkinpark New Member

    Joined:
    Jul 24, 2006
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Rorikstead
    superb tutorial, and you wrote it urself too!
     
  3. OP
    OP
    sabret00the

    sabret00the New Member

    Joined:
    Aug 6, 2006
    Messages:
    699
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Calcutta
    @ jz2linkinpark : Hey thnx bro but I did'nt write it all by myself.I work as a tech support for one of the world's largest computer companies.Thought of sharing wat i do for a living almost everyday.
     
  4. n2casey

    n2casey Super Hero - Super Powers

    Joined:
    Sep 1, 2006
    Messages:
    766
    Likes Received:
    20
    Trophy Points:
    0
    Location:
    Dynamic
    then also, thx for ur tute
     
  5. OP
    OP
    sabret00the

    sabret00the New Member

    Joined:
    Aug 6, 2006
    Messages:
    699
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Calcutta
    hey ur wlcm and if u guys have a PATA/SATA hdd and not able to clean the HDD entirely(i mean strip it off the partition table entirely).then try to use the The MS-DOS "DEBUG SCRIPT" to completely remove partition table from HARD DRIVE http://www.thinkdigit.com/forum/showthread.php?t=37264
     
  6. swatkat

    swatkat New Member

    Joined:
    Mar 12, 2004
    Messages:
    2,058
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Shimoga/ಶಿವಮೊಗ್ಗ
    Hi,
    It's better to run chkdsk first. If it doesn't solve the problem, then go for restoring the Registry hive files. Another method can be found here.
     
  7. OP
    OP
    sabret00the

    sabret00the New Member

    Joined:
    Aug 6, 2006
    Messages:
    699
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Calcutta
    Very nice observation bro.thnx a lot for posting the comment though.Chkd out ur blog.Nice effort must say.
     
  8. OP
    OP
    sabret00the

    sabret00the New Member

    Joined:
    Aug 6, 2006
    Messages:
    699
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Calcutta
  9. Third Eye

    Third Eye gooby pls

    Joined:
    Apr 2, 2006
    Messages:
    4,293
    Likes Received:
    58
    Trophy Points:
    48
    Location:
    Not very far from you
    thanks man !
     
  10. Stalker

    Stalker New Member

    Joined:
    Jul 16, 2006
    Messages:
    992
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    closer than u think..
    gr8 tutorial
     
Thread Status:
Not open for further replies.

Share This Page