From owner-freebsd-questions@FreeBSD.ORG Sun Apr 15 10:16:38 2007 Return-Path: X-Original-To: questions@freebsd.org 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 417CE16A403 for ; Sun, 15 Apr 2007 10:16:38 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.freebsd.org (Postfix) with ESMTP id EF9F313C448 for ; Sun, 15 Apr 2007 10:16:37 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([217.147.20.50] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1Hd1WK-000IfS-97; Sun, 15 Apr 2007 13:59:44 +0400 Received: from bsam by bs1.sp34.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Hd1Wa-0000Ig-D6; Sun, 15 Apr 2007 14:00:00 +0400 To: "Michael W. Lucas" References: <20070414231801.GA40346@bewilderbeast.blackhelicopters.org> From: Boris Samorodov Date: Sun, 15 Apr 2007 14:00:00 +0400 In-Reply-To: <20070414231801.GA40346@bewilderbeast.blackhelicopters.org> (Michael W. Lucas's message of "Sat, 14 Apr 2007 19:18:01 -0400") Message-ID: <77584463@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: USB key device nodes 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: Sun, 15 Apr 2007 10:16:38 -0000 On Sat, 14 Apr 2007 19:18:01 -0400 Michael W. Lucas wrote: > This strikes me as odd. I have a 1GB USB pocketknife that doesn't > give me the right device nodes until after I try to mount it. The > mount attempt seems to create the proper device nodes. > The USB drive shows up on insertion like so: > Apr 14 19:09:41 stretchlimo kernel: umass0: on uhub4 > Apr 14 19:09:41 stretchlimo root: Unknown USB device: vendor 0x1370 product 0x2168 bus uhub4 > Apr 14 19:09:41 stretchlimo kernel: da1 at umass-sim0 bus 0 target 0 lun 0 > Apr 14 19:09:41 stretchlimo kernel: da1: Removable Direct Access SCSI-2 device > Apr 14 19:09:41 stretchlimo kernel: da1: 40.000MB/s transfers > Apr 14 19:09:41 stretchlimo kernel: da1: Attempt to query device size failed: UNIT ATTENTION, Not ready to ready change, > Disklabel tells me that it has a single DOS partition on it: > # fdisk /dev/da1 > ******* Working on device /dev/da1 ******* > parameters extracted from in-core disklabel are: > cylinders=998 heads=64 sectors/track=32 (2048 blks/cyl) > parameters to be used for BIOS calculations are: > cylinders=998 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 32, size 2043871 (997 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 996/ head 63/ sector 32 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > But the only device node I get upon insertion is: > # ls /dev/da* > /dev/da1 > # This is almost a FAQ. You may do here: # true > /dev/da1 ...and than look at /dev/da1* > I try to mount it, and immediately check the device nodes: > # mount_msdosfs /dev/da1 /media > mount_msdosfs: /dev/da1: : Invalid argument > # ls /dev/da* > /dev/da1 /dev/da1s1 > # > Of course, at this point I can mount_msdosfs /dev/da1s1. > Is this behavior normal? I'm trying to configure devd to automount a > USB device, but the lack of a proper device node appearing the first > time around kiboshes that. > This is a 7.x i386 system. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve