LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-18-2012, 09:18 PM   #1
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
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
As root...
Code:
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root install &&
install -v -m755 -d /usr/share/doc/cdrtools-3.01a08      &&
install -v -m644 README* ABOUT doc/*.ps /usr/share/doc/cdrtools-3.01a08
Install dvd+rw-tools. This of course is still in the BLFS book, and the current version is dvd+rw-tools-7.1. The instructions in the current book (chapter 41) are good except for this purpose the xorrisofs seds are omitted.
Code:
sed -i '/stdlib/a#include <limits.h>' transport.hxx &&
make all rpl8 btcflash
As root...
Code:
make prefix=/usr install &&
install -v -m644 -D index.html /usr/share/doc/dvd+rw-tools-7.1/index.html

Some Examples for Burning with growisofs


Burn an ISO to DVD
Code:
growisofs -dvd-compat -speed=8 -Z /dev/sr0=isofile.iso
Burn Data to DVD
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
Rip Data or Video to an ISO
Code:
dd if=/dev/sr0 of=$HOME/isofile.iso
Setting the -speed=N Option Value

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
INQUIRY:                [Optiarc ][DVD RW AD-7280S ][1.01]
GET [CURRENT] CONFIGURATION:
 Mounted Media:         10h, DVD-ROM
 Media ID:               TYG02      
 Current Write Speed:   4.0x1385=5540KB/s
 Write Speed #0:        8.0x1385=11080KB/s
 Write Speed #1:        6.0x1385=8310KB/s
 Write Speed #2:        4.0x1385=5540KB/s
GET [CURRENT] PERFORMANCE:
 Write Performance:     4.0x1385=5540KB/s@[0 -> 713151]
 Speed Descriptor#0:    00/713152 R@8.0x1385=11080KB/s W@8.0x1385=11080KB/s
 Speed Descriptor#1:    00/713152 R@8.0x1385=11080KB/s W@6.0x1385=8310KB/s
 Speed Descriptor#2:    00/713152 R@5.0x1385=6925KB/s W@4.0x1385=5540KB/s
For the example above, the possible values for N are...
Code:
-speed=1        Means use the lowest possible speed (4X)
-speed=4        Means use 4X
-speed=6        Means use 6X
-speed=8        Means use 8X
-speed=256      Means use the highest possible speed (8X)

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
 
Old 10-19-2012, 09:13 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrtools on kernel 2.6? njbrain Linux - Software 7 02-11-2005 07:48 PM
cdrtools-2.00.3 art3mis Linux - Software 1 12-22-2004 09:43 AM
cdrtools? crapper Slackware 2 09-30-2004 09:33 AM
cdrtools installation Bon Bon Red Hat 12 04-01-2004 04:25 PM
cdrtools compilation Thetargos Linux - Software 4 06-22-2003 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration