Sunday, October 21, 2007

burn cd / dvd

cdrom:

burn data directory on-the-fly:
mkisofs -r -l -J -V "label" data/ | cdrecord -driveropts=burnfree -v dev=/dev/cdrom1 -

burn iso image:
cdrecord -driveropts=burnfree -v dev=/dev/cdrom1 img.iso

create iso image:
mkisofs -r -l -J -V "label" -o img.iso data/

mount iso image:
mount -o loop img.iso /mnt/iso


dvd:


burn data directory on-the-fly:
growisofs -l -Z /dev/dvd -V "label" -R -J data/

burn iso image:
growisofs -dvd-compat -Z /dev/dvd=img.iso

create dvd image of video dvd in VIDEO_TS / AUDIO_TS format:
mkisofs -dvd-video -o img.iso /path/to/dvd/filesystem/

No comments: