Copyright (C) 2003 by Steve Litt, All rights reserved. Material provided as-is, use at your own risk.
Steve Litt is the author of Troubleshooting Techniques of the Successful Technologist, Rapid Learning: Secret Weapon of the Successful Technologist, and Samba Unleashed. |
mkisofs -pad -b network.img -R -o /tmp/cd.iso /scratch/linuxinst/m91inst/images/network.imgNote 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 prepended 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. |
NOTE
As mentioned before, you must determine your device number based on cdrecord
-scanbus, and your speed based on media and drive. |