From owner-freebsd-questions@FreeBSD.ORG Thu Apr 28 17:58:57 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D8E216A4CE for ; Thu, 28 Apr 2005 17:58:57 +0000 (GMT) Received: from vsmtp2.tin.it (vsmtp2alice.tin.it [212.216.176.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 770F643D39 for ; Thu, 28 Apr 2005 17:58:56 +0000 (GMT) (envelope-from v.demartino2@virgilio.it) Received: from wireless (80.117.237.29) by vsmtp2.tin.it (7.0.027) id 426FA0F90008F096 for freebsd-questions@freebsd.org; Thu, 28 Apr 2005 19:58:54 +0200 From: Vittorio To: freebsd-questions@freebsd.org Date: Thu, 28 Apr 2005 19:58:49 +0000 User-Agent: KMail/1.7.2 References: <200504281835.57378.v.demartino2@virgilio.it> <20050428165257.GA60809@slackbox.xs4all.nl> In-Reply-To: <20050428165257.GA60809@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200504281958.49138.v.demartino2@virgilio.it> Subject: Re: usbd.conf not mounting usb mass storage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 17:58:57 -0000 Alle 16:52, gioved=EC 28 aprile 2005, Roland Smith ha scritto: > On Thu, Apr 28, 2005 at 06:35:57PM +0000, Vittorio wrote: > > Under FreeBSD 5.4 In my laptop I have the following item in usbd.conf = to > > mount a usb-mass storage: > > > > device "SWISSBIT" > > vendor 0x1370 > > product 0x2168 > > devname "umass0" > > attach "/sbin/mount_msdosfs /dev/da0 /mnt/swissbit" > > > > > > When I insert the device this are the messages: > > > > > > fbsd# usbd -v -d > > usbd: opened /dev/usb0 > > usbd: opened /dev/usb1 > > usbd: reading configuration file /etc/usbd.conf > > usbd: opened /dev/usb > > usbd: device-attach event at 1114704239.430921000, Twist, SWISSBIT: > > vndr=3D0x1370 prdct=3D0x2168 rlse=3D0x0200 clss=3D0x0000 subclss=3D0x= 0000 > > prtcl=3D0x0000 device names: umass0 > > usbd: Found action 'SWISSBIT' for Twist, SWISSBIT at umass0 > > usbd: Executing '/sbin/mount_msdosfs /dev/da0 /mnt/swissbit' > > mount_msdosfs: /dev/da0: No such file or directory > > usbd: '/sbin/mount_msdosfs /dev/da0 /mnt/swissbit' returned 71 > > It takes a while for the mapping from umass to da to be established. Try > adding '/bin/sleep 1; ' to the front of the attach command. > > Your usbd.conf relies on two assumptions that might not be true. The > umass0 device is not necessarily the swissbit device, and umass0 does > not automatically map to da0. > > Roland Didn't know. I was misled by the fact that I saw my SWISSBIT mass storage = =20 mapped as umass[0-2]+ and ** acordingly ** da[0-2]+: 0 to 0, 1 to 1 and 2 t= o=20 2. By the way, there's another question relating to mapping. As I said to mount the SWISSBIT I use for instance=20 "/sbin/mount_msdosfs /dev/da0 /mnt/swissbit" whilst to mount my Eutron usb= =20 mass storage mapped as umass0 -> da0 I have to issue: "/sbin/mount_msdosfs /dev/da0s1 /mnt/eutron" Why is that, I mean da0 -> da0s1? Vittorio