4 Pages V   1 2 3 > »   
Reply to this topic
 ERD Commander ISO from Multiboot UFD, HowTo
post Jul 6 2009, 07:40 AM
Post #1
online
Silver Member   ****
Group: Advanced user

  Joined: 28-July 07
Posts: 777
Thank(s): 41


Thanks to pointings of Shirin Zaban and cdob I've found the most versatile way in order to boot ERD Commander 5.00 (that's "erd50.iso") from your USB Flash Drive (using "grub4dos" as boot loader) with minimal hacking.

First of all compress your "erd50.iso" (without any modifications) from Command Prompt with the following

CODE
makecab erd50.iso

the result will be "erd50.is_" (with the size reduced from 145MB to 63MB)

Then create a HD image named "erd50.dsk" of an appropriate size with jaclaz's MKIMG batch following the related instructions http://www.boot-land.net/forums/index.php?...amp;#entry38187

Copy in your mounted image root:

"erd50.is_" file

"ntdetect.com" and "setupldr.bin" files from WS2003SP1

"winnt.sif" file with the following entries

CODE
[SetupData]
BootDevice = "ramdisk(0)"
BootPath = "\I386\system32\"
OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=erd50.is_"

Then hex-edit the image bootsector replacing the "NTLDR" occurrence with the "SETUPLDRBIN" one.

Unmount the image and copy it to the "boot" folder existing on your USB Flash Drive root.

Add the following entries in your "menu.lst"

CODE
title ERD Commander 5.00
map --mem /boot/erd50.dsk (hd0)
map --hook
root (hd0,0)
chainloader (hd0,0)+1


Enjoy! thumbsup.gif


--------------------


2 user(s) said "Thank you!" to online for this fantastic post:
maanu, Shirin Zaban
+Quote Post
post Jul 6 2009, 07:51 AM
Post #2
maanu
Silver Member   ****
Group: Advanced user

  Joined: 31-October 08
Posts: 949
Thank(s): 169


Pakistan


jaclaz's MKIMG batch is still a mystery for me , sad.gif

im not familiar with it , if i remember well i have a little tutorial by sheren a while back bt can not find it now ,

it is not like i want this erd to boot from usb , i already got it working 5.0 and 6.0 both , bt thing is i really want to learn that jaclaz's tech . i mean using it . i have seen it recently in cdob's post in RC also .

bt i guess erd is the best option for me to start learning the MRIMG and get erd.iso working in another way .

thanks for the efforts online , it seems it ll be my starting point to learn jaclaz's magics laugh.gif
+Quote Post
post Jul 6 2009, 12:59 PM
Post #3
Lancelot
Frequent Member   ****
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 908
Thank(s): 696


Turkiye


QUOTE (maanu @ Jul 6 2009, 09:51 AM) *
tutorial by Shirin a while back bt can not find it now ,
Easy to remember, topic with 5000 smile.gif
http://www.boot-land.net/forums/?showtopic=5000
also check post 6 happy22.gif

CU cheers.gif


--------------------
I Galapo's LiveXP and King Amalux's Great LiveXP Package (tutorial and everything)
Lancelot Tips For LiveXP
I hate Medusa problems of WinBuilder, Cryptic codes, syntax rules fakingly mismatching working lines, not having even basic fundemantal syntax rules and mostly 'lies' and 'post games'.
('post games' = includes dishonest, childish posts that have goal to annoy others in community)
+Quote Post
post Jul 6 2009, 01:08 PM
Post #4
Lancelot
Frequent Member   ****
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 908
Thank(s): 696


Turkiye


Hi online

just 2 things.
*
creating erd_iso.iso file with same ingredient of erd.dsk file is easier smile.gif.
*
since you are using grub4dos why not:
title erd_iso.iso - direct
find --set-root /erd_iso.iso
map /erd_iso.iso (hd32)
map --hook
chainloader (hd32)

CU cheers.gif


--------------------
I Galapo's LiveXP and King Amalux's Great LiveXP Package (tutorial and everything)
Lancelot Tips For LiveXP
I hate Medusa problems of WinBuilder, Cryptic codes, syntax rules fakingly mismatching working lines, not having even basic fundemantal syntax rules and mostly 'lies' and 'post games'.
('post games' = includes dishonest, childish posts that have goal to annoy others in community)
+Quote Post
post Jul 6 2009, 04:22 PM
Post #5
online
Silver Member   ****
Group: Advanced user

  Joined: 28-July 07
Posts: 777
Thank(s): 41


Hi, Lancelot. smile.gif

Maybe to create a bootable ISO with another bootable iso inside (as you kindly suggest) could seem an easier way compared to a HD-like image creation, but then it (that's "erd50.iso") unfortunely does not boot.
About ERD Commander 5.00 (bootable) ISO (145MB) the way you suggested does not seem to work because you need something that points to "setupldr.bin" inside the iso.
Instead, with a HD-like image you can patch its bootsector in order to point to the boot loader (setupldr.bin) inside the image itself and then it will work like a charm. cool.gif
Of course, if you find a way in order to boot "erd50.iso" inside another ISO and also in order to place it not forcibly to the root of the UFD (that's just as my way already does) I will be however very happy. thumbsup.gif

It seems to me this way has all desirable features, achieved with a really minimal hacking.
You need only 3 files and your current "erd50.iso" (without any modification) and you can place it (that's the HD image) not forcibly in your UFD root, but also in any folder.
As far as I can see any googleing does not point to a better way. cheers.gif


--------------------
+Quote Post
post Jul 6 2009, 04:57 PM
Post #6
online
Silver Member   ****
Group: Advanced user

  Joined: 28-July 07
Posts: 777
Thank(s): 41


QUOTE (maanu @ Jul 6 2009, 09:51 AM) *
jaclaz's MKIMG batch is still a mystery for me , sad.gif

biggrin.gif Yes, at the beginnings it was so for me too... tongue.gif
Really, it is a great tool. cool.gif

In order to create your own HD-like image, please proceed as follows.
First of all download the zip archive from here http://www.boot-land.net/forums/index.php?...ost&p=38187

Then, following the related informations
QUOTE (Shirin Zaban)
MKIMG
by typing this command it will:

1) asks for a file name (for the moment use the same directory where the script and all
utilities are)
2) asks for an image size in bytes, Kbytes, Mbytes or Gbytes
3) asks for the desired geometry
4) asks for the desired Partition (filesystem) type
5) asks whether you want to use the (default) mksparse.exe to create a sparse image or
fsz.exe to create a full image
6) creates the image
7) autocalculates partition table entries to create the single biggest possible partition
for given image size and creates a MBR with this data and 2K/XP MBR code
8) copies this MBR to the image
9) mounts the image with VDK and formats it using "standard" FORMAT
10) opens with Explorer the freshly mounted Virtual Disk

The script works both in interactive mode and invoked from command line with all parameters,
in this case it accepts a further switch "/np" for "NO PROMPTS" that COMPLETELY REMOVES any
confirmation to delete existing files and to format the Virtual Disk.

and/or the related instructions here http://www.boot-land.net/forums/index.php?...ost&p=42798
you will can discover that it is not only a great tool, but also it is easy to learn and to work. wink.gif

Just as an example:
once you have unzipped your just downloaded "MBRBatch.zip", place it in your system drive root, then from the Command Prompt enter the following
CODE
mkimg image.dsk
(or image.img)
then at the prompt enter the desired size
then enter the disk geometry
then enter the file system
then format the image:
then it will be automatically mounted.

Now you can copy what you want inside your virtual drive (that's your just mounted image) and then you can launch your HEX editor and you can open the related logical drive: you will see its MBR BootSector and you can edit it.

Save the just edited image from your Hex editor and then unmount it from the Command Prompt (still left open).

Done!

Now in your working folder you can find your just created "image.dsk" (or "image.img").


Btw: of course the batch author will be more than welcome with any (further) suggestion, and many thanks to him.

cheers.gif


QUOTE (maanu)
thanks for the efforts online

You're welcome. smile.gif


--------------------
+Quote Post
post Jul 6 2009, 10:39 PM
Post #7
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,230
Thank(s): 564


Italy


QUOTE (online @ Jul 6 2009, 06:57 PM) *
Now you can copy what you want inside your virtual drive (that's your just mounted image) and then you can launch your HEX editor and you can open the related logical drive: you will see its MBR and you can edit it.

.....

Now in your working folder you can find your just created "image.dsk" (or "image.img").

....


Two small corrections smile.gif:
  1. the MBR (and hidden sectors) are part of the PHYSICALDRIVE, the bootsector or PBR is part of the LOGICALDRIVE
  2. the batch also creates a .pln descriptor file, to re-mount the image with VDK.EXE (from command line or through one of the Pseudo-GUI's available, it is STRONGLY advised to use this .pln file:
    VDK.EXE (if NOT pointed to the .pln file) defaults to a geometry of nx64x32, which may NOT be allright depending on the operations you are going to perform on the mounted virtual drive



Besides the given thread:
http://www.boot-land.net/forums/index.php?showtopic=5000
the one where the "release" of MBRBATCH was made contains some useful info for the other features (actually MKIMG should - and before or later hopefully will rolleyes.gif - be integrated into MBRBATCH, that has some MBR manipulation capabilities that are handy when manually tweaking an image/MBR):
http://www.boot-land.net/forums/index.php?showtopic=3191

cheers.gif

jaclaz


--------------------
+Quote Post
post Jul 8 2009, 06:30 AM
Post #8
online
Silver Member   ****
Group: Advanced user

  Joined: 28-July 07
Posts: 777
Thank(s): 41


QUOTE (jaclaz @ Jul 7 2009, 12:39 AM) *
the MBR (and hidden sectors) are part of the PHYSICALDRIVE

Yep! smile.gif
Just a writing-lapsus... really, while I wrote, I felt that something sounded strange! tongue.gif

Thank you for your attention, and for your further pointings. cheers.gif


--------------------
+Quote Post
post Jul 9 2009, 08:58 PM
Post #9
dera
Gold Member   *****
Group: .script developer

  Joined: 17-January 07
Posts: 1,154
Thank(s): 268


Hungary


at me also this works booting from UFD (with grub4dos loaded to mbr):
in the root of the UFD resides
the original untouched erd50.iso
ntdetect.com
setupldr.bin (from w2k3 SP1)
winnt.sif (using /rdexportascd /rdpath=erd50.iso)
in menu.lst: chainloader /setupldr.bin
+Quote Post
post Jul 9 2009, 09:58 PM
Post #10
online
Silver Member   ****
Group: Advanced user

  Joined: 28-July 07
Posts: 777
Thank(s): 41


QUOTE (dera @ Jul 9 2009, 10:58 PM) *
at me also this works booting from UFD (with grub4dos loaded to mbr):
in the root of the UFD resides
the original untouched erd50.iso
ntdetect.com
setupldr.bin (from w2k3 SP1)
winnt.sif (using /rdexportascd /rdpath=erd50.iso)
in menu.lst: chainloader /setupldr.bin

Sure it boots in that way too. wink.gif

Let me describe a different scenario: in your UFD root you have "erd50.iso" and its 3 needed files: "ntdetect.com", "setupldr.bin" and "winnt.sif".
Then, suppose that you want to add also XP Recovery Console ISO (just as an example) to your USB Flash Drive.
Please, note that XP Recovery Console ISO needs to be placed in the root of your UFD and furthermore it needs the same 3 files that erd50.iso needs (that's ntdetect.com, setupldr.bin and winnt.sif).
Please note that furthermore the two "winnt.sif" contents are NOT the same and that obviously 2 files with the same name cannot reside in the same directory.
In your menu.lst you will have the same entries with 2 different titles, that's

title XP Recovery Console
find --set-root /setupldr.bin
chainloader /setupldr.bin

title ERD Commander 5.00
find --set-root /setupldr.bin
chainloader /setupldr.bin


Now, even assuming (to absurd) that you could put two files with the same name (winnt.sif) in the same directory, when you choose 1 of the 2 above menu.lst titles and then grub4dos chainloads "setupldr.bin" which ISO would be loaded? unsure.gif happy22.gif

Really, booting erd50.iso from the root of your UFD is not the most desirable way.

Instead, with 2 HD-like images, both erd50.iso and xprc.iso just existing inside the 2 (isolated and separated) images, will boot even in Multiboot UFD environments and even from any folder existing in your UFD.

In my UFDs - with more than 1 partition - I'm able to boot erd50.iso and XP Recovery Console (ISO) built in 2 HD-like images even from the 2nd partition and even from any folder. cool.gif

QUOTE (online @ Jul 6 2009, 09:40 AM) *
I've found the most versatile way in order to boot ERD Commander 5.00 (that's "erd50.iso") from your USB Flash Drive (using "grub4dos" as boot loader) with minimal hacking.

cheers.gif


--------------------
+Quote Post

4 Pages V   1 2 3 > » 
Reply to this topic
2 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts MultiBoot DVD
8 fms 921 24th August 2010 - 11:38 AM
Last post by: Zug
No New Posts from USB to ISO
5 Technotika 803 29th July 2010 - 08:41 AM
Last post by: Wonko the Sane
No New Posts Iso to Usb (Without extracting .iso image)..?
4 bootable 1,375 14th July 2010 - 09:03 PM
Last post by: bootable
No New Posts MultiBoot USB: Boot Multiple ISO images from USB
Utility to Boot from USB Multiple ISO image files
5 Duderino 4,341 3rd July 2010 - 12:33 PM
Last post by: mjb
No New Posts ISO mapped as C: or barking up wrong tree?
4 Technotika 562 21st June 2010 - 01:15 PM
Last post by: Technotika