hivexsh problem...

Share your thoughts on the UDA 2.0

Moderators: the_dude, Posters

hivexsh problem...

Postby tblancher » Tue Jan 29, 2013 7:34 am

I'm following the [url="http://www.ultimatedeployment.org/win7pxelinux1.html"]Install Windows 7 over PXE boot[/url] guide on my custom Debian Sid PXE boot server, and I've run into some snags. The first is documented [url="http://www.ultimatedeployment.org/forum/viewtopic.php?f=1&t=1398"]here[/url], and I have worked around it (we'll see if my workaround actually does the job). If I had the source code to updatewim, I might have been able to actually know I solved it. My main problem next was getting bcdedit.pl to not throw a bunch of errors.

Here is an example of what I got when I ran my first try at bcdedit.pl:
Code: Select all
# bcdedit.pl bcd winpe.wim boot.sdi INFO=10.20.30.99:windows/7.x64                                                                                                             
BCDfile = bcd
hivexsh [-dfw] [hivefile]
hivexsh [-dfw] [hivefile]
Error Cleaning up BCD file bcd
Creating Bootmgr Object
hivexsh [-dfw] [hivefile]
Error adding guid {9dea862c-5cdd-4e70-acc1-f32b344d4795} with type 0x10100002 to bcd
hivexsh [-dfw] [hivefile]
Error adding Element 25000004 with value hex:3:1e,00,00,00,00,00,00,00 to guid {9dea862c-5cdd-4e70-acc1-f32b344d4795} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 12000004 with value string:Windows Boot Manager to guid {9dea862c-5cdd-4e70-acc1-f32b344d4795} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 24000001 with value hex:7:,7b,00,36,00,35,00,63,00,33,00,31,00,32,00,35,00,30,00,2d,00,61,00,66,00,61,00,32,00,2d,00,31,00,31,00,64,00,66,00,2d,00,38,00,30,00,34,00,35,00,2d,00,30,00,30,
00,30,00,63,00,32,00,39,00,66,00,33,00,37,00,64,00,38,00,38,00,7d,00,00,00,00,00 to guid {9dea862c-5cdd-4e70-acc1-f32b344d4795} with type in bcd
Creating New Object
hivexsh [-dfw] [hivefile]
Error adding guid {65c31250-afa2-11df-8045-000c29f37d88} with type 0x10200003 to bcd
hivexsh [-dfw] [hivefile]
Error adding Element 12000004 with value string:Windows PE to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 22000002 with value string:\Windows to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 26000010 with value hex:3:01 to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 26000022 with value hex:3:01 to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 11000001 with value hex:3:e0,34,55,ae,24,a9,6c,46,b8,36,75,85,39,a3,ee,3a,00,00,00,00,01,00,00,00,90,00,00,00,00,00,00,00,03,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,$0,00,00,01,00,00,00,68,00,00,00,05,00,00,00,05,00,00,00,00,00,00,00,48,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,$0,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,77,00,69,00,6e,00,70,00,65,00,2e,00,77,00,69,00,6d,0000,00 to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 21000001 with value hex:3:e0,34,55,ae,24,a9,6c,46,b8,36,75,85,39,a3,ee,3a,00,00,00,00,01,00,00,00,90,00,00,00,00,00,00,00,03,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0
0,00,00,01,00,00,00,68,00,00,00,05,00,00,00,05,00,00,00,00,00,00,00,48,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0
0,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,77,00,69,00,6e,00,70,00,65,00,2e,00,77,00,69,00,6d,0000,00 to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 12000030 with value string:INFO=10.20.30.99:windows/7.x64 to guid {65c31250-afa2-11df-8045-000c29f37d88} with type in bcd
Creating Ramdisk Options
hivexsh [-dfw] [hivefile]
Error adding guid {ae5534e0-a924-466c-b836-758539a3ee3a} with type 0x30000000 to bcd
hivexsh [-dfw] [hivefile]
Error adding Element 12000004 with value string:Ramdisk Options to guid {ae5534e0-a924-466c-b836-758539a3ee3a} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 32000004 with value string:boot.sdi to guid {ae5534e0-a924-466c-b836-758539a3ee3a} with type in bcd
hivexsh [-dfw] [hivefile]
Error adding Element 31000003 with value hex:3:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00,00,00,00,00,48,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0
0,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 to guid {ae5534e0-a924-466c-b836-758539a3ee3a} with type in bcd
Succesfully updates bcd


It appears that the Red Hat/CentOS hivexsh executables have a slightly different parameter order. In Debian, "hivexsh -w" simply means the hive file will be writable; the '-w' does not take any parameters. In Red Hat/CentOS, that parameter takes the hive file we are modifying. In Debian the entire syntax is "hivexsh [-dw] [-f <hivex shell script>] <hivefile>". I just modified bcdedit.pl and moved the variables that referred to bcd to the end of every $HIVEXSH command. After I did that, I got this output:

Code: Select all
# bcdedit.pl bcd winpe.wim boot.sdi INFO=10.20.30.99:windows/7.x64
BCDfile = bcd
Creating Bootmgr Object
Creating New Object
Creating Ramdisk Options
Succesfully updates bcd


MUCH cleaner.
tblancher
 
Posts: 3
Joined: Tue Jan 29, 2013 7:03 am

Return to UDA 2.0

Who is online

Users browsing this forum: No registered users and 0 guests

cron