Jump to content











Photo
- - - - -

Bootext.exe


  • Please log in to reply
36 replies to this topic

#1 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 07 May 2009 - 11:03 AM

SERVICE EDIT:

This thread was splitted from this one:
http://www.boot-land.net/forums/index.php?showtopic=7721&hl=




Does "<os>" only accept Win98 ? :D


Has anyone a good solution to update the PBR that it's load NTLDR?


It depends on what you call good. :D

A bootsector can be extracted, just like the MBR, from a system file in the source, the original "BOOTMGR" bootsector can be extracted fromthe formatted volume, then the two can be manipulated via batch and rewritten through dsfo/dsfi.

In other words the things that I do with mbrbatch/makebs:
http://www.boot-land...?showtopic=3191
http://www.boot-land...?showtopic=2362

jaclaz

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 May 2009 - 02:19 PM

Has anyone a good solution to update the PBR that it's load NTLDR?

Maybe I still misunderstand everything.

But some posts above I explained how to extract it from spcmdcom.sys :D

Peter

#3 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 07 May 2009 - 02:49 PM

You missed one thing Peter,

adding drivers take more attention, for me especially xp64 :D .

But i am experienced enough to listen/read gurus carelfully (which i do a lot before joining boot-land, remembering my trials to lego up the pieces on jacklaz posts ;) ), just after your post the code is in the script because i am sure i will use it for mbr task when focused on it :D .

Cu

edit

#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 May 2009 - 03:31 PM

You missed one thing Peter,

adding drivers take more attention, for me especially xp64 :D .

I agree that I missed a lot!

I did not understand the correllation between extracting a PBR from a file, and adding a driver. :D

Maybe Jaclaz explains ...

Peter ;)

#5 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 07 May 2009 - 03:45 PM

If you read carelfuly i am giving a shot,
if not ;) than great Italian will find a way (i guess he always finds the right way with you)

WinNTSetup prepares HD for XP/2k3-x86/x64 setup from LiveXP by using source cd without need of winnt32.exe (maybe missing or etc)
Well to be honest, i focus on x64 part ;).
so there are some copy tasks for WinNTSetup to do which so far does it very successfully ;)
now there left 2 more tasks, making a bootable HD and driver injection.
"driver injection" takes more attention than "boot HD" but because JFX used bootsect.exe from first day, removing it (legal) was the subject for a short while, than you came and i got the tip and quicly add to script for future look etc.
Driver injection part looks easy, but a bit tricky
x86 easy, there is dps etc.
x64 --> no ready dps package i found so far.
and everybody dont know editing .inf's easly :D.
So I focus on tricky mass storage part, and leave "boot HD" part for future.

And currently i guess author give a break for a week, and me too :D.

I hope you get :), if not Great Italian is probably on his way ;)

#6 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 May 2009 - 03:49 PM

Understood a bit, but not all.

Maybe Italian help is still needed ...

Peter :D

#7 was_JFX

was_JFX

    Frequent Member

  • Advanced user
  • 483 posts
  •  
    Germany

Posted 07 May 2009 - 04:22 PM

Thanks Lancelot, you explained it very well :D

Oh, Im really Sorry Peter,

I use your programm like this :
bootExt.exe -I&#58;SPCMDCON.SYS -O&#58;BOOTSECT.BIN

and get an BOOTSECT.BIN for use with an CD Image, I havent realized there it also a -D Option ;) , that extract an clean NTFS Bootsector. :D

Injecting Partioninformation could be possible. Maybe Barts mkbt could be use to write the new sector back to disk.


I used bootsect.exe cause it is a very easy and safe method

bootsect.exe /nt52 X&#58; /mbr

update the MBR/PBR to load NTLDR --> boot.ini --> X:\$WIN_NT$.~BT\BOOTSECT.DAT --> X:\$LDR$ (renamed SETUPLDR)

just like normal Windows XP Setup would do.

#8 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 May 2009 - 05:33 PM

I havent realized there it also a -D Option :D , that extract an clean NTFS Bootsector. ;)

Injecting Partioninformation could be possible.

:D
Repeating my offer:

If something can be patched here, describe the patch, and I'll implement an additional switch doing so.

Peter ;)

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 May 2009 - 06:48 PM

Maybe Barts mkbt could be use to write the new sector back to disk.

@Jaclaz:
Any other possibility besides bart (=Third party) mkbt?

Peter

#10 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 07 May 2009 - 06:48 PM

Let's do a deal. :D

Let's assume that you (meaning JFX and Lancelot) ONLY care about the driver injection and that we (psc and me) ONLY care about the MBR and bootsector.

It could be ther right and unique moment in a life that I can have a programmer's attention (which normally refuses to delve in the topic) on the MBR and PBR.

But still I miss some basis to (maybe) understand the problem and help peter in adding the needed features to his program.

Which what does the actual partitioning/formatting?

i.e. what is on the drive MBR and PBR when the tool is run?

jaclaz

#11 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 07 May 2009 - 06:59 PM

I can have a programmer's attention....

me always learning from gurus attention when they write :D. I will be glad for any tip.

Which what does the actual partitioning/formatting?

any partition software, lets say hdm8.5 (or another as you wish). And lets say the guy bought a new hd and create 3 partitions, 1st extended, 2nd primary, 3rd primary and gave them a drive letter on livexp with in the same order C: (extended) D: (primary) E: (primary) . And wants hd bootable from 2nd primary hd (E:)

#12 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 07 May 2009 - 07:09 PM

any partition software, lets say hdm8.5 (or another as you wish). And lets say the guy bought a new hd and create 3 partitions, 1st extended, 2nd primary, 3rd primary and gave them a drive letter on livexp with in the same order C: (extended) D: (primary) E: (primary) . And wants hd bootable from 2nd primary hd (E:)


I still don't get it.

What bootsector does the "any" write?

  • A DOS one invoking io.sys
  • A NT/2K/XP/2008 invoking NTLDR (and thus there is NO need to change it)
  • A Vista/2008/Windows7 invoking BOOTMGR?

Under which OS does the "any" tool run?

Under which OS/PE is the WINNT32.EXE replacement program meant to run?

jaclaz

#13 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 07 May 2009 - 07:17 PM

Under which OS/PE is the WINNT32.EXE replacement program meant to run?

Livexp, pe1

What bootsector does the "any" write?
--A NT/2K/XP/2008 invoking NTLDR

well, i need to read more about this mbr stuff, and time is a .... it seems JFX get what he needs from guru peter's tips, just writing to inform as much as i know :D.

#14 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 07 May 2009 - 07:27 PM

Livexp, pe1


Then, WHATEVER bootsector has been written by the "any", one can simply run FORMAT to make one invoking NTLDR.

Still don't see the problem. :D

jaclaz

#15 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 07 May 2009 - 07:46 PM

Then, WHATEVER bootsector has been written by the "any", one can simply run FORMAT to make one invoking NTLDR.

Still don't see the problem. :D

jaclaz


WOW!
That does not mean "Windows On Windows". That means the German "Endlich"

Until now our private competition rate looks like 99:0 for you. ;)
But now I lowered to 99:1, if you cannot explain:

How to FORMAT a directory on your host, which you want to "burn as ISO" to a CD or copy "as USB bootable" to an USB stick? ;)

Peter :D

#16 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 08 May 2009 - 09:14 AM

But now I lowered to 99:1, if you cannot explain:

How to FORMAT a directory on your host, which you want to "burn as ISO" to a CD or copy "as USB bootable" to an USB stick? :D


Hmm, :D unilateral changes of ratios are generally frowned upon ;) , but I will gladly allow for a handicap of up to 9 (i.e. allowing you to start from 9 instead of 0) if only you could rephrase your question or expand it a bit. ;)

I simply cannot understand the concept of FORMATting a directory. ;)

;)

jaclaz

#17 was_JFX

was_JFX

    Frequent Member

  • Advanced user
  • 483 posts
  •  
    Germany

Posted 08 May 2009 - 11:12 AM

Still don't see the problem. :D

Ok, the problem is the programm should be as simple as possible, the user shouldn't have to care about how the Bootsector looks like.

Under LiveXP / Real XP (any) partition software will probably create a bootable enviroment with NTLDR loading BS.
But under Vista/Server2008/7 it will probably create a BOOTMGR loading Bootsector.

Actually I want it to be compatible with these OS.

Using bootext, mbkt (or dsfo/dsfi) and mbrfix could be a solution but would make the programm bigger. Size matters (my opinion :D).

So I made a preliminary decision to let WinNTSetup check the Bootsector:
If it&#39;s a NTLDR one everything OK

If it&#39;s a BOOTMGR one SETUPLDR will be renamed to BOOTMGR

If it&#39;s a unknown one it will give a warning message that bootsect.exe is required.
bootsect.exe will be optional, is it present it will be used.

But for now I have a lot of changes and code cleanup's to do for the Driverintegration.


@psc I like your bootExt.exe ;) and may also see use in some other places. Could you update it to extract the other Bootsectors and the MBR which is in SPCMDCON.SYS?

#18 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 08 May 2009 - 03:28 PM

@psc I like your bootExt.exe :D and may also see use in some other places. Could you update it to extract the other Bootsectors and the MBR which is in SPCMDCON.SYS?


bootExt.exe version 2.0.0 available :D

bootExt Version 2.0.0

Copyright &#40;C&#41; 2009 Peter Schlang



Syntax&#58; -I&#58;<input file> -O&#58;<output file> {-M|-N|-C|-F|-1}



-M&#58; MBR

-N&#58; NTFS PBR

-C&#58; CD PBR

-F&#58; FAT32 PBR

-1&#58; FAT12 PBR

Download: nativeex.boot-land.net/Programs/bootExt/bootExt.7z

Any patches needed? ;)

Peter

#19 was_JFX

was_JFX

    Frequent Member

  • Advanced user
  • 483 posts
  •  
    Germany

Posted 08 May 2009 - 04:10 PM

Wow, that was fast :D looks perfect :D Thank you very much ;)

I now have to go to a barbecue. Have a nice weekend

;)
John

#20 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 08 May 2009 - 08:53 PM

Any patches needed? :D


Without having had time to check it, sorry for the possibly stupid question:

How many sectors are extracted for each type? ;)

A few notes:
  • If INPUT file is missing throws an error.
  • It overwrites existing OUTPUT file without warning
  • One of the options {-M|-N|-C|-F|-1} is compulsory
  • If any part is missing the program displays syntax and a "misterious" (at least to me ;)) string:

    Click Execute to finish ...

    what is one supposed to do (besides pressing the ENTER key ;) ;))
  • I seem not to find an option for FAT16


:D

jaclaz

#21 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 08 May 2009 - 10:27 PM

How many sectors are extracted for each type? :D

As long until the end marker HEX(55AA) is reached

  • If INPUT file is missing throws an error.
  • It overwrites existing OUTPUT file without warning
  • One of the options {-M|-N|-C|-F|-1} is compulsory

Yes to all

  • If any part is missing the program displays syntax and a "misterious" (at least to me :D ) string:

    what is one supposed to do (besides pressing the ENTER key ;) ;)

Enter is the right reaction

  • I seem not to find an option for FAT16

I did not find one in spcmdcon.sys

Peter

#22 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 May 2009 - 02:51 PM

Version 2.1.0 of bootExt.exe (the Jaclaz hotfix-version :D ) is online.

Many thanks to Jaclaz for the hint about uncomplete records.

I also tried to make the UI a bit more dummy proof.

Peter

#23 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 09 May 2009 - 04:02 PM

Version 2.1.0 of bootExt.exe (the Jaclaz hotfix-version ) is online.

Good news. :D

I also tried to make the UI a bit more dummy proof.


A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.


Should any fool happen to pass by :D:

The new version is downloadable at the same place as the old one:
http://nativeex.boot...tExt/bootExt.7z

Click Execute to exit ... (it's a coded message, that you have to decode with the following table, DO NOT waste your time looking for anything labeled "Execute" on which to click on)

Translation:
|psc&#39;s slang|	Fools	|

|-----------|-------------|

|  Click	|	Press	|

|-----------|-------------|

| Execute   |	Enter	|

|-----------|-------------|

|to exit ...| to exit ... |<-this part is plain text

|-----------|-------------|

;)

;)

jaclaz

#24 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 May 2009 - 04:18 PM

Translation:

|psc&#39;s slang|	Fools	|

  |-----------|-------------|

  |  Click	|	Press	|

  |-----------|-------------|

  | Execute   |	Enter	|

  |-----------|-------------|

  |to exit ...| to exit ... |<-this part is plain text

  |-----------|-------------|

New version 2.1.1 (at known URL) has an (optional and undocumented) switch "-P" (psc's slang).
The default will be Fools' slang. :D

Peter :D

#25 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 09 May 2009 - 04:51 PM

I LOVE :D undocumented switches.....

...hey, wait, you had to open your big mouth type that info, didn't you? :D

It's not undocumented anymore. ;)

;)

;)

jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users