From owner-freebsd-questions Mon Jan 11 10:14:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA06626 for freebsd-questions-outgoing; Mon, 11 Jan 1999 10:14:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from presley.cybertrails.com (presley.cybertrails.com [162.42.150.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA06581 for ; Mon, 11 Jan 1999 10:14:10 -0800 (PST) (envelope-from kf7nn1@cybertrails.com) Received: (qmail 9372 invoked from network); 11 Jan 1999 18:11:18 -0000 Received: from unknown (HELO cybertrails.com) (162.42.132.6) by presley.cybertrails.com with SMTP; 11 Jan 1999 18:11:18 -0000 Message-ID: <369A3F54.84D71333@cybertrails.com> Date: Mon, 11 Jan 1999 11:13:40 -0700 From: George Vagner X-Mailer: Mozilla 4.06 [en] (Win98; U) MIME-Version: 1.0 To: Andrew Sherrod CC: questions@FreeBSD.ORG Subject: Re: Need help with wd.c References: <19990110195607.19765.rocketmail@send101.yahoomail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i have a tyan 1662 dual ppro and i have the new bios installed version 4.5 i think and i was having the same sort of problem in win 98 where my primary drive was a 5.1 gig udma maxtor and my secondary was a 5.0 gig maxtor not udma. the bios was reporting the secondary drive as a 4 gig and so was fdisk. i tried everything until i downgraded my bios back to 3.03 and everything is back to normal size. you can download the older bios from their site. www.tyan.com Andrew Sherrod wrote: > > Okay, I need a hard-drive guru to help me figure something out. > > I had a number of problems getting FBSD to recognize the actual size > of my hard drives. (Eventually I fell back on the old hack of adding a > DOS partition and then deleting it once the geometry was recognized.) > > To start: Hardware: Tyan Trinity motherboard with AMD K6-2 350 > processor. LBA activated. (Hard drive data to follow). > Running 2.2.8 Free BSD only. No other operating systems. > > Okay... > > Here is "dmesg | grep wd" : > > wdc0 at 0x1f0-0x1f7irq 14 on isa > wdco: unit 0 (wd0): > wd0: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T 512 B/S > wdc0: unit 1 (wd1): > wd1: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S > wdc1 at 0x170-0x177 irq 15on isa > wdc1: unit 0(wd2): > wdc2: 1888MB (3866940 sectors), 4092 cyls, 15 heads, 63 S/T, 512 B/s > [omitting CDROM info, as it is irrelevant] > > The first size is correct. The second is actually 3016 MB. The third > is 4112MB. > > I added the following code to wd.c and recompiled the kernel: > > printf("%d:LBA Size: %lu - Read as %lu sectors\n", > lunit, > du->dk_params.wdp_lbasize, > du->dk_dd.d_secperunit); > > As I understand the code, if the drive reports an LBA size, this > should be used as the sectors per unit. However, after recompiling > "dmesg | grep LBA" gives: > > 0:LBA Size: 16514064 - Read as 16514064 sectors > 1:LBA Size: 6185088 - Read as 4124736 sectors > 2:LBA Size: 8439184 - Read as 3866940 sectors > > The first is right. The next two make no sense to me. > > Can anyone help explain this? > > Andrew Sherrod > > (I don't follow questions@FreeBSD.org, so please cc my email address > with the answer...) > > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message