From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 20:13:31 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8B6C106564A for ; Thu, 9 Apr 2009 20:13:31 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id B0E3F8FC0A for ; Thu, 9 Apr 2009 20:13:31 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id n39KDVQa076595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 9 Apr 2009 13:13:31 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id n39KDVCo076594; Thu, 9 Apr 2009 13:13:31 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA00911; Thu, 9 Apr 09 12:49:17 PDT Date: Thu, 09 Apr 2009 12:47:23 -0700 From: perryh@pluto.rain.com To: rsmith@xs4all.nl Message-Id: <49de50cb.gcYrr9F1eSmdUBu9%perryh@pluto.rain.com> References: <49de2c9a.QlCBOleCO/iBrMcf%perryh@pluto.rain.com> <20090409181009.GA38361@slackbox.xs4all.nl> In-Reply-To: <20090409181009.GA38361@slackbox.xs4all.nl> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: USB SD-card reader recognized, but not working, on 6.1 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: Thu, 09 Apr 2009 20:13:32 -0000 Roland Smith wrote: > Are you sure that the drive isn't partitioned? In other words, > if you plug in the drive, and you give the command 'ls /dev/da0*', > do you only get /dev/da0 or perhaps also /dev/da0s1? If it is > partitioned, try /dev/da0s? instead. It's an SD card, not a "drive", so I had not expected it to be partitioned; but yes, it is: $ ls -l /dev/da0* crw-r----- 1 root operator 0, 244 Feb 14 15:09 /dev/da0 crw-r----- 1 root operator 0, 245 Feb 14 15:09 /dev/da0s1 > Second, does the user running mtools have read and write access > to the device? Read-only, which should be sufficient for mdir. The card is, deliberately, write-protected. After reconfiguring mtools to read from /dev/da0s1, I started getting those umass0: BBB bulk-in clear stall failed, TIMEOUT messages again, but I can read it a sector at a time using dd: $ dd if=/dev/da0 of=~/sd bs=1b That's been running for something like 45 minutes now, and based on the size of the output file it has read about a tenth of the card. It looks as if the problem arises only when attempting to read larger blocks. (I haven't tried to find out how much larger.) > Have you tried just mounting the card reader? No, because I'd expect to panic the system if it is not in fact a valid (and readable) FAT filesystem. Mtools seems much safer.