![]() |
regedit question - unable to load hive error |
Post Reply
|
Page <12345> |
| 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: 27 July 2009 at 10:52am |
||
Obvious may mean a string of 'b' bytes in the middle of one of the segments, where the "good" hive has nothing of the sort. Even then, it may be difficult to determine that the data that is present is not accurate.
|
|||
|
Daily affirmation:
net helpmsg 4006 |
|||
![]() |
|||
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 3:17am |
||
|
It is hard to say how to repair it because of the undocumented nature of the windows registry, and since we dont really have the windows source code, we can not really be sure why the kernel sees this hive as being corrupted, and then fix it. If we cannot get the ek command to work on that offline NT reg editor, then I am curious if the hive can be read from Hive tools - http://lilith.tec-man.com/hivetools If so then I guess if I get some time I can use those alternative APIs to enumerate every subkey in that hive, and have the app manually create a .reg file. EDIT: It appears that these .c and .h files need to be compiled into a .dll first, although I seem unable to with VS2005, DevC++ or Jgrasp (I cannot say I have much C/C++ experience) so I guess if someone compiles this into a .dll and then uploads it, then I can work on a application that can read data from that software hive (if in fact this works the same way that the Offline Nt Registry editor does, and is able to read the hive) As for the Offline NT reg editor: I do see what you mean with not knowing how to exactly save the file because of the linux system. I tried just the file name itself, ex: ek test.reg HKEY_LOCAL_MACHINE\Software Microsoft This works, but the file is not there when rebooting (must be created in the RAM disc, and cleared on restart) Also tried ek /dev/sda/windows/t.reg ek /dev/sda/WINDOWS/t.reg ek /dev/sda1/WINDOWS/t.reg ek /mnt/hda1/WINDOWS/t.reg ek WINDOWS/t.reg ek /dev/sda1/t.reg but these and similar ones kept giving file/directory not found =( The only issue is that you would have to do this for all the subkeys under the software hive, but atleast it does indeed work, we just need to figure out how to save the file to the HDD. So basically if we find a way to: 1. Use a wildcard to export all keys in the software hive 2. Save the .reg file to the HDD Then everything will work great. Edited by Matts_User_Name - 27 July 2009 at 3:43am |
|||
![]() |
|||
gatts.casca
Newbie
Joined: 16 July 2009 Online Status: Offline Posts: 16 |
Post Options
Quote Reply
Posted: 27 July 2009 at 1:57am |
||
|
http://www.mediafire.com/?sharekey=32ed690f7cacd14abda4076e811714c83c16fc26d334b00cb8eada0a1ae8665a
Hopefully that link works. I zipped the corrupt software hive without password protection. It should be 6.42 mb, unzipped ~28.7 mb. |
|||
![]() |
|||
gatts.casca
Newbie
Joined: 16 July 2009 Online Status: Offline Posts: 16 |
Post Options
Quote Reply
Posted: 27 July 2009 at 1:26am |
||
|
Thanks to all (again) btw
|
|||
![]() |
|||
gatts.casca
Newbie
Joined: 16 July 2009 Online Status: Offline Posts: 16 |
Post Options
Quote Reply
Posted: 27 July 2009 at 12:49am |
||
|
Matts_user_name
To be honest, I think the ek command is my best shot. I've tried using the command, although I can't ever seem to find the exported file, if it was ever exported. Perhaps I'm not using the command correctly, it specifies: ek <filename> <prefix> <keyname> but I'm not familiar with linux commands, let alone PNH's custom commands, so I don't know what <prefix> means. Also, I can't specify a path because any input is taken as part of the filename, so if I write ek c:\microsoft.reg Microsoft, the filename would be 'c:\microsoft.reg'. Just FYI, I used Search to try to find it and came up with nothing too, so... yeah, can't find the file if it exists. Perhaps the key to using the command is the <prefix>... Matts / Redhawk (Richard) I will try to upload the hive as suggested. Molotov, Obvious corruption vs subtle corruption... what do you mean, and how can I tell the difference? I suppose more importantly, when I do find corruption (which I'm pretty certain I will, lol.. ) would there be any way to fix it? For example, if data was corrupted, I wouldn't be able to repair it... would I? Or if it was something with the parameters (as the evidence suggests) how would I edit/repair that? |
|||
![]() |
|||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 26 July 2009 at 5:09pm |
||
|
|||
|
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: 26 July 2009 at 12:38pm |
||
|
Matts thanks for the correction I Google for SAM I was wasn't sure about the correct acronym for it. :)
Having a look at the registry file seems like the next step I am also curious about this problem. Gatts.casca if you decide to upload please password the ZIP or send the link privately. Richard S. |
|||
![]() |
|||
Matts_User_Name
Senior Member
Joined: 10 August 2006 Location: USA Online Status: Offline Posts: 675 |
Post Options
Quote Reply
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 |
|||
![]() |
|||
gatts.casca
Newbie
Joined: 16 July 2009 Online Status: Offline Posts: 16 |
Post Options
Quote Reply
Posted: 26 July 2009 at 8:37am |
||
|
So... no luck, then? I'm stuck?
|
|||
![]() |
|||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 25 July 2009 at 5:16pm |
||
In corruptswlog2... Hmm...
Followed by...
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 |
|||
![]() |
|||
Post Reply
|
Page <12345> |
| 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 |