Rabu, 18 Januari 2006

Burning DVDs in FreeBSD

Here are the steps I took to create a DVD using a Plextor 708UF DVD burner connected to my ancient laptop over Firewire through an Adaptec DuoConnect PC Card Adapter. First I installed sysutils/dvd+rw-tools as a package. Next I placed all of the files I wanted backed up into /mnt/.burn_to_dvd/ and proceeded to use growisofs.


orr:/root# growisofs -dvd-compat -Z /dev/cd0 -J -R /mnt/.burn_to_dvd/
Executing 'mkisofs -J -R /mnt/.burn_to_dvd/ | builtin_dd of=/dev/pass1 obs=32k seek=0'
:-( /dev/pass1: 2297888 blocks are free, 2637323 to be written
:-( write failed: No space left on device

Oops. I put too many files into the directory. They are larger than the DVD capacity of 4.3 GB. After removing a file, I proceed to burn the DVD.

orr:/mnt# du -h .burn_to_dvd/
4.2G .burn_to_dvd/
orr:/mnt# growisofs -dvd-compat -Z /dev/cd0 -J -R /mnt/.burn_to_dvd/
Executing 'mkisofs -J -R /mnt/.burn_to_dvd/ | builtin_dd of=/dev/pass1 obs=32k seek=0'
/dev/pass1: "Current Write Speed" is 4.1x1385KBps.
0.23% done, estimate finish Wed Jan 18 01:13:59 2006
0.46% done, estimate finish Wed Jan 18 00:26:30 2006
0.68% done, estimate finish Wed Jan 18 00:13:16 2006
...edited..
99.83% done, estimate finish Tue Jan 17 23:59:08 2006
Total translation table size: 0
Total rockridge attributes bytes: 906
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used c704
2193835 extents written (4284 MB)
builtin_dd: 2193840*2KB out @ average 0.4x1385KBps
/dev/pass1: flushing cache
/dev/pass1: updating RMA
/dev/pass1: closing disc

I'm able to mount the new DVD and check its capacity.

orr:/mnt# mount -t cd9660 /dev/cd0 /cdrom
orr:/mnt# df -h /cdrom
Filesystem Size Used Avail Capacity Mounted on
/dev/cd0 4.2G 4.2G 0B 100% /cdrom

That's it -- very simple.

0 komentar:

Posting Komentar