![]() |
regedit question - unable to load hive error |
Post Reply
|
Page <1234 5> |
| Author | ||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Topic: regedit question - unable to load hive errorPosted: 28 July 2009 at 11:45pm |
|
|
Richard - does the tool give any indication about what may be corrupted?
|
||
|
Daily affirmation:
net helpmsg 4006 |
||
![]() |
||
redhawk
Moderator Group
Joined: 14 September 2005 Location: United Kingdom Online Status: Offline Posts: 1220 |
Post Options
Quote Reply
Posted: 28 July 2009 at 11:02pm |
|
|
Matts I found this tool while looking for some BartPE based recovery discs it just happened to be included in the distro.
I have a reg file patch now whether this will make the Dell machine run like it did before the crash remains to be seen. gatts.casca if you're still interested in fixing the machine let me know and I will PM you with some instructions on how to apply the patch. Richard S. |
||
![]() |
||
Matts_User_Name
Senior Member
Joined: 10 August 2006 Location: USA Online Status: Offline Posts: 675 |
Post Options
Quote Reply
Posted: 28 July 2009 at 8:11pm |
|
|
Richard!! Where the hell did you find a tool like this ??? WOW is all I have to say. This is a tool I shall make note of next time something like this happens! |
||
![]() |
||
redhawk
Moderator Group
Joined: 14 September 2005 Location: United Kingdom Online Status: Offline Posts: 1220 |
Post Options
Quote Reply
Posted: 28 July 2009 at 3:00pm |
|
|
@All I think I've found the perfect tool - MiTeC Windows Registry File Viewer.
Not only can it read the registry hive file without throwing errors it can also export key / keys using the REGEDIT4 format which is compatible with regedit. I'm attempting to rebuild the hive from scratch however considering the enormous amount of data to process this is taking forever. While I'm unsure if it's even possible to recreate a hive from a regedit4 file this program could still be used to restore program settings and missing licence keys though. Richard S. Edited by redhawk - 28 July 2009 at 4:06pm |
||
![]() |
||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 28 July 2009 at 10:42am |
|
|
Wish there would have been a more positive outcome, gatts.casca, but that's the way it sometimes goes, it seems...
|
||
|
Daily affirmation:
net helpmsg 4006 |
||
![]() |
||
gatts.casca
Newbie
Joined: 16 July 2009 Online Status: Offline Posts: 16 |
Post Options
Quote Reply
Posted: 28 July 2009 at 9:33am |
|
|
@All
I agree with the general consensus that the file is most likely irreparable. I have not used BartPE or Hiren's Boot CD (although I want to check that out now), but I think I've gone as far as I possibly can with this anyway. I've definitely learned a lot from working on this, and just like working on my car, it has been an invaluable experience. However, the gap between my knowledge/understanding of the registry hives and the forum users here is quite... well, let's just say it seems like it will be light years before I know what you guys know. Some of it is quite dense lol. Thank you all for working so diligently out of your own accord on this, I deeply appreciate it, and I apologize for any headaches/migraines this may have caused. I'll definitely check back on the off chance that a solution has been found (don't worry I won't 'rez' the thread). Lastly, I hope you all had as much fun as I did with this! ![]() |
||
![]() |
||
Matts_User_Name
Senior Member
Joined: 10 August 2006 Location: USA Online Status: Offline Posts: 675 |
Post Options
Quote Reply
Posted: 27 July 2009 at 6:23pm |
|
|
I kind of doubt we are going to be able to repair this. I think the only way is going to be by using a low level registry editor to export the data into a/many .reg file(s). Unfortunately we are at a stopping point until we can compile and test the HiveTools lib (which might work, opposed to binaries given as tests) or we can figure out how to Offline NT Registry Editor to save the .reg file onto the nonvolatile HDD. (Again its going to take linux knowledge to specify the path of the .reg file, and that is something I have no clue about.) Unless of course we can get the Offline Nt Reg editor working on windows here... @redhawk You cannot open your software hive in system32\config into a hex editor if it is in use. When a hive is loaded the kernel maps it for exclusive access and nothing else can touch it. Everything must go through the registry APIs You have to boot to an offline system to do so like Bart PE, or ERD Commander. redhawk - Might I recommend a windows PE system that I recently found being a lot better than Bart PE because it uses actual Windows Explorer (A rare thing as you know for PE Dics) - It is called Mini Windows XP and comes with the newest Hiren's Boot CD http://www.megaupload.com/?d=ESZPYMG0 It is situations like these that I have 2 tools that run every other day to create a SRP, and also a backup of all registy hives (and then at the end of the month, I purge all of them except 1 at the very last day of the month, and keep as a backup just in case this one day happens to my Windows.) The registry is so fragile and so important, that you would think some forensics team would have created a tool to actually FIX registry hives, instead of companies making sh*ty software that claim they "fix" problems in the registry by cleaning out invalid references to files in hives that are already loaded. To someone that reads this years down the road: Use the source code for Offline Nt Reg Editor as a helper tool to one day create a low level registry editor & .reg exporter in a Windows GUI application, to help with problems like this.... in which case one could boot to an alternative system, startup this LL Regeditor, and then edit/export the hive's data while completely bypassing all windows registry APIs. It would seriously be nice of Microsoft if they every released the source code for the executive(kernel) component: the configuration manager just for the sake of technical users understanding registry forensics better... but we know that's never going to happen. Edited by Matts_User_Name - 27 July 2009 at 6:39pm |
||
![]() |
||
redhawk
Moderator Group
Joined: 14 September 2005 Location: United Kingdom Online Status: Offline Posts: 1220 |
Post Options
Quote Reply
Posted: 27 July 2009 at 12:14pm |
|
|
I've tried to patch softeware.bak as best as I could however regedit still refuses to load the hive.
So I experimented with a working hive, changed the value at $0020 and regedit now refuses to load this too. It appears regedit performs some checks to validate the registry hive before it actually opens which is unfortunately undocumented as well as reading the contents. Next thing I tried was to patched software.bak with the start of my working hive just to see if I could create a valid header for regedit. Oh dear, load hive = instant blue screen of death
Your best bet would be to extract the registry hive from the product recovery disc or try and re-install the damaged software. Edit: @Matts I've tried the hivetools Windows binaries and it appears to work however I'm getting "Hash mismatch on key" for every scanned item. Unfortunately this program lacks the ability to save data to file or allow diverting the screen to file too. Even if I could save the scanned results there's no way to reconstruct a registry hive file as far as I can tell so it's pretty much useless. I've also tried and tested a handful of so called registry repair tools but they don't work which isn't surprising they use the load hive function much like regedit. @Anyone I tried to open my Home Edition SOFTWARE hive with XP Pro I got "Access Denied", however loading the same file with BartPE (also based on XP Pro) no problem. Do I need to tweak a security permission in XP Pro to get it to open or does BartPE have some trick to bypass security permissions?? Richard S. Edited by redhawk - 27 July 2009 at 4:59pm |
||
![]() |
||
redhawk
Moderator Group
Joined: 14 September 2005 Location: United Kingdom Online Status: Offline Posts: 1220 |
Post Options
Quote Reply
Posted: 27 July 2009 at 11:10am |
|
|
I can see the start of the file has been damaged with random $E5 which probably explains why regedit couldn't load the hive since the names have been corrupted.
It appears the corrupted has stopped short of $01C0 however to repairing this section could be tricky though. I've compared your file against the software hive from Home Edition and Pro both look slight different each time which means I cannot simply cut and paste chunks of data. Richard S. Edited by redhawk - 27 July 2009 at 4:46pm |
||
![]() |
||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 27 July 2009 at 10:55am |
|
|
||
|
Daily affirmation:
net helpmsg 4006 |
||
![]() |
||
Post Reply
|
Page <1234 5> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |