From owner-freebsd-stable@FreeBSD.ORG Wed Nov 18 11:54:17 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAA60106566C for ; Wed, 18 Nov 2009 11:54:17 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by mx1.freebsd.org (Postfix) with ESMTP id 954BC8FC0A for ; Wed, 18 Nov 2009 11:54:17 +0000 (UTC) Received: from OMTA22.westchester.pa.mail.comcast.net ([76.96.62.73]) by QMTA06.westchester.pa.mail.comcast.net with comcast id 6bAU1d0051ap0As56bsKoD; Wed, 18 Nov 2009 11:52:19 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by OMTA22.westchester.pa.mail.comcast.net with comcast id 6byJ1d0033S48mS3ibyJHU; Wed, 18 Nov 2009 11:58:18 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 597971E3035; Wed, 18 Nov 2009 03:52:18 -0800 (PST) Date: Wed, 18 Nov 2009 03:52:18 -0800 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20091118115218.GB9172@icarus.home.lan> References: <200911181213.34112.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200911181213.34112.hselasky@c2i.net> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: 8.0-RC3 USB lock up on mounting two partitions from one USB drive X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 11:54:18 -0000 On Wed, Nov 18, 2009 at 12:13:32PM +0100, Hans Petter Selasky wrote: > I'm not sure if this is an USB issue or not. If you get READ/WRITE errors and > the drive simply dies then it might be the case. Else it is a system issue. The OP should be able to use smartmontools to obtain SMART stats from the SATA drive within the USB enclosure. The command will be somewhat funky, given that the drive is ATA but is mapped through CAM on FreeBSD and appears as a daX disk. I believe the following should work, but I have no way to test: smartctl --device=ata -a /dev/da0 You should check your console logs (dmesg) before and after running this command, as there may be sense key errors from CAM which can help determine if SMART is passed through or not. There's mention in the smartctl man page of a device type called "sat" which is an ATA<->SCSI emulation layer, but I believe it's the Linux equivalent of our CAM. Recent (in the past ~24 hours) commits to the RELENG_8 branch might provide native capability for smartctl to work without the --type argument, since mav@ has been improving the CAM layer to work with ATA disks. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |