Using cdrtools in BLFS
.
Sort of a Brief History and Explanation I have been using growisofs (and its backend, mkisofs) to burn DVDs in my BLFS systems. Growisofs is provided by dvd+rw-tools, and mkisofs is provided by cdrtools. I have various scripts and shortcuts to automate tasks. I've been happy with the arrangement. Not long ago, the BLFS book dropped cdrtools and its mkisofs command, and replaced it with xorriso and its xorrisofs command. Xorriso was not new and had been in the BLFS book alongside cdrtools for a while. dvd+rw-tools still defaults to mkisofs in its source files, so the book uses seds to change that to xorrisofs in the source code. A short time later, xorriso disappeared from the book and Libisoburn was added to provide xorrisofs. That remains the current situation as of this moment. I hope that was understandable. Basically what happened was mkisofs was dumped for xorrisofs, and the dvd+rw-tools source has to be adjusted for the change with seds. Why all this happened, I don't know. But Debian and some other distros also dropped cdrtools. And it isn't hard to find accounts of friction between Debian maintainers and Jörg Schilling, the author and maintainer of cdrtools, over licensing issues. Some of those accounts seem to involve personal animosities. So maybe something along these lines is behind this change as it relates to BLFS. Anyway, here's the thing... I still prefer mkisofs. In my current BLFS system, I installed Libisoburn and I tried to like it. I'm sure if I worked at it, I could gain control of it and use it. But for now, I'm not going to. In case anyone else would like to install cdrtools for mkisofs, well that is why I'm posting this. How to Install cdrtools and dvd+rw-tools in BLFS Install cdrtools. The current alpha version is cdrtools-3.01a08. Do the usual routine of downloading, untarring, and changing to the build directory. Then... Code:
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root Code:
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install && Code:
sed -i '/stdlib/a#include <limits.h>' transport.hxx && Code:
make prefix=/usr install && Some Examples for Burning with growisofs Burn an ISO to DVD Code:
growisofs -dvd-compat -speed=8 -Z /dev/sr0=isofile.iso Code:
growisofs -dvd-compat -speed=8 -Z /dev/sr0 -r -J -hide-rr-moved -V "DATA" $HOME/dvd NOTE: For this example, put the data files in $HOME/dvd. The example labels the disk "DATA".Burn Video to DVD Code:
growisofs -dvd-compat -speed=8 -Z /dev/sr0 -dvd-video -V "VIDEO" $HOME/dvd NOTE: For this example, put the AUDIO_TS and VIDEO_TS folders in $HOME/dvd. The example labels the disk "VIDEO".Erase a DVD-RW Code:
growisofs -speed=8 -Z /dev/sr0=/dev/zero Code:
dd if=/dev/sr0 of=$HOME/isofile.iso This option controls recording velocity. N denotes the speed closest to N*1385 KB/s among those offered by unit for the currently mounted media which can be viewed in the output of the dvd+rw-mediainfo command... Code:
$ dvd+rw-mediainfo /dev/sr0 Code:
-speed=1 Means use the lowest possible speed (4X) Some References: http://slashdot.org/story/06/09/04/1...-jrg-schilling http://linux.dsplabs.com.au/growisof...growisofs-p18/ http://www.yolinux.com/TUTORIALS/Lin...ialCDBurn.html http://lists.debian.org/cdwrite/2004/02/msg00094.html |
Thanks for this I use growisofs/cdrtools a lot and as I have just started on a new LFS build I will keep this in mind. There seems to be a lot of the "not invented here" attitude around in linux lately, which does no one any good.
|
All times are GMT -5. The time now is 09:33 AM. |