From owner-freebsd-questions@FreeBSD.ORG Tue Apr 8 10:46: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 D3A2F37B401 for ; Tue, 8 Apr 2003 10:46:55 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id A726743F75 for ; Tue, 8 Apr 2003 10:46:54 -0700 (PDT) (envelope-from mwm-dated-1050256013.98d137@mired.org) Received: (qmail 30880 invoked from network); 8 Apr 2003 17:46:53 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 8 Apr 2003 17:46:53 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Tue, 08 Apr 2003 12:46:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16019.2828.984528.332999@guru.mired.org> Date: Tue, 8 Apr 2003 12:46:52 -0500 To: Brice Gensburger In-Reply-To: <20030408161444.GA1137@localhost.localdomain> References: <20030408161444.GA1137@localhost.localdomain> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.73 (Jet Pilot) cc: freebsd-questions@freebsd.org Subject: Re: Mounting a msdos-formated USB Mass storage device 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: Tue, 08 Apr 2003 17:46:56 -0000 In <20030408161444.GA1137@localhost.localdomain>, Brice Gensburger typed: > I'm having a bit of a hard time with an external USB2.0/Firewire HD. You're not mounting the right thing. > fdisk /dev/da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=14946 heads=255 sectors/track=63 (16065 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=14946 heads=255 sectors/track=63 (16065 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 15,(Extended DOS, LBA) > start 16065, size 240091425 (117232 Meg), flag 0 > beg: cyl 1/ head 0/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > Slice 1 is the only one in use; that's the one you have to mount. > disklabel /dev/da0 Disklabels are a BSD thing, and will only be understood by BSD systems. While it may be possible to put an MSDOS system on a BSD partition, there's no reason for doing so. > # mount /dev/da0s1c /usbdrive > mount: /dev/da0s1c on /usbdrive: incorrect super block > which is only natural, since it's not UFS. Right. > # mount_msdos /dev/da0s1c /usbdrive > mount_msdos: /dev/da0s1c: Invalid argument Wrong. The DOS file system - assuming it's formatted - isn't on 1c, it's on 1. You need # mount -t msdos /dev/da0s1 /usbdrive > I googled for this, and found several posts saying to try to mount the 4th slice for Zip Drives and such. Ok, let's try that: > # mount_msdos /dev/da0s4 /usbdrive > mount_msdos: /dev/da0s4: Invalid argument > Now, i don't understand... There's not a fourth slice on the disk, so naturally it's an invalid argument. If there had been a dos partition on the fourth slice, you've got a right syntax. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.