Date: Thu, 28 Apr 2005 18:52:57 +0200 From: Roland Smith <rsmith@xs4all.nl> To: freebsd-questions@freebsd.org Cc: Vittorio <v.demartino2@virgilio.it> Subject: Re: usbd.conf not mounting usb mass storage Message-ID: <20050428165257.GA60809@slackbox.xs4all.nl> In-Reply-To: <200504281835.57378.v.demartino2@virgilio.it> References: <200504281835.57378.v.demartino2@virgilio.it>
next in thread | previous in thread | raw e-mail | index | archive | help
--k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > mount a usb-mass storage: >=20 > device "SWISSBIT" > vendor 0x1370 > product 0x2168 > devname "umass0" > attach "/sbin/mount_msdosfs /dev/da0 /mnt/swissbit" >=20 >=20 > When I insert the device this are the messages: >=20 >=20 > 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=3D0x00= 00 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 --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCcRTpEnfvsMMhpyURAggXAJ9YnABsiAKD8jvO12M97YJUrWqDbQCfSiZb KR2NOyWkMO0r9qwc7+bggvk= =zv9b -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050428165257.GA60809>