From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 19:54:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD2021065678 for ; Mon, 2 Feb 2009 19:54:22 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 824E48FC52 for ; Mon, 2 Feb 2009 19:54:22 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id n12Jqr12023132; Mon, 2 Feb 2009 14:52:53 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id n12JqqYS023131; Mon, 2 Feb 2009 14:52:52 -0500 (EST) (envelope-from jerrymc) Date: Mon, 2 Feb 2009 14:52:52 -0500 From: Jerry McAllister To: Jerry McAllister , Mel , freebsd-questions@freebsd.org Message-ID: <20090202195252.GA23080@gizmo.acns.msu.edu> References: <20090202192720.GE1012@dell1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090202192720.GE1012@dell1> User-Agent: Mutt/1.4.2.2i Cc: Jerry McAllister Subject: Re: short-changed on SD card? 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: Mon, 02 Feb 2009 19:54:24 -0000 On Mon, Feb 02, 2009 at 02:27:20PM -0500, William Bulley wrote: > According to Jerry McAllister on Mon, 02/02/09 at 14:12: > > > > I am a little lost here and haven't tried a lot on USB devices yet - > > though I haven't had these kind of problems. > > > > But, after doing the fdisk stuff and before trying to mount, did you > > do a newfs? > > > > Another thing would be to try the old > > dd if=/dev/zero of=/dev/da1 bs=512 count=1024 > > and see if it will write to it and wipe enough stuff to free it up. > > Up the count if you think it makes any difference. > > Thanks. According to the newfs(8) man page it is used only for BSD > style file systems (ufs and ufs2). I am okay with the FAT16 formatted > SD card, I'm just upset that I paid for a 2.0 GB card and ended up with > what seems to be a 1.0 GB card. I would be happy if I could make the > SD card look like this: > > slice 1 2.0 GB (well, 1920 MB if you insist) > slice 2 > slice 3 > slice 4 > > And I thought I had done just that using fdisk(8). But I must have gotten > some of the "beg" and "end" paramaters set up wrong. OK. I thought you were trying to make a FreeBSD type slice on it, thus the newfs thought. It won't mount if it isn't newfsed and is FreeBSD type. I suppose FreeBSD's fdisk will make MS types, but have never tried it. But, if it will, then it will also do it after wiping the device with dd. After doing that, you should be able to just tell it to turn all the space on the drive in to one slice of whatever type it will handle. ////jerry > > If the card is indeed 2.0 GB in size, and following in the style of the > originally reported parameters of this card: > > da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C) > > that is, 64 "heads", 32 "sectors per track", and 960 "cylinders", > (this evidently from what the BIOS reports and understands) I had > assumed that I could merely increase the cylinder count up to 1920 > and leave the head and sector information as it was. But as I said > earlier, this didn't seem to work. I know I have to leave room at > the beginning for the MBR or the like, but the tools are either too > low level, or too high level, or my understanding of all this is not > up to speed. Why can't an SD card advertised (and sold) as a 2.0 GB > card actually hold (approximately) 2.0 GB? That is what bugs me... > > I believe that FAT16 is capable of addressing a 2.0 GB disk drive, yes? > > Regards, > > web... > > -- > William Bulley Email: web@umich.edu >