From owner-freebsd-current@FreeBSD.ORG Sat Feb 5 14:34:58 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D700E106566B; Sat, 5 Feb 2011 14:34:58 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 30E278FC0A; Sat, 5 Feb 2011 14:34:57 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=oR3+9dOmPeF3nZCt5Gxyvf/bIpfj8bfjGZkkfp/xES8= c=1 sm=1 a=WcA_fa_ncYIA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=ER98RPfIXSISJdvxwcgA:9 a=A4aNffh1GC-tWTbeDdAA:7 a=mT1F-BN7ngzUxjGW9nBJXF43n_AA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 83912922; Sat, 05 Feb 2011 15:34:55 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, freebsd-current@freebsd.org Date: Sat, 5 Feb 2011 15:34:54 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102051534.54590.hselasky@c2i.net> Cc: Donald Allen Subject: Re: Intermittent pauses copying from one usb drive to another X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 05 Feb 2011 14:34:58 -0000 On Saturday 05 February 2011 14:27:56 Donald Allen wrote: > I've discussed problems with FreeBSD and usb sata drives on this list > in the past (as recently as last September), and have given up on > FreeBSD as a result of the usb disk problems (I do my backups with usb > drives) and other usb-related issues. But I've now replaced the usb > enclosures I was using at that time and have acquired some Toshiba usb > drives, so with this new equipment, I thought I'd give FreeBSD another > try, since generally I prefer it to Linux. But I'm having problems > again. > > Plugging in the Toshiba drives produces entries like this in > /var/log/message: Hi, Errors happen because the USB firmware of your USB hardware does not support all the SCSI commands issued by the CAM/SCSI layer. This is a well known problem. Probably Linux is better at filtering the SCSI commands passed to the various devices. Proof: I have a custom USB test software suite actually running under FreeBSD which can stress test mass storage devices. So far very few USB mass storage devices I've seen pass all the tests and recover properly. Most disks/memory sticks simply die at the first non-supported SCSI command and/or error scenario even though the SCSI and USB mass storage wrapper for SCSI commands define error codes to be returned in case of failure. Contact me off-list if you are interested in this. Solution: USB mass storage devices needs to be crippled down to a few SCSI commands like READ_12 and WRITE_12. This is not a USB problem. It needs to be done in the CAM/SCSI layer. What you can do: Ask the vendor to test their USB devices with FreeBSD 8.2 before shipping. --HPS