From owner-freebsd-questions Thu Mar 20 10:49:15 2003 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 BEEBB37B401 for ; Thu, 20 Mar 2003 10:49:12 -0800 (PST) Received: from mail3.sento.com (translate.sento.com [12.160.33.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB93443F93 for ; Thu, 20 Mar 2003 10:49:11 -0800 (PST) (envelope-from Darren_Spruell@sento.com) Received: from sento.com ([10.1.62.233]) by mail3.sento.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 20 Mar 2003 11:48:12 -0700 Message-ID: <3E7A0ED0.8050805@sento.com> Date: Thu, 20 Mar 2003 11:56:16 -0700 From: Darren Spruell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20030212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joshua Oreman Cc: questions@freebsd.org Subject: {SOLVED}Re: Trouble mounting USB pen drive in 4.7 References: <3E77A11F.70803@sento.com> <006c01c2eda5$a7f281f0$c4102c0a@viper> <24370.166.70.24.187.1048055928.squirrel@mail1.sento.com> <20030319234218.GB35594@webserver.get-linux.org> X-Enigmail-Version: 0.49.5.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Mar 2003 18:48:12.0233 (UTC) FILETIME=[421ACB90:01C2EF11] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joshua Oreman wrote: > On Tue, Mar 18, 2003 at 11:38:48PM -0700 or thereabouts, darren_spruell wrote: > >>Filesystem = unknown. I am able to mount it under Windows 2000 Pro and in the >>past on an identical FreeBSD box. I believe the command I used was 'mount >>/dev/rda0 /mnt' and it worked, sometimes. Under Linux it mounts flawlessly >>with 'mount /dev/sda /mnt'... >> >>The device is not partitioned. >> >>Now all my attempts under FreeBSD end in "...I/O error." > > > To find out the filesystem: > # file -s /dev/da0 > This will run 'file' on the contents of the drive (-s flag) instead > of the drive itself (otherwise, it would say `character device' or > something). > > Some common `mount' commands you could use: > If `file' says something about DOS or Windows: > # kldload msdosfs > # mount_msdosfs /dev/da0 /mnt > If `file' says it's UFS: > # mount /dev/da0 /mnt > If `file' says it's ext2: > # kldload ext2fs > # mount_ext2fs /dev/da0 /mnt > Otherwise, send me the output of the file command above and I'll see > what I can do. > Notes: > 1) If you're running 4.x, replace 'msdosfs' with 'msdos' above. > 2) `mount' wants /dev/da0, not /dev/rda0. > > >>-- >>Darren Spruell >>Sento IS Department >>darren_spruell@sento.com > > > Hope this helps, > Josh This is with the device plugged into the USB port, but not mounted: # file -s /dev/da0 file /dev/da0: can't read `/dev/da0' (Input/output error). I found out that I can mount it like this: # mount -t msdos /dev/rd0s1 /mnt Output with device mounted: # file -s /dev/da0 /dev/da0: x86 boot sector So, I can mount it now, knowing that I have to mount it as msdos, and that I must mount /dev/rda0s1 (wouldn't have thought to mount just a slice...?) -- Darren Spruell Sento I.S. Department darren_spruell@sento.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message