From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 19:23:11 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5A6AE16A425; Thu, 29 Dec 2005 19:23:11 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADEEA43D5D; Thu, 29 Dec 2005 19:22:52 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2) with ESMTP id jBTJMniU000934; Thu, 29 Dec 2005 14:22:49 -0500 (EST) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id jBTJMnYA000933; Thu, 29 Dec 2005 14:22:49 -0500 (EST) From: Jerry McAllister Message-Id: <200512291922.jBTJMnYA000933@clunix.cl.msu.edu> To: tlp@liquidx.org (Travis Poppe) Date: Thu, 29 Dec 2005 14:22:49 -0500 (EST) In-Reply-To: <200512291202.51955.tlp@liquidx.org> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Harddrive size being reported incorrectly? 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: Thu, 29 Dec 2005 19:23:11 -0000 > > Hello, > > I've recently purchased an IDE 320GB Western Digital WD3200JB-22KFA0 > harddrive for use in my FreeBSD 6.0-RELEASE fileserver. The BIOS in the system > reports the drive as being a 320GB, but FreeBSD (dmesg) sees it as a 305245MB > (or 298GB drive) in two separate machines. When it has finally been formatted > for use, I get 289GB of available space. A nominal 320GB drive works out to 298.02 GB using the 1024 MB number system that the system uses. eg 320,000,000,000 / 1024 / 1024 / 1024 / 1024 = 298.02 or 320,000,000,000 / 1,073,741,824 = 298.02 > Now, I understand that harddrive manufacturers measure things differently > (1000kbytes per gbyte rather than 1024, or something like that) than > expected, but I've been told by a few people that I should be getting around > 305-312GB of available space after the drive has been formatted. They didn't do their arithmetic. When you slice and partition the drive, there will likely be a handful of sectors that don't round out to an even value so those are dropped. Then, when you do the newfs, some space is taken by the spare superblocks and finally the system reserves 8%. So, I would say you are getting it all. > sysinstall had to adjust the drive geometry because the reported one was > 'invalid'. I tried to manually specify the geometry BIOS reported, but this > too was rejected as invalid. Let the system do what it thinks is right. You are not losing any due to invalid geometry. > > BIOS Geometry-CYL/HD/SECT: 65535/16/255 > > Am I really getting the full potential out of this drive, or is something > wrong? Doesn't look like anything is wrong. It looks right. ////jerry > > Thanks, > -- > Travis Poppe > IRC: tlp @ irc.freenode.net > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >