Sysinternals Homepage
Forum Home Forum Home > Windows Discussions > Internals
  New Posts New Posts RSS Feed: regedit question - unable to load hive error
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

regedit question - unable to load hive error

 Post Reply Post Reply Page  <1234 5>
Author
Message
  Topic Search Topic Search  Topic Options Topic Options
gatts.casca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Online Status: Offline
Posts: 15
  Quote gatts.casca Quote  Post ReplyReply Direct Link To This Post Topic: regedit question - unable to load hive error
    Posted: 19 July 2009 at 11:00pm
Yes, it initially did return the STOP code 0x00000051 error. I did run chkdsk before overwriting her registry files, and some bad sectors were found/fixed. Her computer is a 3 year old Dell, so I wouldn't be surprised if any of the hardware was about to give out, i.e. hd.

I've been cross-checking the install version of the hive against her corrupt hive, and so far the pattern seems similar. There are numerous entries, but generally all related to programs she's installed. At this point, I've been manually copying keys/subkeys from the corrupt hive over to the install version to see if that will enable her programs to work.

This is sort of a new question, but on the same issue/computer. I only copied over the software hive from the windows/repair folder, I left everything else alone. However, when the computer booted up, it created new users/administrators, and isn't referencing the old ones. I.e. under Documents and Settings, there are now 4 users (not counting LocalSettings, etc.) Administrator, Lexy, Administrator.LexyS, Lexy.LexyS (Lexy is the user name, LexyS is who the computer is registered to). The original Administrator and Lexy folders can be accessed, there are no restrictions, but the computer is running from the new ones. Any ideas why?
Back to Top
redhawk View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 14 September 2005
Location: United Kingdom
Online Status: Online
Posts: 1049
  Quote redhawk Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2009 at 2:00am
User accounts are handled by SAM (Security Accounts Manager) but since this file was overwritten by the Repair copy previous accounts are unknown to the system.
If you restore the original SAM file this should restore the old user accounts and their HKEY_CURRENT_USER registry hives.
It's a pity System Restore was disabled I know many people tend to overlook this feature of Windows XP as being a space waster but in actual fact it can be a real life saver sometimes.

btw does Dell provide some kind of product recovery CD/DVD for her machine??

Richard S.

Edited by redhawk - 26 July 2009 at 12:38pm
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2009 at 7:19pm
I'll list the details if you're interested, but o/w you can skip the next paragraph.
Any chance you can provide a .PML containing the events associated with regedit.exe when trying to load the corrupted hive?  Prior to capturing, it would be good to configure symbols...
Daily affirmation:
net helpmsg 4006
Back to Top
gatts.casca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Online Status: Offline
Posts: 15
  Quote gatts.casca Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2009 at 10:38pm
Redhawk,

I only overwrote the corrupt software hive. I left the other hives alone, although I did use PNH's Password program to blank the passwords. I didn't alter or delete the accounts in any other way, so they should have remained usable/accessible. Dell did provide recovery disks, although she has been unable to find them.

Molotov, I'll provide a .pml as requested, although I'm not sure if you'd like a filtered version or the entire thing. I've configured symbols according to the link, but I'm not sure if I needed to add the C:\Symbols for the path... wasn't sure if it applied to me, but I did it anyway.
Back to Top
gatts.casca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Online Status: Offline
Posts: 15
  Quote gatts.casca Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2009 at 10:56pm
uploads/29478/corruptsofthive.zip

Sorry for the double post.

About 7/10 of the way down, there's an <Unknown> Operation, and reading across, it says INVALID PARAMETER in the Result column. About 3 entries before, you will notice two ReadFile requests, both successful, but with different Offsets (0 vs 4096).

Loading the regular software hive, you can compare and see the difference in processes. At 2:49:28.2524573 pm, you will see the same ReadFile process, with Offset 0, but it moves on to the next Operation, CreateFileMapping. I will upload the zip for that as well.
uploads/29478/regularsofthive.zip

As I mentioned before, I'm not familiar with the program so I can only guess at the meanings of each Operation. I'm not quite sure what Offset means, but I can always google it.

Thanks you guys.
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2009 at 3:09am
Symbols worked fine - nice work! Smile

I can see that it is in the process of trying to map the hive during loading, but failing somehow.  Very interesting is the <unknown> operation with the Invalid Parameter result...

An offset is just how far into the file the operation should take place.

Any chance you can retry the exercise, but include registry events in addition to the filesystem events?
Daily affirmation:
net helpmsg 4006
Back to Top
gatts.casca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Online Status: Offline
Posts: 15
  Quote gatts.casca Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2009 at 12:40am
I think the registry events are included, as well as filesystem events. In fact, all events should be included, I just filtered by including only events related to the software file. Specifically, I put a filter saying Path contains fatcat\Desktop\software, then Include.

I ran it again and saved another log file, but this time filtered only by time. I also did not save any profiling events, which helped keep me under the 500 kb limit.

uploads/29478/corruptswlog2.zip
Back to Top
molotov View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 04 October 2006
Online Status: Offline
Posts: 17287
  Quote molotov Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2009 at 5:16pm
I think the registry events are included, as well as filesystem events.
Resetting the filter and choosing to only display registry events, when checking out corruptsofthive.PML, resulted in no events displaying.

In corruptswlog2...
Hmm...
regedit.exe    4652    6096    RegLoadKey    HKLM\123    REGISTRY CORRUPT    Hive Path: C:\Users\fatcat\Desktop\software.bak        Registry 0.0032917


Followed by...

regedit.exe    4652    6096    IRP_MJ_READ    C:\Users\fatcat\Desktop\software.bak    SUCCESS    Offset: 0, Length: 512, Priority: Normal    Read    File System
regedit.exe    4652    6096    IRP_MJ_READ    C:\Users\fatcat\Desktop\software.bak    SUCCESS    Offset: 4,096, Length: 512, Priority: Normal    Read    File System
regedit.exe    4652    6096    <Unknown>    C:\Users\fatcat\Desktop\software.bak    INVALID PARAMETER    Type: <Unknown : 20 >    Read Metadata    File System


So, something in bytes 1-512, or bytes 4096-4608, would seem to be being used to determine that that hive is corrupt...

Edited by molotov - 25 July 2009 at 5:16pm
Daily affirmation:
net helpmsg 4006
Back to Top
gatts.casca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Online Status: Offline
Posts: 15
  Quote gatts.casca Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2009 at 8:37am
So... no luck, then? I'm stuck?
Back to Top
Matts_User_Name View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 August 2006
Location: USA
Online Status: Offline
Posts: 610
  Quote Matts_User_Name Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2009 at 9:19am
@Redhawk
Actually SAM = Security Accounts Manager but your expanded acronym sound more technical :P haha

@gats.casca
Could you upload the this software hive? (you might want to do it at MediaFire.com since it is probably around 50 MB)

Also: Looking at the source for that offline registry editor it appears to support exporting keys into .reg file formats using the ek command... have you tried that?
If not then, I would suggest doing so, or upload the hive and I try it for you.


Edited by Matts_User_Name - 26 July 2009 at 9:32am
Back to Top
 Post Reply Post Reply Page  <1234 5>

Forum Jump Forum Permissions View Drop Down

Privacy Statement