From owner-freebsd-hardware Tue Nov 19 15:18: 7 2002 Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81C6E37B401 for ; Tue, 19 Nov 2002 15:18:05 -0800 (PST) Received: from spider.netmails.net (dsl-65-189-239-65.telocity.com [65.189.239.65]) by mx1.FreeBSD.org (Postfix) with SMTP id 2CEBF43E3B for ; Tue, 19 Nov 2002 15:18:04 -0800 (PST) (envelope-from subscr@spider.netmails.net) Received: (qmail 45774 invoked by uid 1014); 19 Nov 2002 23:17:26 -0000 Date: Tue, 19 Nov 2002 17:17:26 -0600 From: Hari Bhaskaran To: Bruce Evans Cc: freebsd-hardware@FreeBSD.ORG Subject: Re: problems detecting drive dimensions for maxtor 120GB ide/ata Message-ID: <20021119171726.A45746@spider.netmails.net> References: <20021118232338.A43068@spider.netmails.net> <20021119193959.F30027-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021119193959.F30027-100000@gamplex.bde.org>; from bde@zeta.org.au on Tue, Nov 19, 2002 at 08:18:27PM +1100 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I am still confused. Can I go ahead and try with whatever sysinstall reported? Somehow whatever values each source reported, (manufacturer's doc, bios, maxtor diag tools, and sysinstall), all of them ended up with the final size of (nearly) 120 GB. Well, actually sysinstall reports 117 GB. Can I assume they are all correct (in their own way)? On Tue, Nov 19, 2002 at 08:18:27PM +1100, Bruce Evans wrote: > On Mon, 18 Nov 2002, Hari Bhaskaran wrote: > > > I have a maxtor 120GB IDE disk on a Supermicro P4SBE mother board. > > The bios reports the size of the hard disk as > > (Total size: 122 GB -- close enough!) > > > > Cylinder: 58853 > > Head: 16 > > Precomp: 0 > > Landing zone: 58852 > > Sector: 255 > > > > FreeBSD 4.7 install reports the error message. > > > > "WARNING: A geometry of 238216/16/63 for ad0 is incorrect. Using a > > more likely geometry." > > > > It appears to be correct (although the bios reported different > > values) when I refer to > > http://www.maxtor.com/en/documentation/quick_specs/diamondmax_plus_9_quick_specs.pdf > > > > So what am I missing? Is the BIOS wrong? I am already > > sysinstall is broken here (it is no different in -current). It doesn't like > the number of cylinders being >= 65536, but this is no more of a problem > than the number of cylinders being >= 1024 (an old limit due to older > mistakes) provided the BIOS can handle it. sysinstall also doesn't like > the number of heads being > 256 or the number of sectors being >= 64. > BIOSes are very unlikely to handle these and manufacturers data is even > less likely to say to use them. Even 256 heads is problematic (it should > work, but there are many broken BIOSes that can't handle it). > Sanitize_Bios_Geom() uses the correct limit of 255. > > When sysinstall doesn't like one of these parameters, it calls > Sanitize_Bios_Geom() to modify the geometry to one that it likes, at > least in -current. Unfortunately, it does this unconditionally. I > think your geometry would just work otherwise. The modified geometry > might work too, or it might be inconsistent with the BIOS (the geometry > can be almost anything, but most firmware and software has to agree on > what it is). > > There are 2 other limits which may cause related problems soon: the > 28-bit LBA limit for old ATA disks (128GB or 137 disk manufacturers > GB) and the limit of 65535*255*63 given by multiplying the BIOS limits > (about 4 * 128GB). The sysinstall limit of 65535 or 65536 cylinders > is related to the hardware limit of 6553[5-6] heads for old ATA. This > limit is bogus even for old ATA in LBA mode and in some BIOS's virtual > CHS modes, and just broken for current ATA. When disk sizes exceed > 512MB (less epsilon), all disks will fail sysinstall's current sanity > tests even after they have been sanitized. > > Bruce > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hardware" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message