9.3.5 CD-image file (bootable)
To create a CD-image of files under target-directory/
as
cd-image.raw
(bootable, Joliet TRANS.TBL-enabled format; if not
bootable, take out -b and -c options), insert a boot
floppy in the first floppy drive and
# dd if=/dev/fd0 target-directory/boot.img
# mkisofs -r -V volume_id -b boot.img -c bootcatalog -J -T \
-o cd-image.raw target_directory/
One funny hack is to make a bootable DOS CD-ROM. If an ordinary DOS boot
floppy disk image is in the above boot.img
, the CD-ROM
will boot as if a DOS floppy were in the first floppy drive (A:). Doing this
with freeDOS may be more interesting.
This CD-image file can be inspected by mounting it on the loop device.
# mount -t iso9660 -o ro,loop cd-image.raw /cdrom
# cd /cdrom
# mc
# umount /cdrom