public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ramón Rey Vicente" <ramon.rey@hispalinux.es>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [2.6.0-test9-mm2] Error trying to read a cdrom disc
Date: Tue, 11 Nov 2003 19:22:49 +0100	[thread overview]
Message-ID: <1068574968.1450.6.camel@debian> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2244 bytes --]

Hi.

This problem appears in 2.6.0-test9-mm2 and 2.6.0-test9-bk16.

The issue is: my cdrom drive is on the secondary ide controller as
slave. I try to read the cdrom disc with two different ATAPI cdrom
drives (a Sansung drive and other ATAPI compatible drive) and in both
cases as slave of the secondary ide controller.

The problem appears trying to copy de contents of the cdrom disc to an
iso image in the hard disk.

With this command:

cat /dev/hdd > knoppix-es.iso

..and with this:

cp /dev/hdd knoppix-es.iso

and this other command:

dd if=/dev/hdd of=knoppix-es.iso

... generate the same error than this, a problem with DMA, because the
drive is trying to access to a wrong part of the cdrom, because the
information the driver is reporting to the programs is not the correct
info about the media sizes of the cdroms discs in the drives connected
as slave of the secondary ide controller:

readcd dev=/dev/hdd f=knoppix-es.iso
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
readcd: Warning: controller returns wrong size for CD capabilities page.
Read  speed:  2112 kB/s (CD  12x, DVD  1x).
Write speed:     0 kB/s (CD   0x, DVD  0x).
Capacity: 345646 Blocks = 691292 kBytes = 675 MBytes = 707 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (0,0,0) disk to file 'knoppix-es.iso'
end:    345646
readcd: Success. read_g1: scsi sendcmd: no error
CDB:  28 00 00 05 46 12 00 00 1C 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 64 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0
Sense flags: Blk 0 (not valid) 
resid: 57344
cmd finished after 11.709s timeout 40s
readcd: Success. Cannot read source disk
readcd: Retrying from sector 345618

With my LG cdwriter (as master of the secondary ide controller) there is
no problem.
-- 
Ramón Rey Vicente       <ramon dot rey at hispalinux dot es>
        jabber ID       <rreylinux at jabber dot org>
GPG public key ID 	0xBEBD71D5 -> http://pgp.escomposlinux.org/

[-- Attachment #1.2: via_controller --]
[-- Type: text/plain, Size: 0 bytes --]



[-- Attachment #1.3: ide_drivers --]
[-- Type: text/plain, Size: 51 bytes --]

ide-cdrom version 4.59-ac1
ide-disk version 1.18

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2003-11-11 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11 18:22 Ramón Rey Vicente [this message]
2003-11-11 18:24 ` [2.6.0-test9-mm2] Error trying to read a cdrom disc Ramón Rey Vicente

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1068574968.1450.6.camel@debian \
    --to=ramon.rey@hispalinux.es \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox