Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40004 - cdrecord doesn't work in piped mode
Summary: cdrecord doesn't work in piped mode
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Lars Weiler (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 11:47 UTC by gerd.bitzer
Modified: 2004-02-11 18:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gerd.bitzer 2004-01-31 11:47:15 UTC
My Athlon-XP box is running under 1.4. I have emerged cdrtools, mkisofs and
later cdbkup:
app-cdr/cdrtools-2.01_alpha14 *
app-cdr/cdbkup-1.0 *
xcdroast works so far, but when I tried to use cdrbkup for backing up my whole
system with the command 

cdbkup 0 -c bz2 -e /tmp -e /mnt -e /proc -e /dev -m -s 4 -S 700000000 -w
/mnt/extra 0,6,0 /

it died in cdsplit line 302. I inserted a print $cmd right at the begin
of the for loop (line 300) to learn the exact command, which caused the dying
of the script. It's 

/usr/bin/mkisofs -quiet -R -J /mnt/extra/BlackHole-2004-01-30-0.tar.bz2.1 |
/usr/bin/cdrecord -v -data dev=0,6,0 speed=4 -

I read the manpages of cdrecord and mkisofs, so far the command looks good,
but doesn't work. Even issuing it on the command on a cmd line doesn't work. 
It dies with this message:

drecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 J<F6>rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,6,0'
scsibus: 0 target: 6 lun: 0
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
atapi: 0
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : RELADR SYNC LINKED 
Vendor_info    : 'TEAC    '
Identifikation : 'CD-R55S         '
Revision       : '1.0R'
Device seems to be: Teac CD-R50S.
Using driver for Teac CD-R50S, Teac CD-R55S, JVC XR-W2010, Pinnacle RCD-5020
(te
ac_cdr50).
Driver flags   : SWABAUDIO 
Supported modes: TAO
WRa Data 00 0A 00 00
Buffer cap: 655360
Drive buf size : 655360 = 640 KB
FIFO size      : 4194304 = 4096 KB
Track 01: data  unknown length
Total size:        0 MB (00:00.00) = 0 sectors
Lout start:        0 MB (00:02/00) = 0 sectors
Current Secsize: 2048
/usr/bin/cdrecord: WARNING: Total disk size unknown. Data may not fit on disk.
Starting to write CD/DVD at speed 4 in real TAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
/usr/bin/cdrecord: Track 1 has unknown length.
/usr/bin/cdrecord: Cannot open new session.
Writing  time:    0.022s
/usr/bin/cdrecord: fifo had 17 puts and 0 gets.
/usr/bin/cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.

Nothing gets written, even the CDR isn't touched, it's fully usable after a
try. My only guess is, that cdrecord does not work in a pipe (Track 1 has
unknown length), but I'm not able to fix this problem. At least it looks that
the problem is not with cdbkup, but with mkisofs or cdrecord.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
cdbkup dies

Expected Results:  
burning of backup CD's

Severity = Major, because cdbkup doesn't work at all

Feel free to contact me for further infos :-)
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-31 15:35:34 UTC
try to upgrade to latest cdrtools/cdrdao in portage
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2004-02-11 18:49:58 UTC
And again, please upgrade and test.