From owner-freebsd-fs@FreeBSD.ORG Mon Sep 26 20:54:51 2005 Return-Path: X-Original-To: fs@freebsd.org Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E740616A41F for ; Mon, 26 Sep 2005 20:54:51 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from blue.virtual-estates.net (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D30943D7C for ; Mon, 26 Sep 2005 20:54:27 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by blue.virtual-estates.net (8.13.4/8.13.4) with ESMTP id j8QKsQV3089091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 26 Sep 2005 16:54:26 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id j8QKsJvd016404 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Sep 2005 16:54:19 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.3/8.13.3) with ESMTP id j8QKs5ZX030880; Mon, 26 Sep 2005 16:54:05 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.3/8.13.3/Submit) id j8QKs1xW030879; Mon, 26 Sep 2005 16:54:01 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: gayn.winters@bristolsystems.com, fs@freebsd.org Date: Mon, 26 Sep 2005 16:54:01 -0400 User-Agent: KMail/1.8.2 References: <02b301c5c2ba$4b2b9460$c901a8c0@workdog> In-Reply-To: <02b301c5c2ba$4b2b9460$c901a8c0@workdog> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_p/FODwy0/lgs+Ac" Message-Id: <200509261654.01697.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV devel-20050525/1102/Sun Sep 25 10:04:56 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: Subject: Re: can not mount a large FAT32 filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 20:54:52 -0000 --Boundary-00=_p/FODwy0/lgs+Ac Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 8bit Content-Disposition: inline понед╕лок 26 вересень 2005 12:49, Gayn Winters Ви написали: > Assuming your BIOS supports LBA, you could try (back up first of course) > using fdisk to rewrite the label, or use fdisk to use all the logical > cylinders on the card.  Also, since you are not trying to boot from the > card, having it marked Active is unnecessary at best. This is a flash card (Hitachi microdrive) inserted into a USB flash-reader. There is no BIOS. Not only does the card work fine in the camera (which formatted it), but Windows has no problems with it either. I'd rather help fix our FAT32 support, than find a work-around... Is anyone on fs@ interested? The original symptomps and Gayn's comments are attached. Thanks! -mi --Boundary-00=_p/FODwy0/lgs+Ac Content-Type: message/rfc822; name="forwarded message" Content-Transfer-Encoding: 7bit Content-Description: "Gayn Winters" : RE: can not mount a large FAT32 filesystem Content-Disposition: inline Return-Path: Received: from bristolsystems.com (h-68-167-239-98.lsanca54.covad.net [68.167.239.98]) by corbulon.video-collage.com (8.13.4/8.13.1) with ESMTP id j8QGnqLd014285 for ; Mon, 26 Sep 2005 12:49:53 -0400 (EDT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([192.168.1.201]) by bristolsystems.com (8.11.6/8.11.6) with ESMTP id j8QGnln20241; Mon, 26 Sep 2005 09:49:47 -0700 Reply-To: From: "Gayn Winters" To: , Subject: RE: can not mount a large FAT32 filesystem Date: Mon, 26 Sep 2005 09:49:37 -0700 Message-ID: <02b301c5c2ba$4b2b9460$c901a8c0@workdog> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <200509260053.j8Q0rrJJ043848@symbion.zaytman.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: ClamAV devel-20050525/1102/Sun Sep 25 10:04:56 2005 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 X-SpamProbe: GOOD 0,0001257 e95ddc92cc96d9e7374fa55a2854c852 X-UID: 32516 X-Length: 4232 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Mikhail Teterin > Sent: Sunday, September 25, 2005 5:54 PM > To: questions@freebsd.org > Subject: can not mount a large FAT32 filesystem > > > Hello! > > I have a 4Gb flash-card with FAT32 filesystem. Whenever I try to mount > it (on 5.x and 4.x) I get: > > msdos: /dev/da0s1: Invalid argument > > and the kernel complains: > > da0: reading primary partition table: error reading fsbn 0 > mountmsdosfs(): bad FAT32 filesystem > > The method works with smaller cards in the same card-reader. This card > works fine inside the camera, and I can get the pictures via. PTP > protocol using gphoto. > > Fdisk da0 says: > > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=7936 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=7936 heads=16 sectors/track=63 (1008 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 12,(DOS or Windows 95 with 32 bit FAT, LBA) > start 63, size 7998417 (3905 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 766/ head 15/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > > Disklabel da0 says: > > # /dev/da0: > type: SCSI > disk: SanDisk > label: ImageMate II > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 16 > sectors/cylinder: 1008 > cylinders: 7936 > sectors/unit: 7999489 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 7999489 0 unused 0 0 > # (Cyl. 0 - 7936*) Perhaps someone else can help sort this out better than I can, but I do note that fdisk doesn't seem to be using the last (logical) cylinder, because it reports using 7998417 + 63 = 7998480 sectors which is exactly 1008 sectors less than 7936 cylinders * 1008 sectors/cylinder = 7999488 sectors. (Why disklabel reports one more sector 7999489 is a mystery to me.) Assuming your BIOS supports LBA, you could try (back up first of course) using fdisk to rewrite the label, or use fdisk to use all the logical cylinders on the card. Also, since you are not trying to boot from the card, having it marked Active is unnecessary at best. Good luck, -gayn --Boundary-00=_p/FODwy0/lgs+Ac--