From owner-freebsd-questions@FreeBSD.ORG Sat Apr 14 23:18:04 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 E7D1516A407 for ; Sat, 14 Apr 2007 23:18:04 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.8]) by mx1.freebsd.org (Postfix) with ESMTP id 897B813C44C for ; Sat, 14 Apr 2007 23:18:04 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.13.8/8.13.8) with ESMTP id l3ENI1BG040392 for ; Sat, 14 Apr 2007 19:18:01 -0400 (EDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.13.8/8.13.8/Submit) id l3ENI1L1040391 for questions@freebsd.org; Sat, 14 Apr 2007 19:18:01 -0400 (EDT) (envelope-from mwlucas) Date: Sat, 14 Apr 2007 19:18:01 -0400 From: "Michael W. Lucas" To: questions@freebsd.org Message-ID: <20070414231801.GA40346@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (bewilderbeast.blackhelicopters.org [127.0.0.1]); Sat, 14 Apr 2007 19:18:01 -0400 (EDT) Cc: Subject: 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: Sat, 14 Apr 2007 23:18:05 -0000 Hi, 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 # 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. Thanks, ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ Latest book: PGP & GPG -- http://www.pgpandgpg.com "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur