Why would you do this? Say like me you have a server that you have remote ssh access to. Or you do not want to install GUI on a system but have need to burn a DVD backup.
Step 1: Install dvd+rw-tools
Code:
sudo apt-get install dvd+rw-tools
Step 2: To find where your DVD Burner is
Look for a line that is simular to:
Code:
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
Step 3: Buring your DVD.
Burning a content of a directory:
Code:
growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hdd -R -J -pad "/path/to/some/data"
If you are unsure of the charter set leave blank and your default system charter set will be used.
When finished eject the DVD by issuing the command:
Burning data from multiple directories:
Ok now if you want to burn data from directories /path/to/foo and /path/to/chu (given you have enough space on the DVD for it) and you want to put the data into directories "foo" and "chu" on the DVD.
Code:
growisofs -dvd-compat -input-charset=ISO-8859-1 -Z /dev/hdd -R -J -pad -graft-points "/foo=/path/to/foo" "/chu=/path/to/chu"
Burning to DVD-RW:
If you are using a DVD-RW, you need to format your DVD-RW before you can burn to it.
Code:
dvd+rw-format -force /dev/hdd
Now you are ready to burn to your DVD-RW.
Appending Data to DVD-RW:
If you would like to add data to your DVD-RW from a previous burn you can append data by using the -M switch:
Code:
growisofs -dvd-compat -input-charset=ISO-8859-1 -M /dev/hdd -R -J -pad -graft-points "/foo=/path/to/additonal/data"
Burning an iso:
If you used "dd" to created an ISO or made a backup of another DVD you've created. To burn that ISO use the following command.
Code:
growisofs -dvd-compat -Z /dev/hdd=/path/to/image.iso
-GC
Bookmarks