From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 13:25:59 2003 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 13D4616A4B3 for ; Sun, 28 Sep 2003 13:25:59 -0700 (PDT) Received: from www.franklee.net (203.141.149.2.user.ad.il24.net [203.141.149.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF52544035 for ; Sun, 28 Sep 2003 13:25:55 -0700 (PDT) (envelope-from frank@franklee.net) Received: from www.franklee.net (localhost.franklee.net [127.0.0.1]) by www.franklee.net (8.12.6/8.12.6) with ESMTP id h8T5QUYn000655 for ; Mon, 29 Sep 2003 05:26:31 GMT (envelope-from frank@franklee.net) Content-Type: text/plain; charset="iso-8859-1" From: Frank Lee To: freebsd-questions@freebsd.org Date: Mon, 29 Sep 2003 05:26:30 +0000 User-Agent: KMail/1.4.3 References: <200309290427.41673.frank@franklee.net> <1064778399.939.10.camel@klamath> In-Reply-To: <1064778399.939.10.camel@klamath> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200309290523.31804.frank@franklee.net> Subject: Re: How to mount USB drive in FreeBSD 5.0? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: frank@franklee.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2003 20:25:59 -0000 On Sunday 28 September 2003 19:46, Andreas Kohn wrote: > On Mon, 2003-09-29 at 06:27, Frank Lee wrote: > > Hi all. My first FreeBSD post. :-) > > > > I have a USB drive (Win95 formatted) that I'm trying to dd data off o= f. > > > > - FreeBSD 5.0-Release > > - USB 2.0/1.1 drive. > > - laptop is 1.1 > > > > How do I mount this USB drive? I done it on 4.7 with MAKEDEV and all,= but > > can't find any info on getting it to mount in 5.0 (no MAKEDEV and all= ). > > > > Thank you, > > Frank Lee > > Hello, > > add umass (and scbus + da) to your kernel configuration (if not there > already), and it should be autodetected. Mounting should work like in > 4.7. > > In FreeBSD 5, devfs makes MAKEDEV unneccessary. > > If that still doesn't work, please post relevant messages to the list. Thank you for your quick reply! - The kernel is generic. So umass, scbus, and da are already in there. - "usbd" is running. # ps auxw | grep usbd root 330 0.0 0.2 1144 680 ?? Ss 3:40AM 0:00.01/usr/sbin/u= sbd - I noticed that the "USB modules" section in /boot/loader.conf was set t= o=20 "NO". So I copied that over to /boot and set them to "YES": usb_load=3D"YES" # USB subsystem udbp_load=3D"YES" # USB double bulk pipe host 2 host ca= bles ugen_load=3D"YES" # USB generic device, if all else fai= ls ... umass_load=3D"YES" # Mass Storage Devices - rebooted and got (from dmesg): Preloaded elf kernel "/boot/kernel/kernel" at 0xc0689000. Preloaded elf module "/boot/kernel/udbp.ko" at 0xc06890a8. Preloaded elf module "/boot/kernel/ugen.ko" at 0xc0689154. Preloaded elf module "/boot/kernel/umass.ko" at 0xc0689200. Preloaded elf module "/boot/kernel/uscanner.ko" at 0xc06892ac. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc068935c. link_elf: symbol ng_newtype undefined KLD file udbp.ko - could not finalize loading module_register: module uhub/ugen already exists! Module uhub/ugen failed to register: 17 module_register: module uhub/umass already exists! Module uhub/umass failed to register: 17 module_register: module uhub/uscanner already exists! Module uhub/uscanner failed to register: 17 Timecounter "i8254" frequency 1193182 Hz =20 So i guess I didn't need to set them to "YES"... :-\ And later in dmesg: uhci0: port 0xfce0-0xfcff irq 1= 0 at=20 de vice 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered It may have detected that there's a drive... # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 Intel(0x0000), rev 1.00 port 1 powered port 2 powered # usbdevs -d addr 1: UHCI root hub, Intel uhub0 # but if FreeBSD autodetected it, I, myself, am not detecting it. :( I gues= s I=20 forgot I how did it in 4.7 :( But how do I mount it? I've tried: # mkdir /mnt/usb # mount -t msdos /dev/usb /mnt/usb msdosfs: /dev/usb: Block device required # mount -t msdos /dev/usb0 /mnt/usb msdosfs: /dev/usb0: Block device required # mount -t msdos /dev/ad0s1a /mnt/usb msdosfs: /dev/ad0s1a: Device busy # mount -t msdos /dev/ad0s1b /mnt/usb msdosfs: /dev/ad0s1b: Device busy # mount -t msdos /dev/ad0s1c /mnt/usb msdosfs: /dev/ad0s1c: Invalid argument # mount_msdosfs /dev/ad0s1b /mnt/usb mount_msdosfs: /dev/ad0s1b: Device busy # # cat /etc/fstab # Device Mountpoint FStype Options Dump P= ass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 # Thanks for your help. The winning command itself would be nice :)