Wednesday, September 27, 2006

Some "need to know" stuff, for handling DVD.

First create the ISO image, in another folder from where you have the dvd

# mkisofs -r -o yourfile.iso dvd/name_of_folder/

The dvd/name_of_folder should contain the folders AUDIO_TS + VIDEO_TS

Now use the growisofs command to write the ISO onto the DVD:

# growisofs -Z /dev/dvd=yourfile.iso

To append more data for same DVD:

# growisofs -M /dev/dvd /tmp/file.1

To format (erase) a DVD:

# dvd+rw-format -force /dev/dvd

OR

# dvd+rw-format -force=full /dev/dvd

The dvd+rw-format command formats dvd disk in the specified dvd drive.

To display information about dvd drive and disk using dvd+rw-mediainfo command:

# dvd+rw-mediainfo /dev/dvd