From owner-freebsd-questions@FreeBSD.ORG Tue May 8 05:47:47 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F37A616A402 for ; Tue, 8 May 2007 05:47:46 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 759F313C44C for ; Tue, 8 May 2007 05:47:45 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id PAA17706; Tue, 8 May 2007 15:47:37 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 8 May 2007 15:47:37 +1000 (EST) From: Ian Smith To: cadu aranha In-Reply-To: <20070507190309.3144A16A410@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: mounting an external Hard Drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 05:47:47 -0000 On Mon, 7 May 2007 19:55:33 +0200, cadu aranha wrote: > Hello people, > i have a USB external HD with FAT32 fs. > Today i connected it to my FBSD and > got the following mesg entry: > > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) > > # ls /dev/da0* > /dev/da0 /dev/da0s1 /dev/da0s2 /dev/da0s5 Note the appearance of /dev/da0s5 .. > mount_ntfs /dev/da0s1 /mnt > #% ok, it worked. Now > # mount_ntfs /dev/da0s2 /mnt2 > mount_ntfs: /dev/da0s2: Invalid argument > > #% of course, it is a FAT32 filesystem. Then ... > # mount_msdosfs /dev/da0s2 /mnt2 > mount_msdosfs: /dev/da0s2: Invalid argument > # mount_msdosfs /dev/da0s5 /mnt2 > mount_msdosfs: /dev/da0s5: Invalid argument > # dmesg > mountmsdosfs(): disk too big, sorry > > # fsck_msdosfs /dev/da0s2 > ** /dev/da0s2 > Invalid signature in fsinfo blockfix? [yn] y > Floating exception (core dumped) Ouch; hopefully didn't screw up anything. Check with Partition Magic? > I do not know what else could i do. > It was a 250G HG with NTFS. The whole could be mounted > by mount_ntfs. Then i split it in one NTFS and one FAT32 > using Partition magic. Now i can mount the former and the > latter not. On windows there is no problem in mounting. The FAT32 is in what DOS calls the 'Extended Partition', here da0s2. It could contain a number of 'DOS drives' like D:, E:, etc. Here you have made one 'DOS drive', probably 'drive D:', and it's accessed in FreeBSD as slice ad0s5. DOS 'drive E:' would be accessed as ad0s6 and so on; this way you can mount multiple MSDOSFS, NTFS and HPFS 'partitions'. So the 'Extended Partition' da0s2 is not mountable per se; try 'mount_msdosfs /dev/da0s5' and likewise 'fsck_msdosfs /dev/da0s5' You'll still need the MSDOSFS_LARGE support if your FAT32 slice ad0s5 is over 128GB by itself. Cheers, Ian