[techtalk] Using CD-Rom drives with linux.

Tania M. Morell tmorell at ispchannel.com
Mon Dec 11 22:01:27 EST 2000


Conor, 

Thanks.   but I don't have an /etc/cdrecord.conf

[root at caladan /root]# cat /etc/cdrecord.conf
cat: /etc/cdrecord.conf: No such file or directory
[root at caladan /root]#       

How is this file generated?  should I just create it manually? Is this a
file cdrecord looks for when it runs?

I was able to copy an image of a music cd from CDR in raw, cdr, and wav
formats. (I think cdr and raw and the same thing, though)  

[root at caladan BobMarley]# ls -l raw/
total 535488
-rw-r--r--    1 root     root          421 Dec 10 17:10 audio_01.inf
-rw-r--r--    1 root     root     51489984 Dec 10 17:11 audio_01.raw
-rw-r--r--    1 root     root          425 Dec 10 17:10 audio_02.inf
-rw-r--r--    1 root     root     37008720 Dec 10 17:12 audio_02.raw
-rw-r--r--    1 root     root          425 Dec 10 17:10 audio_03.inf
-rw-r--r--    1 root     root     45758160 Dec 10 17:12 audio_03.raw
-rw-r--r--    1 root     root          425 Dec 10 17:10 audio_04.inf
-rw-r--r--    1 root     root     44570400 Dec 10 17:13 audio_04.raw
-rw-r--r--    1 root     root          425 Dec 10 17:10 audio_05.inf
-rw-r--r--    1 root     root     45624096 Dec 10 17:13 audio_05.raw
-rw-r--r--    1 root     root          425 Dec 10 17:10 audio_06.inf
-rw-r--r--    1 root     root     41176464 Dec 10 17:14 audio_06.raw
-rw-r--r--    1 root     root          426 Dec 10 17:10 audio_07.inf
-rw-r--r--    1 root     root     61093200 Dec 10 17:14 audio_07.raw
-rw-r--r--    1 root     root          426 Dec 10 17:10 audio_08.inf
-rw-r--r--    1 root     root     43860096 Dec 10 17:15 audio_08.raw
-rw-r--r--    1 root     root          426 Dec 10 17:10 audio_09.inf
-rw-r--r--    1 root     root     41183520 Dec 10 17:15 audio_09.raw
-rw-r--r--    1 root     root          427 Dec 10 17:10 audio_10.inf
-rw-r--r--    1 root     root     43222704 Dec 10 17:16 audio_10.raw
-rw-r--r--    1 root     root          427 Dec 10 17:10 audio_11.inf
-rw-r--r--    1 root     root     40696656 Dec 10 17:16 audio_11.raw
-rw-r--r--    1 root     root          427 Dec 10 17:10 audio_12.inf
-rw-r--r--    1 root     root     51979200 Dec 10 17:17 audio_12.raw
[root at caladan BobMarley]#    

I ran a couple tests before attempting to copy the images onto a
recordable cd.

With audio cd:
[root at caladan /var]# dd if=/dev/cdrom2 of=/dev/null
dd: /dev/cdrom2: Input/output error
0+0 records in
0+0 records out
[root at caladan /var]# 

With data cd:
[root at caladan /var]# dd if=/dev/cdrom2 of=/dev/null
1328864+0 records in
1328864+0 records out
[root at caladan /var]#    

After doing a few tests..  something happened which locked the drive and
it could no longer be openned and it wouldn't respond.  

DUMMY (BUT SUCCESSFUL?) TEST:

[root at caladan BobMarley]# cdrecord -dummy speed=4 fs=4m -useinfo dev=2,0
-audio raw/audio_*.raw
pregap1: -1
Cdrecord 1.9 (i586-mandrake-linux-gnu) Copyright (C) 1995-2000 Jörg
Schilling
scsidev: '2,0'
scsibus: 0 target: 2 lun: 0
Linux sg driver version: 2.1.39
Using libscg version 'schily-0.1'
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : SYNC LINKED
Vendor_info    : 'PLEXTOR '
Identifikation : 'CD-R   PX-W124TS'
Revision       : '1.06'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
Starting to write CD/DVD at speed 4 in dummy mode for single session.
Last chance to quit, starting dummy write in 1 seconds.
Track 01: Total bytes read/written: 51489984/51489984 (21892 sectors).
Track 02: Total bytes read/written: 37008720/37008720 (15735 sectors).
Track 03: Total bytes read/written: 45758160/45758160 (19455 sectors).
Track 04: Total bytes read/written: 44570400/44570400 (18950 sectors).
Track 05: Total bytes read/written: 45624096/45624096 (19398 sectors).
Track 06: Total bytes read/written: 41176464/41176464 (17507 sectors).
Track 07: Total bytes read/written: 61093200/61093200 (25975 sectors).
Track 08: Total bytes read/written: 43860096/43860096 (18648 sectors).
Track 09: Total bytes read/written: 41183520/41183520 (17510 sectors).
Track 10: Total bytes read/written: 43222704/43222704 (18377 sectors).
Track 11: Total bytes read/written: 40696656/40696656 (17303 sectors).
Track 12: Total bytes read/written: 51979200/51979200 (22100 sectors).
cdrecord: Input/output error. close track/session: scsi sendcmd:
retryable error
CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 09 00 00 00 00 0A 00 00 00 00 80 01 00 00
Sense Key: 0x9 Vendor Unique, Segment 0
Sense Code: 0x80 Qual 0x01 (vendor unique sense code 0x80) [No matching
qualifier] Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 480s
[root at caladan BobMarley]# 

BORKED AFTER THIS POINT:

[root at caladan BobMarley]# cdrecord -dummy speed=4 fs=4m -useinfo dev=2,0
-audio raw/audio_*.raw
pregap1: -1
Cdrecord 1.9 (i586-mandrake-linux-gnu) Copyright (C) 1995-2000 Jörg
Schilling
scsidev: '2,0'
scsibus: 0 target: 2 lun: 0
Linux sg driver version: 2.1.39
Using libscg version 'schily-0.1'
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : SYNC LINKED
Vendor_info    : 'PLEXTOR '
Identifikation : 'CD-R   PX-W124TS'
Revision       : '1.06'
Device seems to be: Generic CD-ROM.
cdrecord: Sorry, no CD/DVD-Recorder or unsupported CD/DVD-Recorder found
on this target.
[root at caladan BobMarley]#          


Any ideas how to 'unlock' or 'reset' the drive without having to reboot?


-T




More information about the Techtalk mailing list