How to burn CD's using only bash.
First create an iso with the following command:mkisofs -o HomeMovie.iso -J -r -V HomeMovie Movie.avi Movie.srt
In this example:
- -o names the new .iso image file (HomeMovie.iso)
- -J uses Joliet naming records, for Windows compatibility
- -r uses Rock Ridge naming conventions for UNIX/Linux compatibility, and makes all files publicly readable
- -v sets verbose mode, for a running commentary as the image is created
- -V provides a volume ID (HomeMovie); this is the disk name that shows up in Windows Explorer
- Last in the list are the files selected for packaging into the .iso (the files Movie.avi and Movie.srt) This could also be a directory or a list of directories.
Then to burn the image on a CD:cdrecord -v gracetime=2 dev=/dev/ide/host0/bus1/target1/lun0/cd speed=52 -tao driveropts=burnfree -eject -data HomeMovie.iso