How can I write the necessary files to an ext2 image file
so as to make it bootable when I burn it to a cd?
What is this "ext2" image file thing? It is possible to create a CD withQuote:>How can I write the necessary files to an ext2 image file
>so as to make it bootable when I burn it to a cd?
mkisofs -b BOOT.IMG -c boot.catalog -r -T -o cdimage.iso BLAH
BOOT.IMG is a floppy image, usually 1.4M in size, that contains a Linux
kernel and probably an initial ramdisk. You can read the Bootdisk-HOWTO
to find out how to create such an image;
BLAH is the path to the file tree you wish to put onto the CD. mkisofs
has other options to exclude certain files/directory trees, or merge
images, or... read the man page to learn all about it.
Once you've done all that, put a blank CD into the CD-RW and do a
cdrecord -v speed=4 dev=/dev/sg0 cdimage.iso
adjusting the speed and dev parameters to your hardware. HTH,
Matt G / Dances With Crows \###| Programmers are playwrights
There is no Darkness in Eternity \##| Computers are lousy actors
But only Light too dim for us to see \#| Lusers are vicious drama critics
(Unless, of course, you're working with NT)\| BOFHen burn down theatres.
Simply that Sun's (and some HP's and SGI's) expect the CD-ROM drive to
be able to support 512 bytes per block transfers, just like a normal
hard drive has.
Normal CD-ROM drives transfer bytes in 2048 bytes per block. All the
Sun bootable drives also support this mode, but when you throw that
jumper that make them Sun bootable, it defaults to 512 byte blocks.
Network Engineer/Tech Support/Jack of All Trades of Vector Internet
Due to circumstances beyond your control, you are master of your fate
and captain of your soul.