From owner-freebsd-current@FreeBSD.ORG Mon Jul 2 03:56:26 2007 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BEE4A16A468 for ; Mon, 2 Jul 2007 03:56:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7D01613C44C for ; Mon, 2 Jul 2007 03:56:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l623rNmq004444; Sun, 1 Jul 2007 21:53:23 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 01 Jul 2007 21:54:04 -0600 (MDT) Message-Id: <20070701.215404.1670806422.imp@bsdimp.com> To: nate@root.org From: "M. Warner Losh" In-Reply-To: <46880400.70808@root.org> References: <46880400.70808@root.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 01 Jul 2007 21:53:23 -0600 (MDT) Cc: current@FreeBSD.org Subject: Re: GEOM weirdness with SD flash reader? 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: Mon, 02 Jul 2007 03:56:26 -0000 In message: <46880400.70808@root.org> Nate Lawson writes: : Simply trying to mount a FAT filesystem in an external USB SD flash : reader. The reader works fine, no errors in dmesg. : : deenlo# fdisk da2 : ******* Working on device /dev/da2 ******* : parameters extracted from in-core disklabel are: : cylinders=982 heads=64 sectors/track=32 (2048 blks/cyl) : : parameters to be used for BIOS calculations are: : cylinders=982 heads=64 sectors/track=32 (2048 blks/cyl) : : Media sector size is 512 : Warning: BIOS sector numbering starts with sector 1 : Information from DOS bootblock is: : The data for partition 1 is: : sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) : start 243, size 2011917 (982 Meg), flag 0 : beg: cyl 0/ head 3/ sector 55; : end: cyl 998/ head 3/ sector 3 : The data for partition 2 is: : : The data for partition 3 is: : : The data for partition 4 is: : : deenlo# mount -t msdosfs /dev/da2s1 /mnt/dos : mount_msdosfs: /dev/da2s1: No such file or directory : deenlo# mount -t msdosfs /dev/da2 /mnt/dos : mount_msdosfs: /dev/da2: Invalid argument : deenlo# mount -t msdosfs /dev/da2s1 /mnt/dos : [success] : : So I'm guessing GEOM had to decide to create /dev/da2s1 after I tried to : mount /dev/da2 directly? Nothing else would create the da2s1 device. : Once the device was created with make_dev(), repeated unmounts/mounts : work fine. The reading of the device is taking a while, no? I've seen significant lags between when the flash reader is inserted, and the device is ready and the tasting process finishes. Reseating everything often fixes the problem. Warner