From owner-freebsd-questions@FreeBSD.ORG Fri Jun 22 06:27:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38881106566C; Fri, 22 Jun 2012 06:27:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 602BF8FC17; Fri, 22 Jun 2012 06:27:46 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 290061533; Fri, 22 Jun 2012 08:22:39 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Fri, 22 Jun 2012 08:22:19 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <4FE40A42.6010503@zedat.fu-berlin.de> In-Reply-To: <4FE40A42.6010503@zedat.fu-berlin.de> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201206220822.19486.hselasky@c2i.net> Cc: "O. Hartmann" , freebsd-questions@freebsd.org Subject: Re: USB system: FreeBSD 9-STABLE and 10-CURRENT do not recognize 64GB USB drive while Linux and Windows do X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 06:27:47 -0000 On Friday 22 June 2012 08:01:38 O. Hartmann wrote: > I have a USB drive/stick, Lexar USB Flash drive as reported by FreeBSD > shown below. > When first used, I was able to put approx. 30 GB of data on it - it was > visible to FreeBSD 9 and 10 as expected. > A Linux system at the lab was also capable of recognizing it. After > that, I tried to operate on the stick on a Notebook, FreeBSD 9, and > another station, FreeBSD 10. But FreeBSD didn't recognize the USB drive > anymore - sometimes, but this seems to be a gambling issue :-( > > Trying Linux on different hardware platforms and even those machines > prior not recognizing the USB drive do recognize the drive as Lexar USB > Flash drive with 64GB. That is Suse Linux (some 12.XX), that is Ubuntu > 12.04, that is Windows 7 Pro/x64. I can format the drive, I can push and > pull data from it. > > So, since the USB drive won't work with three different FreeBSD boxes > (one running 9-STABLE, two 10-CURRENT, all systems most recent sources > and buildworld from a day ago). > I suspect either a weird configuration issue I use on all platforms in > questions in common triggering the weird beviour - or FreeBSD is simply > incapable of handling the 64GB drive. I do not have issues with USB > drives with capacities of 32, 8 or 4 GB of different brands. > > As shown in the portion of the dmesg below, the USB drive is recognized > physically. It doesn't matter whether USB port I use (I tried all > available on all boxes and in most cases I use a Dell UltraSharp powered > in-screen HUB). Since other OSes handle the drive as expected, I exclude > hardware issues. > > All FreeBSD in common is the fact I use the new device ahaci/device ata > CAM/ATA scheme with devcie scbus in the kernel (I use custom kernels!). > > Apart from trying a GENERIC kernel (which is next I will do this > weekend), does anyone have similar experiences and probably solutions? > > Regards, > oh > > ugen7.6: at usbus7 > umass1: on > usbus7 (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 0 0 0 24 0 > (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim1:1:0:0): Retrying command > (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 0 0 0 24 0 > (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim1:1:0:0): Retrying command > (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 0 0 0 24 0 > (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim1:1:0:0): Retrying command > (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 0 0 0 24 0 > (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim1:1:0:0): Retrying command > (probe0:umass-sim1:1:0:0): INQUIRY. CDB: 12 0 0 0 24 0 > (probe0:umass-sim1:1:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim1:1:0:0): Error 5, Retries exhausted Hi, After plugging the device, try: usbconfig -d 7.6 add_quirk UQ_MSC_NO_INQUIRY Then re-plug it. I'm sorry to say a lot of USB flash sticks out there are broken and only tested with the timing of MS Windows. Part of the problem is that it is difficult to autodetect these issues, because once you trigger the non- supported SCSI command, then the flash key stops working like you experience. I would be more than glad to open up an office to certify USB devices for use with FreeBSD :-) --HPS