In article <[EMAIL PROTECTED]>, Andy Polyakov <[EMAIL PROTECTED]> 
writes:
>> > However, the image is corrupt.
> 
> wait a sec...
> 
>> $ readcd  -vv dev=0,0,0 -f /tmp/test2.raw
>> ...
>> Capacity: 181489 Blocks = 416857 kBytes = 407 MBytes = 426 prMB
>> Sectorsize: 2352 Bytes
>> ...
>> -rw-r--r--   1 root     users    426862128 Oct 30 20:10 test2.raw
> 
> 181489*2352=426862128
> 
>> However, using dd
>> to dump the source CD completes without error and gives,
>> -rw-r--r--   1 root     root     371689472 Oct 30 19:51 test.raw
> 
> 181489*2048=371689472
> 
> So that test2.raw is not necessarily currupt. It's just that readcd
> dumped not only data, but sync bytes and checksums surrounding every
> data block...

Hi,
        Thanks for the feedback. I applied the patch in you previous post but
this makes no difference. I have had a second look at readcd reading the Aopen
CDROM and Plextor CDRW and can confirm your findings re; sector-size and CRC
stuff as follows;

$ readcd  dev=0,0,0 -f /dev/null -c2scan        # This is the AOpen CDROM
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
Capacity: 274517 Blocks = 630531 kBytes = 615 MBytes = 645 prMB
Sectorsize: 2352 Bytes
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD error recovery parameter page.
readcd: Warning: controller returns wrong size for CD error recovery parameter page.
Copy from SCSI (0,0,0) disk to file '/dev/null'
end:    274517
addr:        0 cnt: 99
C2 in sector:   0 first at byte:    6 (0x02) total:  104 errors
C2 in sector:   1 first at byte:    0 (0xFF) total: 2301 errors
C2 in sector:   2 first at byte:    6 (0x02) total:   97 errors
C2 in sector:   3 first at byte:    0 (0xFF) total: 2303 errors
C2 in sector:   4 first at byte:    6 (0x02) total:   94 errors
C2 in sector:   5 first at byte:    0 (0xFF) total: 2302 errors
C2 in sector:   6 first at byte:    6 (0x02) total:   93 errors
C2 in sector:   7 first at byte:    0 (0xFF) total: 2304 errors
C2 in sector:   8 first at byte:    6 (0x02) total:   93 errors
C2 in sector:   9 first at byte:    0 (0xFF) total: 2300 errors
C2 in sector:  10 first at byte:    6 (0x02) total:   80 errors
C2 in sector:  11 first at byte:    0 (0xFF) total: 2292 errors
C2 in sector:  12 first at byte:    6 (0x02) total:   85 errors
C2 in sector:  13 first at byte:    0 (0xFF) total: 2285 errors
C2 in sector:  14 first at byte:    6 (0x02) total:   77 errors
C2 in sector:  15 first at byte:    0 (0xFF) total: 2282 errors
C2 in sector:  16 first at byte:    6 (0x02) total:   77 errors
C2 in sector:  17 first at byte:    0 (0xFF) total: 2283 errors
C2 in sector:  18 first at byte:    6 (0x02) total:   79 errors
C2 in sector:  19 first at byte:    0 (0xFF) total: 2275 errors
C2 in sector:  20 first at byte:    6 (0x02) total:   73 errors
C2 in sector:  21 first at byte:    0 (0xFF) total: 2274 errors
C2 in sector:  22 first at byte:    6 (0x02) total:   76 errors
C2 in sector:  23 first at byte:    0 (0xFF) total: 2267 errors
C2 in sector:  24 first at byte:    6 (0x02) total:   17 errors
C2 in sector:  25 first at byte:    0 (0xFF) total: 2274 errors
C2 in sector:  26 first at byte:    2 (0x2E) total:  929 errors
C2 in sector:  27 first at byte:    0 (0xFF) total: 2069 errors
C2 in sector:  28 first at byte:    6 (0x02) total:   63 errors
C2 in sector:  29 first at byte:    0 (0xFF) total: 2267 errors
C2 in sector:  30 first at byte:    6 (0x02) total:   59 errors
C2 in sector:  31 first at byte:    0 (0xFF) total: 2261 errors
C2 in sector:  32 first at byte:    6 (0x02) total:   56 errors
C2 in sector:  33 first at byte:    0 (0xFF) total: 2259 errors
C2 in sector:  34 first at byte:   19 (0x10) total:   57 errors
C2 in sector:  35 first at byte:    0 (0xFF) total: 2254 errors

$ readcd  dev=0,1,0 -f /dev/null -c2scan        # This is the Plextor CDRW
Capacity: 274517 Blocks = 549034 kBytes = 536 MBytes = 562 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (0,1,0) disk to file '/dev/null'
end:    274517
addr:        0 cnt: 99
addr:       99 cnt: 99
addr:      198 cnt: 99
addr:      297 cnt: 99
addr:      396 cnt: 99
-------------------------------------------------------------------------------

Here is the result of an cdrecord verbose inquiry of both drives. Does this
stuff shed any light on what Aopen drive does wrong?

$ cdrecord dev=0,0 -inq -vvVV
Cdrecord 1.11a15 (i586-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
Using libscg transport code version 'schily-scsi-linux-sg.c-1.69'
atapi: 1

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.004s timeout 40s

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.005s timeout 40s

Executing 'inquiry' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  12 00 00 00 24 00
cmd finished after 0.000s timeout 40s
Got 36 (0x24), expecting 36 (0x24) bytes of data.
Received Data:  05 80 00 01 1F 00 00 00 45 2D 49 44 45 20 20 20 43 44 2D 52 4F 4D 20 
35 36 58 2F 41 4B 48 20 20 41 38 30 20
Inquiry Data   : 05 80 00 01 1F 00 00 00 45 2D 49 44 45 20 20 20 43 44 2D 52 4F 4D 20 
35 36 58 2F 41 4B 48 20 20 41 38 30 20
Inquiry Data   : ........E-IDE   CD-ROM 56X/AKH  A80 

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  5A 00 3F 00 00 00 00 00 08 00
cmd finished after 0.003s timeout 40s
Got 8 (0x8), expecting 8 (0x8) bytes of data.
Received Data:  00 06 70 00 00 00 00 00
Mode Sense Data 00 06 70 00 00 00 00 00

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 02 00
cmd finished after 0.002s timeout 40s
Got 2 (0x2), expecting 2 (0x2) bytes of data.
Received Data:  00 00
Mode Sense Data 00 00
Mode Sense Data (converted) 00

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 02 00
cmd finished after 0.002s timeout 40s
Got 2 (0x2), expecting 2 (0x2) bytes of data.
Received Data:  00 00
Mode Sense Data 00 00
Mode Sense Data (converted) 00
Mode Sense Data 00
Mode Page  Data 00 00

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 0A 00
cmd finished after 0.002s timeout 40s
Got 10 (0xA), expecting 10 (0xA) bytes of data.
Received Data:  00 08 70 00 00 00 00 00 2A 10
Mode Sense Data 00 08 70 00 00 00 00 00 2A 10
Mode Sense Data (converted) 05 70 00 00 2A 10

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 0A 00
cmd finished after 0.002s timeout 40s
Got 10 (0xA), expecting 10 (0xA) bytes of data.
Received Data:  00 08 70 00 00 00 00 00 2A 10
Mode Sense Data 00 08 70 00 00 00 00 00 2A 10
Mode Sense Data (converted) 05 70 00 00 2A 10
Mode Sense Data 05 70 00 00 2A 10
Mode Page  Data 2A 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cdrecord: Warning: controller returns wrong size for CD capabilities page.

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 1A 00
cmd finished after 0.002s timeout 40s
Got 26 (0x1A), expecting 26 (0x1A) bytes of data.
Received Data:  00 18 70 00 00 00 00 00 2A 10 07 00 71 03 29 03 23 C0 00 02 00 C0 23 
C0 00 10
Mode Sense Data 00 18 70 00 00 00 00 00 2A 10 07 00 71 03 29 03 23 C0 00 02 00 C0 23 
C0 00 10
Mode Sense Data (converted) 15 70 00 00 2A 10 07 00 71 03 29 03 23 C0 00 02 00 C0 23 
C0 00 10
Mode Sense Data 15 70 00 00 2A 10 07 00 71 03 29 03 23 C0 00 02 00 C0 23 C0 00 10

Executing 'test unit ready' command on Bus 0 Target 0, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cdrecord: Input/output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 40s
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'E-IDE   '
Identifikation : 'CD-ROM 56X/AKH  '
Revision       : 'A80 '
Device seems to be: Generic mmc CD-ROM.

$ cdrecord dev=0,0 -inq -vvVV
Cdrecord 1.11a15 (i586-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '1,0'
scsibus: 0 target: 1 lun: 0
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
Using libscg transport code version 'schily-scsi-linux-sg.c-1.69'
atapi: 1

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.025s timeout 40s

Executing 'inquiry' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  12 00 00 00 24 00
cmd finished after 0.000s timeout 40s
Got 36 (0x24), expecting 36 (0x24) bytes of data.
Received Data:  05 80 00 21 5B 00 00 00 50 4C 45 58 54 4F 52 20 43 44 2D 52 20 20 20 
50 58 2D 57 31 32 31 30 41 31 2E 30 31
Inquiry Data   : 05 80 00 21 5B 00 00 00 50 4C 45 58 54 4F 52 20 43 44 2D 52 20 20 20 
50 58 2D 57 31 32 31 30 41 31 2E 30 31

Executing 'inquiry' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  12 00 00 00 60 00
cmd finished after 0.000s timeout 40s
Got 96 (0x60), expecting 96 (0x60) bytes of data.
Received Data:  05 80 00 21 5B 00 00 00 50 4C 45 58 54 4F 52 20 43 44 2D 52 20
20 20 50 58 2D 57 31 32 31 30 41 31 2E 30 31 30 36 2F 30 39 2F 30 30 20 20 32
32 3A 30 30 20 20 20 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Inquiry
Data   : 05 80 00 21 5B 00 00 00 50 4C 45 58 54 4F 52 20 43 44 2D 52 20 20 20
50 58 2D 57 31 32 31 30 41 31 2E 30 31 30 36 2F 30 39 2F 30 30 20 20 32 32 3A
30 30 20 20 20 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Inquiry Data   : ...![...PLEXTOR CD-R   PX-W1210A1.0106/09/00  22:00     
........................................

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  5A 00 3F 00 00 00 00 00 08 00
cmd finished after 0.001s timeout 40s
Got 8 (0x8), expecting 8 (0x8) bytes of data.
Received Data:  00 94 00 00 00 00 00 00
Mode Sense Data 00 94 00 00 00 00 00 00

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 02 00
cmd finished after 0.000s timeout 40s
Got 2 (0x2), expecting 2 (0x2) bytes of data.
Received Data:  00 1C
Mode Sense Data 00 1C
Mode Sense Data (converted) 19

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 1E 00
cmd finished after 0.000s timeout 40s
Got 30 (0x1E), expecting 30 (0x1E) bytes of data.
Received Data:  00 1C 00 00 00 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 
0D 00 00 08 45 08 45
Mode Sense Data 00 1C 00 00 00 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 
0D 00 00 08 45 08 45
Mode Sense Data (converted) 19 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 
0D 00 00 08 45 08 45
Mode Sense Data 19 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 0D 00 00 08 
45 08 45
Mode Page  Data 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 0D 00 00 08 45 08 45

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s

Executing 'mode sense g1' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  5A 00 2A 00 00 00 00 00 1E 00
cmd finished after 0.000s timeout 40s
Got 30 (0x1E), expecting 30 (0x1E) bytes of data.
Received Data:  00 1C 00 00 00 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 
0D 00 00 08 45 08 45
Mode Sense Data 00 1C 00 00 00 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 
0D 00 00 08 45 08 45
Mode Sense Data (converted) 19 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 
0D 00 00 08 45 08 45
Mode Sense Data 19 00 00 00 2A 14 07 07 F3 6F 29 23 16 0D 01 00 08 00 16 0D 00 00 08 
45 08 45

Executing 'test unit ready' command on Bus 0 Target 1, Lun 0 timeout 40s
CDB:  00 00 00 00 00 00
cmd finished after 0.000s timeout 40s
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'PLEXTOR '
Identifikation : 'CD-R   PX-W1210A'
Revision       : '1.01'
Device seems to be: Generic mmc CD-RW.
-------------------------------------------------------------------------------

Finally, here are some selected bits from dmesg,

Linux version 2.4.19 (root@mklab) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 
release)) #3 Fri Nov 1 20:02:01 GMT 2002
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ALI15X3: IDE controller on PCI bus 00 dev 78
PCI: Assigned IRQ 10 for device 00:0f.0
ALI15X3: chipset revision 32
ALI15X3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x2400-0x2407, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0x2408-0x240f, BIOS settings: hdc:DMA, hdd:DMA
hdb: CD-ROM 56X/AKH, ATAPI CD/DVD-ROM drive
hdd: PLEXTOR CD-R PX-W1210A, ATAPI CD/DVD-ROM drive
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: E-IDE     Model: CD-ROM 56X/AKH    Rev: A80 
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: PLEXTOR   Model: CD-R   PX-W1210A  Rev: 1.01
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 24x/52x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray

I followed up Jorg's suggestion of firmware updates for the Aopen but there
appear to be none for that drive. Any suggestions for a workaround to force
readcd to read only the true data/2048 sector-size?

Thanks
Tom.

-- 
Tom Crane, Dept. Physics, Royal Holloway, University of London, Egham Hill,
Egham, Surrey, TW20 0EX, England. 
Email:  [EMAIL PROTECTED]
SPAN:   19.875
Fax:    +44 (0) 1784 472794


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to