Burning Optical Media
Use these examples to burn data to CDs and DVDs from the command line.
Make .iso from multiple directories
genisoimage -J -r -pad -graft-points dir1/=/path/files dir2/=/path/files dir3/=/path/files > filename.iso
Make an .iso from a directory
mkisofs -R -J /path/to/files -o /path/to/output.iso
Burn an .iso to DVD
growisofs -dvd-compat -speed=8 -use-the-force-luke=tty -Z /dev/sr0=/path/file.iso
Burn a DVD from individual files
growisofs -use-the-force-luke=tty -Z /dev/sr0 -J -r -speed=8 -dvd-compat -pad -graft-points /path/file1.avi /path/file2.avi /path/file3.avi
Burn an .iso to CD
wodim speed=8 -tao dev=/dev/sr0 /path/file.iso
Burn files to CD
mkisofs -J -r -pad -graft-points /path/file /path/file | cdrecord dev=1,1,0 speed=8 -
genisoimage -J -r -pad -graft-points /path/file /path/file | cdrecord dev=1,1,0 speed=8 -
Write an audio CD (music files need to be encoded as .wav files first)
cdrecord -v dev=/dev/sr0 speed=8 -audio -pad *.wav
You can also write a DVD-CD with Dd