From owner-freebsd-questions@FreeBSD.ORG Fri Apr 10 03:13:16 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 22B1B106566B for ; Fri, 10 Apr 2009 03:13:16 +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 F0A9A8FC0C for ; Fri, 10 Apr 2009 03:13:15 +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 n3A3DFWk030632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 9 Apr 2009 20:13:15 -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 n3A3DFSe030631; Thu, 9 Apr 2009 20:13:15 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA01895; Thu, 9 Apr 09 20:03:24 PDT Date: Thu, 09 Apr 2009 20:01:29 -0700 From: perryh@pluto.rain.com To: rsmith@xs4all.nl Message-Id: <49deb689.wo7pGx8gH2CQTOPa%perryh@pluto.rain.com> References: <49de2c9a.QlCBOleCO/iBrMcf%perryh@pluto.rain.com> <20090409181009.GA38361@slackbox.xs4all.nl> <49de50cb.gcYrr9F1eSmdUBu9%perryh@pluto.rain.com> <20090409222047.GA44772@slackbox.xs4all.nl> In-Reply-To: <20090409222047.GA44772@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: Fri, 10 Apr 2009 03:13:16 -0000 Roland Smith wrote: > On Thu, Apr 09, 2009 at 12:47:23PM -0700, perryh@pluto.rain.com wrote: > > 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 > > That would suggest that there is a filesystem on there, doesn't it? It would certainly suggest there is a DOS "partition" table aka BSD "slice" table. I don't think it says anything about what the slice contains, however. > > $ 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. > > Reading one byte at a time is bound to be slow. "dd bs=1b" is one block (512 bytes), not one byte. At least it seems to be working. I *would* anticipate problems if trying to read a umass device in units not a multiple of its native blocksize. > It could be that this USB chipset needs some "quirks" to work > correctly. like "Don't attempt to read more than 32768 bytes at a time" -- subsequent testing shows it to be OK up to bs=64b, but bs=126b fails -- or is there maybe a way to set that sort of limit in mtools?