[SOLVED] Component registry database is corrupt

1xfff0004

Member
Joined
Mar 20, 2024
Posts
10
Running windows 11 insider, all of the sudden i am unable to install any driver, managed to narrow it down to this error
1710973602873.png

Attached is the cbs.log generated with sfc.

Here is some info about my pc
1710973689468.png
 
Hi and welcome to Sysnative,

Please take also a note of the respons times: Not received a reply? Quick note on response times

Upload your DRIVERS Hive
  • Navigate to C:\Windows\System32\config and locate the DRIVERS file.
  • Please copy this file to your desktop.
  • Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
  • Right-click on this file on your desktop and select Send To > Compressed (zipped) folder. This will create a file named DRIVERS.ZIP on your desktop.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
A corrupt COMPONENTS hive with an ERROR_BADDB issue can be fixed with ComponentsScanner.

For other hive files we use another tool to repair the primary and secondary sequence numbers.

Step 1. Replace Components Hive Manually

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.
  1. Download COMPONENTS.ZIP and save to your desktop.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now we have the COMPONENTS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current COMPONENTS file and select rename. Rename it to COMPONENTS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Components folder on your desktop and paste it into C:\Windows\System32\config


Step 2 Replace Drivers Hive Manually

Warning: this fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good. If you are after assistance, please start a thread of your own.
  1. Download DRIVERS.ZIP and save to your desktop.
  2. Right-click on it and select Extract all.... Make sure the "Show extracted files when complete" is checked and click Extract.
  3. Now we have the DRIVERS file that we will be using to replace your current one.
  4. Navigate to C:\Windows\System32\config
  5. Right-click on the current DRIVERS file and select rename. Rename it to DRIVERS.bad.
    Note: If you get an error that the file is in use, reboot your computer and then try again.
  6. Take the file from the Drivers folder on your desktop and paste it into C:\Windows\System32\config
 

Attachments

components scanner didnt work on my pc because i'm using insider preview.
what's the tool for drivers? or is it an internal/closedsrc tool?
 
also,

yea i've rebooted a few times and havent been able to load in the new hives
 
Last edited by a moderator:
Please don't quote my previous post.

No ComponentsScanner is not compatible to run on Insider Preview Builds, but when you drag and drop the corrupted hive into the executable the tool is able te resolve the ERROR_BADDB issue.

Which error do you get when you try to replace the hives into %windir%\System32\Config
 
my apologies, it said system file was in use, i ended up booting into a windows 11 usb, used command prompt to xcopy the two hive files directly to the config directory. it worked and now i can install drivers and everything seems fixed.

so how are drivers hives fixed, /what is the tool doing to it the curiousity is getting the best of me.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top