>From: [EMAIL PROTECTED] (Tom Crane)

>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

Reading your report again gives the following results:

-       Your CD drive returns an invalid sector size of 2352 bytes.

-       As Linux does not support DMA residual counts in the kernel, readcd 
        cannot detect the problem and is most likely writing a file that
        is made of many chunks with the following layout:

        | n * 2048 bytes of data| .... ->  n * (2352 - 2048) bytes of nulls |

Jörg

 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]               (uni)  If you don't have iso-8859-1
       [EMAIL PROTECTED]           (work) chars I am J"org Schilling
 URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix


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

Reply via email to