Mastering And Burning It the Easy way
Assuming the floppy image file to be turned into a bootable CD is /scratch/linuxinst/m91inst/images/network.img, master CD image /tmp/cd.iso with the following command:
mkisofs -pad -b network.img -R -o /tmp/cd.iso /scratch/linuxinst/m91inst/images/network.img
Note the following:
Command parameter or part | Functionality |
-pad | Add padding to the end to make it readable on all CD players |
-b network.img | -b tells mkisofs which *floppy image* to use for booting. If the floppy image boots as a floppy, it will boot as a CD. Note that there is no path prepender to network.img. The network.img bootable image is assumed to be relative to the file being imagized, in this case /scratch/linuxinst/m91inst/images/network.img |
-R | Include Rock-Ridge extensions for readability everywhere |
-o /tmp/cd.iso | This defines the output file, an ISO9660 image ready for burning |
/scratch/linuxinst/m91inst/images/network.img | This is the file to put on the CD.
cdrecord dev=0,3,0 speed=12 blank=fast -pad -v -eject /tmp/cd.iso
Command parameter or part | Functionality |
dev=0,3,0 | The CD burner device. If you don't know it, use the cdrecord -scanbus command to find out. |
-speed=12 | Set this to the fastest speed supported by your burner/media combination. |
-blank=fast | Use this ONLY if burning a rewriteable. This erases the current CD contents, but does it fast rather than thoroughly. |
-pad | Add padding to the end to make it readable on all CD players. Without this, the CD will error out when read on many Linux boxes |
-v | Verbose |
-eject | Eject when finished |
/tmp/cd.iso | The ISO image you're burning. In this case it's the ISO you just made with mkisofs. |
Mastering and Burning it the Complete Way
The easy CD boots and installs just like the floppy, but it does not contain the floppy's files in the root of the CD. To get all the files visible in the root, you need to create a temporary directory, copy all the floppy image files to it, copy the floppy image to it, and run mkisofs.
- As root, make sure there's a /mnt/test directory
- As root, mount -o loop,ro /scratch/linuxinst/m91inst/images/network.img /mnt/test
- The remainder of the steps are done as a regular user
- mkdir /tmp/floppycopy
- cp -Rp /mnt/test/* /tmp/floppycopy
- cp -p /scratch/linuxinst/m91inst/images/network.img /tmp/floppycopy
- mkisofs -pad -b network.img -R -o /tmp/cd.iso /tmp/floppycopy
- cdrecord dev=0,3,0 speed=12 blank=fast -pad -v -eject /tmp/cd.iso