From owner-freebsd-hackers Wed Feb 12 19:20:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA14596 for hackers-outgoing; Wed, 12 Feb 1997 19:20:51 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA14587 for ; Wed, 12 Feb 1997 19:20:42 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id NAA17080; Thu, 13 Feb 1997 13:50:32 +1030 (CST) From: Michael Smith Message-Id: <199702130320.NAA17080@genesis.atrad.adelaide.edu.au> Subject: Re: _big_ IDE disks? In-Reply-To: <199702130236.NAA16781@genesis.atrad.adelaide.edu.au> from Michael Smith at "Feb 13, 97 01:06:00 pm" To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Thu, 13 Feb 1997 13:50:31 +1030 (CST) Cc: hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Some more information : Michael Smith stands accused of saying: > These are the 5GB Maxtor 'DiamondMax' disks we're talking about here, > talking to a Tekram P5H30WS motherboard (current Award BIOS). > > The problem set looks something like this : > > - during probe, the disk is reported thus : > > a8tor 85120 A8 ->: < This apears to be about right; DM (Maxtor's "MaxBlast" software) reports the same ID. Weird. Anyone have any contacts at Maxtor I should be bugging about this? > wd0: 633MB (9685824 sectors), 9224 cylinders, 16 heads, 61 S/T, 512 B/S The '633MB' is due to bad arithmetic in wd.c, where an intermediate is set to the number of bytes on the disk : du->dk_dd.d_secperunit * du->dk_dd.d_secsize / (1024 * 1024), I propose to change this to : (long)((long long)du->dk_dd.d_secperunit * du->dk_dd.d_secsize / (1024 * 1024)), in order to force the intermediate values to 'long long'. An alternative would be to use the approach that sd.c does : dp->disksize / ((1024L * 1024L) / dp->secsiz) which loses some precision but avoids playing type games. Comments? > - While installing, the installer seems to write the partition table OK, > but can't write the label or swap on the disk. This appears to be because I can't make a single partition bigger than 4GB. I'll try installing to the Jaz in this box so that I can get it onto our network. Soren, if you're playing ATA god, I'd really appreciate any input you may have here. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[