Dear All,
        I have the following problem with readcd: Using the command,

$ readcd  -vv dev=0,0,0 -f /tmp/test2.raw
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
Capacity: 181489 Blocks = 416857 kBytes = 407 MBytes = 426 prMB
Sectorsize: 2352 Bytes
Copy from SCSI (0,0,0) disk to file '/tmp/test2.raw'
end:    181489
addr:   181489 cnt: 411
Time total: 593.027sec
Read 416857.55 kB at 702.9 kB/sec.

generates the file,
-rw-r--r--   1 root     users    426862128 Oct 30 20:10 test2.raw

However, the image is corrupt. The source CD (actually a CDR) is OK and
repeated applications of readcd give the same written image. 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

This image is good, mounting it together with the source CD and doing 'diff -r'
on the two FSs gives no difference.

The CDROM drive is an AOPEN 56 speed device, as follows,

$ cdrecord -inq dev=0,0
Cdrecord 1.11a15 (i586-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
Using libscg version 'schily-0.5'
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.

Some information on the source CD,

$ isoinfo -i /dev/cdrom -d
CD-ROM is in ISO 9660 format
System id: 
Volume id: TESTVOL26
Volume set id: 
Publisher id: 
Data preparer id: 
Application id: 
Copyright File id: 
Abstract File id: 
Bibliographic File id: 
Volume set size is: 1
Volume set seqence number is: 1
           ^^^^^^^---------------- Note to Jorg: You have a trivial typo here
Logical block size is: 2048
Volume size is: 181478
NO Joliet present
NO Rock Ridge present


Any ideas?
Regards.
Tom Crane.

Ps. System is Linux-2.4.19.

Ps2. Since doing the above tests. I have tried a couple more tests:-
(1) Reading another CD (a 'proper' factory pressed one this time). Again readcd
gives a significantly larger file containing a corrupt image.

(2) Using the machine's other drive (a Plextor CDwriter) gives identical and
non corrupt images via both dd and readcd. Is the answer probably bad AOpen
firmware? :-(. If so, is there a workaround? I'd rather not have to change the
frontend my users use (KOnCD), to use dd. In any case this is nasty, if it
were to be tried on a multi session CD...

-- 
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