Registry errors and troubleshooting


What does Registry or Registry files mean?

The Registry is a centralized data structure that Windows programs, including the Windows itself, use to store configuration data.

Every software installs specific registry files into the registry called registry keys, those files help the operating system on how to deal with this particular software… hence the software meant by a program or a Windows driver.

Can I manage and deal with the Registry directly?

You can do that BUT it is highly not recommended as the Registry files are so critical and any simple mistake by editing a registry key or deleting one without being 100% sure about what are you doing would cause a Windows crashOpens in a new tab. or instability.

How do I know if I have a Registry error or corruption?

As stated by Microsoft,

 

If your computer does not restart, the registry hives may be corrupted. The error messages may vary. They can include any of the following:

  • Error message 1: Windows could not start because the following file is missing or corrupt:\WINNT\SYSTEM32\CONFIG\SYSTEM.ced
  • Error message 1: Windows could not start because the following file is missing or corrupt:\WINNT\SYSTEM32\CONFIG\SYSTEM
  • Error message 2: Windows could not start because the following file is missing or corrupt:\WINNT\SYSTEM32\CONFIG\SOFTWARE
  • Error message 3: System hive error
  • Error message 4: Stop 0xc0000218 (0xe11a30e8, 0x00000000, 0x000000000, 0x00000000) UNKNOWN_HARD_ERROR
  • Error message 5: Stop: 0xc0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\CorruptHive or its log or alternate. It is corrupt, absent, or not writable.

Reference: Microsoft Corporation

 

What are the reasons behind a Registry corruption?

There are many reasons behind that and sometimes it is difficult to find the cause of registry corruption, but I am listing below some possible causes that you may try to fix:

  • The Registry is written to at shutdown stage: The registry hive is written to disk during the computer shutdown, and this process may stop the computer or a component in the computer before the writing is completed, and you will not discover this until you try to load the registry hive at the next restart.
  • Power Failure: A power failure or some other unexpected shutdown event may cause a corrupted registry hive. if a computer shutdown happened during a process that may have been modifying part of the registry hive and before that change could be completed, this leaves the registry hive in an inconsistent state. On next restart, the operating system will find difficulties to load the registry and will show you one of the error messages shown above in the gray note section.
  • File Corruption
  • Faulty Hardware: This could be a reason of processor defectionOpens in a new tab., Hard Disk controllerOpens in a new tab., RAMOpens in a new tab. … etc that causes the registry hives to be corrupted, and by the way this might include system or data file corruption in addition to the registry hive corruption.
 

Note: A registry corruption might occur via a virus or spyware injection, so better to be sure that you operating system is clean of viruses and trojansOpens in a new tab..

To know how to scan and clean your computer form viruses and harmful injection you may visit How to clean my PC from virusesOpens in a new tab. tutorial, and to read more about the viruses types visit the Types of Viruses, Spyware and HijackersOpens in a new tab. page.

 

How to troubleshoot and solve the Registry corruption problems?

There are many ways to do so, most of them are hard for average users to implement and its recommended to ask a professional technician for that in case of the below instructions did not solve the problem, but in most cases you as a normal user can implement some of the below methods:

1. Restore the computerOpens in a new tab. to a previous state before registry corruption occurred (Learn how to use the Windows RestoreOpens in a new tab.)

 

Note: if you cannot log in to your computer, you need to restore the Windows from the Recovery Console, I will post a new tutorial for how to do that as this will make this article so long.

 

2. Run the chkdsk /r command-line command on the disk that contains the registry hive files (normally C: drive). This command helps verify that the area of the disk that contains the registry hive files is not involved in the problem.

 

 Note: To do that you have to :

  • Log in as Administrator.
  • Then click on Start > Run > type cmd and click on Enter key.
  • Type chkdsk /r and press Enter.

  • Type Y and press Enter.
  • Restart your computer.

The operation will occur after your restart.

 

3. Update all your Windows driversOpens in a new tab.. (to learn more click on How to deal with Windows DriversOpens in a new tab.)

 

 
If you like this article Share it from Below, Rate it from above and Post your comments below.
 

Firas Sameer

This is me Firas Sameer the founder of Dealing With Windows, I am a computer and telecommunication engineer with over 14 years of experience, I love helping people and I love spending some of my free time posting useful articles for free about Microsoft windows.

Recent Content