From owner-freebsd-current@FreeBSD.ORG Sun Oct 12 15:02:36 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0AF116A4B3; Sun, 12 Oct 2003 15:02:36 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FF7C43F75; Sun, 12 Oct 2003 15:02:35 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.9/8.12.5) with ESMTP id h9CM2V64020983; Sun, 12 Oct 2003 16:02:31 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.9/8.12.5/Submit) id h9CM2VI4020982; Sun, 12 Oct 2003 16:02:31 -0600 (MDT) (envelope-from ken) Date: Sun, 12 Oct 2003 16:02:31 -0600 From: "Kenneth D. Merry" To: Steve Kargl Message-ID: <20031012220230.GA20939@panzer.kdm.org> References: <20031012172654.GA40529@troutmask.apl.washington.edu> <20031012205150.GA20611@panzer.kdm.org> <20031012212938.GA41887@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031012212938.GA41887@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: cd0 errors during probe? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Oct 2003 22:02:37 -0000 On Sun, Oct 12, 2003 at 14:29:38 -0700, Steve Kargl wrote: > On Sun, Oct 12, 2003 at 02:51:50PM -0600, Kenneth D. Merry wrote: > > On Sun, Oct 12, 2003 at 10:26:54 -0700, Steve Kargl wrote: > > > Can I assume that the following error messages are > > > erronous because cd0 appears to function without > > > any problems? There is a CD in the drive. > > > > > > cd0 at ahc0 bus 0 target 4 lun 0 > > > cd0: Removable CD-ROM SCSI-2 device > > > cd0: 10.000MB/s transfers (10.000MHz, offset 15) > > > cd0: cd present [129875 x 2048 byte records] > > > (cd0:ahc0:0:4:0): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0 > > > (cd0:ahc0:0:4:0): CAM Status: SCSI Status Error > > > (cd0:ahc0:0:4:0): SCSI Status: Check Condition > > > (cd0:ahc0:0:4:0): BLANK CHECK asc:64,0 > > > (cd0:ahc0:0:4:0): Illegal mode for this track > > > (cd0:ahc0:0:4:0): Retrying Command (per Sense Data) > > > > Looks like GEOM is trying to read the first sector of the CD, but since > > it's likely an audio CD, it doesn't quite work. > > > > Yes, it is an audio CD. I suspected that it was a > transient GEOM/CAM issue, but wanted to make sure > before I needlessly replaced the cdrom drive. There's nothing wrong with your drive, most likely. I suppose it plays audio CDs and reads data CDs okay? If so, it's nothing to worry about. Back when the cd(4) driver used the old slice code, it had a function, cdfirsttrackisdata(), that figured out whether the first track was an audio or data track. It would set the flags in the disk structure accordingly to tell the slice code whether or not to attempt to read a disklabel from the CD. The code in -stable still works that way. My guess is that we need something similar again to tell GEOM not to attempt to read the first sector of the CD when it's not a data CD. Ken -- Kenneth Merry ken@kdm.org