Re: cdrom data 2.2.14pre4 ?

Jens Axboe (axboe@image.dk)
Tue, 9 Nov 1999 00:48:34 +0100


On Mon, Nov 08 1999, roel@grobbebol.xs4all.nl wrote:
>
> a question. I tried to copy a reasonable large file to a jazdisk from cdrom.
> this file, approx 570 MB insize can't be copied by linux.
>
> 'cp' reports :
>
> avseq01.dat: file: read failed (Input/output error).
>
> and the messages in the logs :
>
> [....]
> Nov 8 22:47:12 grobbebol kernel: Error: Illegal request -- (Sense key=0x05)
> Nov 8 22:47:12 grobbebol kernel: Illegal mode for this track or incompatible medium -- (asc=0x64, ascq=0x00)
> Nov 8 22:47:12 grobbebol kernel: hdc: command error: status=0x51 {DriveReady SeekComplete Error }
> Nov 8 22:47:12 grobbebol kernel: hdc: command error: error=0x54
> Nov 8 22:47:12 grobbebol kernel: end_request: I/O error, dev 16:00 (hdc), sector 3288
> Nov 8 22:47:12 grobbebol kernel: ATAPI device hdc:
> Nov 8 22:47:12 grobbebol kernel: Error: Illegal request -- (Sense key=0x05)
> Nov 8 22:47:12 grobbebol kernel: Illegal mode for this track or incompatible medium -- (asc=0x64, ascq=0x00)
> Nov 8 22:47:12 grobbebol kernel: hdc: command error: status=0x51 {DriveReady SeekComplete Error }
> Nov 8 22:47:12 grobbebol kernel: hdc: command error: error=0x54
> Nov 8 22:47:12 grobbebol kernel: end_request: I/O error, dev 16:00 (hdc), sector 3292
> [....]
>
> I ftp'd the file from another computer running windows to my system and
> then, the file was OK of course. FWIW, it's :
>
> /mnt/AVSEQ01.DAT: RIFF (little-endian) data
>
> also note that the windows computer als contains linux kernel 2.2.13 and is
> not able to read the data either. so under windows it can read the file,
> under linux, it can't.
>
> did I do something elementary wrong or is it a bug ?

That sounds like you are trying to copy data from a CDi / Video CD.
In Linux that is only supported by using an ioctl to grab the data,
since we can't use ordinary reads to get to the data. Comparable
to CDDA. This is why you get the above error message.

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/