bootable CD

I want to be able to create a bootable CD using mkisofs.

However, I dont have a floppy drive on my computer that would let me create
a bootable floppy, and then create a boot image from it.

How else can I do this?

I appreciate your suggestions.

Shashank

Shashank wrote:

I want to be able to create a bootable CD using mkisofs.
However, I dont have a floppy drive on my computer that would let me create
a bootable floppy, and then create a boot image from it.
How else can I do this?

I am not sure if the El Torito floppy emulation requires the floppy
geometry to be valid in the boot image or not (or ignores it since it
is really reading from CD)? You could first try not. In which case,
simply make your image as:

dd if=/dev/zero of=/boot.img bs=1k count=1440

You can then dinit it and mount it and copy files to it to set it up,
and then use that 1.44M boot.img file to mkisofs -b.

If the floppy geometry is also required, then you’d have to manually
spatch it in (C:H:S is 80:2:18), or else get the boot block/geometry
from someone with a floppy (using “dd if=/dev/fd0 of=boot.ldr count=1”,
and then supply that to the dinit above via ‘-B boot.ldr’). May also
need to pass ‘-F’ to dinit as well; similarly if you already have
the boot image you can give this via ‘-f’ to avoid the later mount/copy.

Search also for the thread “Making a bootable CD?” in this newsgroup
from July 2004, where similar procedures are given, and how to spatch
the boot loader geometry … sounds like they got this to work.

I have this all working, but don’t have time to post the
files right now.

It’s a big help if you have a file which represents a
blank, formatted floppy. You can then mount that file and
update it.

John Nagle
Team Overbot

John Garvey wrote:

Shashank wrote:

I want to be able to create a bootable CD using mkisofs.
However, I dont have a floppy drive on my computer that would let me
create
a bootable floppy, and then create a boot image from it.
How else can I do this?


I am not sure if the El Torito floppy emulation requires the floppy
geometry to be valid in the boot image or not (or ignores it since it
is really reading from CD)? You could first try not. In which case,
simply make your image as:

dd if=/dev/zero of=/boot.img bs=1k count=1440

You can then dinit it and mount it and copy files to it to set it up,
and then use that 1.44M boot.img file to mkisofs -b.

If the floppy geometry is also required, then you’d have to manually
spatch it in (C:H:S is 80:2:18), or else get the boot block/geometry
from someone with a floppy (using “dd if=/dev/fd0 of=boot.ldr count=1”,
and then supply that to the dinit above via ‘-B boot.ldr’). May also
need to pass ‘-F’ to dinit as well; similarly if you already have
the boot image you can give this via ‘-f’ to avoid the later mount/copy.

Search also for the thread “Making a bootable CD?” in this newsgroup
from July 2004, where similar procedures are given, and how to spatch
the boot loader geometry … sounds like they got this to work.

I could burn a bootable image onto a CD, and I created my hard disk image
using the “tar” utility. The size of the image is about 1.2 GB. It does not
fit on a CD. Can I compress the image in any way?

I appreciate your suggestions.

Shashank


“John Nagle” <nagle@downside.com> wrote in message
news:d4sg6s$rkf$1@inn.qnx.com

I have this all working, but don’t have time to post the
files right now.

It’s a big help if you have a file which represents a
blank, formatted floppy. You can then mount that file and
update it.

John Nagle
Team Overbot

John Garvey wrote:

Shashank wrote:

I want to be able to create a bootable CD using mkisofs.
However, I dont have a floppy drive on my computer that would let me
create
a bootable floppy, and then create a boot image from it.
How else can I do this?


I am not sure if the El Torito floppy emulation requires the floppy
geometry to be valid in the boot image or not (or ignores it since it
is really reading from CD)? You could first try not. In which case,
simply make your image as:

dd if=/dev/zero of=/boot.img bs=1k count=1440

You can then dinit it and mount it and copy files to it to set it up,
and then use that 1.44M boot.img file to mkisofs -b.

If the floppy geometry is also required, then you’d have to manually
spatch it in (C:H:S is 80:2:18), or else get the boot block/geometry
from someone with a floppy (using “dd if=/dev/fd0 of=boot.ldr count=1”,
and then supply that to the dinit above via ‘-B boot.ldr’). May also
need to pass ‘-F’ to dinit as well; similarly if you already have
the boot image you can give this via ‘-f’ to avoid the later mount/copy.

Search also for the thread “Making a bootable CD?” in this newsgroup
from July 2004, where similar procedures are given, and how to spatch
the boot loader geometry … sounds like they got this to work.

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:d5och8$f56$7@inn.qnx.com

I could burn a bootable image onto a CD, and I created my hard disk image
using the “tar” utility. The size of the image is about 1.2 GB. It does
not
fit on a CD. Can I compress the image in any way?

Yes you can gzip it. I think Robert (www.parse.com) has a filesysteme
resource manager that can read .tgz file and mount it .

I appreciate your suggestions.

Shashank


“John Nagle” <> nagle@downside.com> > wrote in message
news:d4sg6s$rkf$> 1@inn.qnx.com> …
I have this all working, but don’t have time to post the
files right now.

It’s a big help if you have a file which represents a
blank, formatted floppy. You can then mount that file and
update it.

John Nagle
Team Overbot

John Garvey wrote:

Shashank wrote:

I want to be able to create a bootable CD using mkisofs.
However, I dont have a floppy drive on my computer that would let me
create
a bootable floppy, and then create a boot image from it.
How else can I do this?


I am not sure if the El Torito floppy emulation requires the floppy
geometry to be valid in the boot image or not (or ignores it since it
is really reading from CD)? You could first try not. In which case,
simply make your image as:

dd if=/dev/zero of=/boot.img bs=1k count=1440

You can then dinit it and mount it and copy files to it to set it up,
and then use that 1.44M boot.img file to mkisofs -b.

If the floppy geometry is also required, then you’d have to manually
spatch it in (C:H:S is 80:2:18), or else get the boot block/geometry
from someone with a floppy (using “dd if=/dev/fd0 of=boot.ldr count=1”,
and then supply that to the dinit above via ‘-B boot.ldr’). May also
need to pass ‘-F’ to dinit as well; similarly if you already have
the boot image you can give this via ‘-f’ to avoid the later
mount/copy.

Search also for the thread “Making a bootable CD?” in this newsgroup
from July 2004, where similar procedures are given, and how to spatch
the boot loader geometry … sounds like they got this to work.