2 Pages V   1 2 >  
Reply to this topic
 Possible to chainload a extracted CD boot sector ?
post Feb 5 2010, 04:59 PM
Post #1
gbrao
Member   **
Group: Members

  Joined: 9-March 09
Posts: 36
Thank(s): 2


India


If I extract the boot sector from a CD ( say cd1bsect.bin ) and then create a g4d bootable DVD with cd1bsect.bin and the contents of the CD at the root of the DVD, can I then chainload cd1bsect.bin from grldr ?

Basically I want to put a number of bootable CDs onto a single DVD. I thought that might be the simplest way. Can I have something like this in the DVD menu.lst :

CODE
title Boot CD1
find --set-root /grldr
chainloader /cd1bsect.bin

title Boot CD2
find --set-root /grldr
chainloader /cd2bsect.bin

.
I would not have to bother where the boot sector from each CD transfers control.


+Quote Post
post Feb 5 2010, 05:17 PM
Post #2
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


Well, the whole idea of the great additional features of grub4dos is that of directly chainloading system files in order to bypass bootsector problems, so it does seem like a strange approach. unsure.gif

But I don't see the problem. dubbio.gif

I mean have you tried it and it fails or is this a "preventive" question?

If the latter, just try it, and report what happens. wink.gif
If the former, report what happens....happy22.gif

cheers.gif

Wonko


--------------------
+Quote Post
post Feb 5 2010, 05:57 PM
Post #3
gbrao
Member   **
Group: Members

  Joined: 9-March 09
Posts: 36
Thank(s): 2


India


Well, my DVD writer is not working. I will burn the DVD at my friends place tomorrow and report.

If you are using a "well-known" CD then directly chainloading system files is fine. For eg., with a Windows XP installation CD. However sometimes it is not so obvious - one of the bootable CDs I have has been created with EZBoot (EasyBoot ?). I could go thru the trouble of finding out where exactly the MBR transfers control, but with the the way I suggested in post 1 I wouldn't have to. That's all.

No one has thought of this / tried this before ?

I've been really unlucky with DVD writers.
+Quote Post
post Feb 5 2010, 06:25 PM
Post #4
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


QUOTE (gbrao @ Feb 5 2010, 06:57 PM) *
No one has thought of this / tried this before ?

Sure smile.gif, it is one of the "traditional" way ISOLINUX can work:
http://syslinux.zytor.com/wiki/index.php/S...NUX#KERNEL_file

Point is that chainloading a bootsector may give different results depending on the actual bootsector content. scared9.gif

QUOTE (gbrao @ Feb 5 2010, 06:57 PM) *
I've been really unlucky with DVD writers.

They do have a higher failure rate when compared with CD writers, cannot say because they need more accurate "alighment" or because they have become so cheap.

And we still have to see what will happen with Blue_Ray's.

QUOTE (gbrao @ Feb 5 2010, 06:57 PM) *
Well, my DVD writer is not working. I will burn the DVD at my friends place tomorrow and report.

Well, you should be able to create an .iso of the "compilation" and test it in a VM. (if it doesn't work in a VM it doesn't "necessarily" mean it won't work on real hardware, but if it works, usually it will also work on real hardware).

cheers.gif

Wonko


--------------------
+Quote Post
post Feb 6 2010, 08:33 AM
Post #5
gbrao
Member   **
Group: Members

  Joined: 9-March 09
Posts: 36
Thank(s): 2


India


I tried booting a image in QEMU. When chainloading the extracted bootsector I get the error mesg "Error 13: Invalid or unsupported executable format".
+Quote Post
post Feb 6 2010, 01:59 PM
Post #6
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


Good. smile.gif

So it isn't possible. sad.gif

Now try using ISOLINUX instead of grub4dos as "main" loader.

And try "chainloading" from it the CD bootsector as a file with extension .BIN.

Wonko


--------------------
+Quote Post
post Feb 6 2010, 03:54 PM
Post #7
gbrao
Member   **
Group: Members

  Joined: 9-March 09
Posts: 36
Thank(s): 2


India


^ Yes, the ISOLINUX method worked. Thanks.
+Quote Post
post Feb 6 2010, 05:03 PM
Post #8
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


QUOTE (gbrao @ Feb 6 2010, 04:54 PM) *
^ Yes, the ISOLINUX method worked. Thanks.


Good. smile.gif

Why don't you post some details of your working setup, as they might help another user of the board with same or similar problems.

cheers.gif

Wonko


--------------------
+Quote Post
post Feb 7 2010, 04:47 AM
Post #9
gbrao
Member   **
Group: Members

  Joined: 9-March 09
Posts: 36
Thank(s): 2


India


Nothing new really.

1) Created a ISO image using mkisofs as per link . Actually it was :
CODE
pause

mkisofs -r -J -joliet-long -l -allow-lowercase -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -o gbootdvd.iso -V GBOOTDVD2010Feb -p gbrao iso_root

pause


I used only one CD since this was just a test. Will do the full compilation today. btw : does mkisofs need filenames like isolinux.bin in (-b isolinux.bin) to be uppercase ? I kept getting "unable to find isolinux.bin" until I uppercased it. Also some checksum error until I included -boot-info-table.

2) the cfg file was pretty basic :
CODE
DEFAULT test
LABEL test
SAY Now booting BS.BIN...
KERNEL BS.BIN


3) I had isolinux.bin & isolinux.cfg in the root of the image. BS.BIN is the CD boot sector.

If this can be corrected/improved, please point it out. I'm very inexperienced.

what's the recommended way to extract the boot sector from a CD ? I tried ultraiso and bbie - they seemed to extract different bootsectors ?! I tried the one from ultraiso.
+Quote Post
post Feb 7 2010, 04:41 PM
Post #10
Icecube
Silver Member   ****
Group: Advanced user

  Joined: 7-September 08
Posts: 641
Thank(s): 172


Belgium


QUOTE (gbrao @ Feb 7 2010, 05:47 AM) *
Also some checksum error until I included -boot-info-table.

The -boot-info-table option is needed for ISOLINUX. The option patches isolinux.bin, so the 2kb boot sector of ISOLINUX can find the rest of the isolinux.bin file on the CD. ISOLINUX checks the checksum to see if the correct file is loaded.
QUOTE (gbrao @ Feb 7 2010, 05:47 AM) *
2) the cfg file was pretty basic :
CODE
DEFAULT test
LABEL test
SAY Now booting BS.BIN...
KERNEL BS.BIN

Note: The SAY command is not specific to a LABEL, so when you have multiple LABELs in your config all SAY messages will be displayed.

Instead of KERNEL (you need extension .bin if you want to boot the file as CD bootsector), you can use BOOT (file extension doesn't need to be .bin).
CODE
DEFAULT test
LABEL test
SAY Now booting BS.BIN...
BOOT BS.BIN

QUOTE (gbrao @ Feb 7 2010, 05:47 AM) *
what's the recommended way to extract the boot sector from a CD ? I tried ultraiso and bbie - they seemed to extract different bootsectors ?! I tried the one from ultraiso.

You can open an ISO with 7-zip (which is free). If it is a bootable ISO, 7-zip will display a [BOOT] folder. 7-zip will even tell you what kind of boot sector the CD uses (no-emulation, hard disk emulation or floppy emulation).


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

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



Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts Boot Land Stats, August
4 Nuno Brito 155 Yesterday, 02:07 PM
Last post by: NFX
No New Posts boot full ubuntu from grub4dos
3 sara - pmedia 146 Yesterday, 08:12 AM
Last post by: Wonko the Sane
No new Topic has attachmentsTool to Add Seagate DiscWizard to PE3 Wim
Free Acronis TrueImage 11
14 oriensol 1,372 29th August 2010 - 03:03 AM
Last post by: oriensol
No New Posts Possible to do 32-Bit PE on a 64-bit processor?
1 Zug 179 28th August 2010 - 12:52 PM
Last post by: Wonko the Sane
No new booting vista/2008/w7 from usb sub folder
grub4dos launches bootmgr but bootmgr cannot find what it needs?!?
112 anystupidname 16,945 27th August 2010 - 07:41 PM
Last post by: steve6375