Burn dvd from the command line


Vinh Nguyen


February 24, 2011

I recently had to back files from my Ubuntu-based NAS. I initially used xfburn, a medium-weight burning software. It does a pretty good job. However, I decided to burn via the command line to refrain from pointing and clicking. I found dvd+rw-tools. Some simple examples are found here; the full filename solution was found here. Suppose the dvd burner is /dev/sr0 (found from scanning through dmesg | less). Then I can burn files with:

growisofs -dvd-compat -input-charset=ISO-8859-1 -full-iso9660-filenames -Z /dev/sr0 -R -J -pad "/path/to/files" ## can use -dry-run
eject /dev/sr0