From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 24 16:29:54 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76E5416A401 for ; Tue, 24 Apr 2007 16:29:54 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.freebsd.org (Postfix) with ESMTP id 3278913C43E for ; Tue, 24 Apr 2007 16:29:54 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so2097012wra for ; Tue, 24 Apr 2007 09:29:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FwzpZv8CyZ9AcmfDq4jllzNDG1kQ8bzMcVcT/UsvUrSUu1jaX/6iN6gL27uKbP20lEbUt6s6+DSQby4YnmMRogkPVHmtwtNt6kqIE4lUT27uaPvmzHQ+6sCj9oUofmb9Vz/z0Um+GGTXJUjWdVGj9UGwUwH4lU+mij0KN3GmV7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HbCAwOCx6I+1PAODKwyPNHKS/yX3PG1b3nnnq4Z0NjHTzmEutDflc/SJyIGcXetW1tTYzYgxFs6cXPudKbjWojaYvnRHuC1grBrGWZsaCxEb+f8+JW4w+HwNQNtmBGuUo26P93Qp/b3H5YP4ayF+KowoWLE190xoLXoUkfZFpfE= Received: by 10.90.56.14 with SMTP id e14mr6289344aga.1177432193558; Tue, 24 Apr 2007 09:29:53 -0700 (PDT) Received: by 10.100.231.9 with HTTP; Tue, 24 Apr 2007 09:29:53 -0700 (PDT) Message-ID: <8cb6106e0704240929j38178df6k1b6391446c69a2ae@mail.gmail.com> Date: Tue, 24 Apr 2007 09:29:53 -0700 From: "Josh Carroll" To: "Thomas Quinot" In-Reply-To: <20070424162008.GA7087@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070326180018.GA23771@melamine.cuivre.fr.eu.org> <8cb6106e0703261318o120c620ar6b2461802632fc01@mail.gmail.com> <8cb6106e0703262119g5a9afd4m2c3d5665c85c4969@mail.gmail.com> <4608A35E.3010404@samsco.org> <8cb6106e0703262157m7fd0ae96p3bb5368af797dc6b@mail.gmail.com> <460AA9E3.4030106@samsco.org> <8cb6106e0703281531k4c5bebecp5566c64c8f458a74@mail.gmail.com> <8cb6106e0704030039if46397fvfc993d9c9e19e1fc@mail.gmail.com> <8cb6106e0704032107w457026b1t1e04ed11008af48a@mail.gmail.com> <20070424162008.GA7087@melamine.cuivre.fr.eu.org> Cc: freebsd-scsi@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/103602: drive gets wedged on READ CD CAPACITY if no disc is in X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 16:29:54 -0000 > Here's what I observe here, first with no disk in the drive (the > important item is sk=02, NOT READY), second with a disk in the drive. Here is my output (first with no disk, second with). I see sk=02 here as well: % ./readcap /dev/acd0 ioctl returned error 5 Input/output error Sense data: error=70 sk=02 asc=3a ascq=00 % ./readcap /dev/acd0 ioctl returned error 0 Unknown error: 0 Sense data: error=00 sk=00 asc=00 ascq=00 LBA of last sector in last session: 185805 Sector size: 2048 So it looks like directly talking to the ATAPI layer works ok here as well. At least, my results look the same as yours. > > Interestingly, the sg_vpd command fails to read the serial # as well, > > so that is definitely a known bug with this drive I think. Here is the > > sg_vpd output on Knoppix: > > OK, so ultimately we might need to include this quirk anyway. We'll see. I was able to boot into Windows XP and run sg_vpd in there as well, and it also fails to read the serial number. Just some additional info on that. :) Thanks, Josh