From owner-freebsd-current Sat Feb 13 19:54:54 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA13936 for freebsd-current-outgoing; Sat, 13 Feb 1999 19:54:54 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA13929 for ; Sat, 13 Feb 1999 19:54:52 -0800 (PST) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.2/8.8.5) id UAA47834; Sat, 13 Feb 1999 20:54:45 -0700 (MST) From: "Kenneth D. Merry" Message-Id: <199902140354.UAA47834@panzer.plutotech.com> Subject: Re: CDR says: Attempt to query device size failed... In-Reply-To: <199902140013.BAA01841@daneel.stuyts.nl> from Ben Stuyts at "Feb 14, 1999 1:13:22 am" To: ben@stuyts.nl Date: Sat, 13 Feb 1999 20:54:45 -0700 (MST) Cc: blammo@home.com, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ben Stuyts wrote... > On Sat, 13 Feb 1999, "Chris D. Faulhaber" wrote: > > > Interesting, this happens to both my CDR and regular CD: > > > > cd0 at ahc0 bus 0 target 3 lun 0 > > cd0: Removable CD-ROM SCSI-2 device > > cd0: 10.0MB/s transfers (10.0MHz, offset 15) > > cd0: Attempt to query device size failed: NOT READY, Medium not present > > cd1 at ahc0 bus 0 target 5 lun 0 > > cd1: Removable CD-ROM SCSI-2 device > > cd1: 3.300MB/s transfers > > cd1: Attempt to query device size failed: NOT READY, Logical unit not ready, > > cause not reportable > > > > It may simply be the way the different devices report that the device is not > > ready/no medium present in the sense data... > > ...if no one else has any good ideas, I may just get a trace of the bus this > > evening and see exactly what is being reported (and when). > > Thanks, just let me know if I can do anything to help. I've just remade world > and kernel, and here's the latest data from both my drives I get with boot > -v: There's really nothing to look into or trace. This is a well known problem with Philips/HP CD-R's. They bogusly report "logical unit not ready" when no CD is in the drive. Most CDROM drives report "medium not present". i.e., this is all normal, your drives aren't broken. > (cd0:ahc0:0:4:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (cd0:ahc0:0:4:0): NOT READY asc:3a,0 > (cd0:ahc0:0:4:0): Medium not present > cd0 at ahc0 bus 0 target 4 lun 0 > cd0: Removable CD-ROM SCSI-2 device > cd0: 10.0MB/s transfers (10.0MHz, offset 15) > cd0: Attempt to query device size failed: NOT READY, Medium not present > ... > (cd1:ahc0:0:5:0): READ CD RECORDED CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (cd1:ahc0:0:5:0): NOT READY asc:4,0 > (cd1:ahc0:0:5:0): Logical unit not ready, cause not reportable > cd1 at ahc0 bus 0 target 5 lun 0 > cd1: Removable CD-ROM SCSI-2 device > cd1: 3.300MB/s transfers > cd1: Attempt to query device size failed: NOT READY, Logical unit not ready, > cause not reportable > > >From this you can see that both drives report differently that the tray is > empty. "Medium not present" sounds less of a problem than "... cause not > reportable". Also, cd0 status is shown immediately on booting, while cd1 > status takes about a minute or so to appear. The fact that the Philips/HP CD-R's take a long time to report the fact that they have no media is also known. For some reason, it takes the drives up to 20 seconds to respond to a read capacity when they're empty. We then retry the read command, which takes up to another 20 seconds. If you want the probe message to appear quicker, leave a CD in the drive. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message