ATAPI CDROM can't rip audio discs after Woody upgrade
I have 2 drives, an 36x generic ATAPI CDROM and a Memorex CDRW. The CDRW
works perfectly - it can read or write audio and data discs. The ATAPI
CDROM, however, can read data discs and play audio discs (with gtcd, for
example), but cannot read audio discs for copying through xcdroast, kreatecd,
or grip.
They read the table of contents correctly, but do not actually read the
tracks. xcdroast just creates a 44 byte wav-file, pauses for several
minutes, then gives the error:
recording 165.04666 seconds stereo with 16 bits @ 44100.0 Hz
->'/tmp/track-01'...
cdda2wav: Input/output error. ReadCD MMC 12: scsi sendcmd: no error
CDB: BE 04 00 00 00 00 00 00 4B 10 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 0B 00 00 00 00 0A 00 00 00 00 BF 00 00 00
Sense Key: 0xB Aborted Command, Segment 0
Sense Code: 0xBF Qual 0x00 (vendor unique sense code 0xBF) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 310.021s timeout 300s
Both drives are set up for SCSI emulation. The ide-scsi module is loaded,
I have the following line in lilo.conf:
append="hdc=ide-scsi hdd=ide-scsi"
I have the /dev symbolic links set as follows:
cedar:/dev# ls -al cdrw cdrom
lrwxrwxrwx 1 root root 9 Oct 8 12:24 cdrom -> /dev/scd1
lrwxrwxrwx 1 root root 9 Nov 15 2001 cdrw -> /dev/scd0
and the following entries in /etc/fstab:
/dev/cdrom /cdrom iso9660 defaults,ro,user 0 0
/dev/cdrw /cdrw iso9660 defaults,ro,user 0 0
While troubleshooting, I followed the directions in
/usr/share/doc/xcdroast/README.atapi and created a file /etc/modutils/cdrom
containing the following, and activated it by executing update-modules:
options ide-cd ignore='hdc hdd'
pre-install sg modprobe ide-scsi
alias scsi_hostadapter ide-scsi
alias scsi_hostadapter1 ide-scsi
alias scsi_hostadapter2 ide-scsi
With all this, cdrecord -scanbus gives:
cedar:/etc# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'Memorex ' 'CDRW-2216 ' '1.0b' Removable CD-ROM
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,1,0 1) ' ' 'ATAPI CDROM ' '130B' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
I
And with an audio CD in the drive, cdparanoia -svQ gives:
cedar:/etc# cdparanoia -svQ
cdparanoia III release 9.8 (March 23, 2001)
(C) 2001 Monty <monty@xiph.org> and Xiphophorus
Report bugs to paranoia@xiph.org
http://www.xiph.org/paranoia/
Checking /dev/cdrom for cdrom...
Testing /dev/cdrom for cooked ioctl() interface
/dev/scd1 is not a cooked ioctl CDROM.
Testing /dev/cdrom for SCSI interface
generic device: /dev/sg1
ioctl device: /dev/scd1
Found an accessible SCSI CDROM drive.
Looking at revision of the SG interface in use...
SG interface version 3.1.22; OK.
CDROM model sensed sensed: ATAPI CDROM 130B
Checking for SCSI emulation...
Drive is ATAPI (using SCSI host adaptor emulation)
Checking for MMC style command set...
Drive is MMC style
DMA scatter/gather table entries: 256
table entry size: 32768 bytes
maximum theoretical transfer: 3566 sectors
Setting default read size to 13 sectors (30576 bytes).
Verifying CDDA command set...
Expected command set reads OK.
Table of contents (audio tracks only):
track length begin copy pre ch
===========================================================
1. 12410 [02:45.35] 0 [00:00.00] no no 2
2. 9842 [02:11.17] 12410 [02:45.35] no no 2
3. 12470 [02:46.20] 22252 [04:56.52] no no 2
4. 12753 [02:50.03] 34722 [07:42.72] no no 2
5. 12107 [02:41.32] 47475 [10:33.00] no no 2
6. 14013 [03:06.63] 59582 [13:14.32] no no 2
7. 12707 [02:49.32] 73595 [16:21.20] no no 2
8. 10935 [02:25.60] 86302 [19:10.52] no no 2
9. 9480 [02:06.30] 97237 [21:36.37] no no 2
10. 12703 [02:49.28] 106717 [23:42.67] no no 2
11. 13010 [02:53.35] 119420 [26:32.20] no no 2
12. 10315 [02:17.40] 132430 [29:25.55] no no 2
13. 14100 [03:08.00] 142745 [31:43.20] no no 2
14. 10762 [02:23.37] 156845 [34:51.20] no no 2
15. 14710 [03:16.10] 167607 [37:14.57] no no 2
16. 15075 [03:21.00] 182317 [40:30.67] no no 2
17. 11823 [02:37.48] 197392 [43:51.67] no no 2
18. 10280 [02:17.05] 209215 [46:29.40] no no 2
19. 13347 [02:57.72] 219495 [48:46.45] no no 2
20. 11548 [02:33.73] 232842 [51:44.42] no no 2
21. 8382 [01:51.57] 244390 [54:18.40] no no 2
22. 9028 [02:00.28] 252772 [56:10.22] no no 2
23. 12771 [02:50.21] 261800 [58:10.50] no no 2
TOTAL 274571 [61:00.71] (audio only)
I'm running Debian Woody with the 2.4.18 pre-compiled k6-2 kernel. Both
drives were working perfectly under Potato before I upgraded. I have also
tried rebooting with my old 2.2.18 kernel, but the same problem occurs.
Any ideas?
Reply to: