From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 13:56:55 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 0B73316A4B3 for ; Sun, 28 Sep 2003 13:56:55 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ADD6643FE0 for ; Sun, 28 Sep 2003 13:56:51 -0700 (PDT) (envelope-from andreas.kohn@gmx.net) Received: (qmail 26795 invoked by uid 65534); 28 Sep 2003 20:56:50 -0000 Received: from unknown (EHLO [172.16.32.190]) (212.204.32.190) by mail.gmx.net (mp009) with SMTP; 28 Sep 2003 22:56:50 +0200 X-Authenticated: #2431876 From: Andreas Kohn To: frank@franklee.net In-Reply-To: <200309290523.31804.frank@franklee.net> References: <200309290427.41673.frank@franklee.net> <200309290523.31804.frank@franklee.net> Content-Type: text/plain Message-Id: <1064782624.939.19.camel@klamath> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 28 Sep 2003 22:57:04 +0200 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2003 20:56:55 -0000 On Mon, 2003-09-29 at 07:26, Frank Lee wrote: > 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 of. > > > > > > - 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/usbd > - I noticed that the "USB modules" section in /boot/loader.conf was set to > "NO". So I copied that over to /boot and set them to "YES": > usb_load="YES" # USB subsystem > udbp_load="YES" # USB double bulk pipe host 2 host cables > ugen_load="YES" # USB generic device, if all else fails ... > umass_load="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 > > > So i guess I didn't need to set them to "YES"... :-\ Setting those to "YES" instructs the loader to load the respectively named modules. So this would only be necessary if you hadn't compiled them into your kernel. (Which is the reason for those "already exists" messages) > And later in dmesg: > > uhci0: port 0xfce0-0xfcff irq 10 at > 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), > 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 guess I > forgot I how did it in 4.7 :( It doesn't even look like your usb drive is plugged in? Even if umass hadn't accepted it, ugen should have had attached (outputting some messages) > > 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 > # > [assuming that umass hat attached to the usb drive] There should be a new device node daX[sY] in /dev, which you should mount. mount -t msdos /dev/da0* /mnt/usb * Can't remember whether one needed to specify a slice > Thanks for your help. The winning command itself would be nice :) First thing before issueing a winning command is to have it detected =) > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Andreas Kohn