Date: Mon, 11 Jan 1999 11:13:40 -0700 From: George Vagner <kf7nn1@cybertrails.com> To: Andrew Sherrod <ixkatl@yahoo.com> Cc: questions@FreeBSD.ORG Subject: Re: Need help with wd.c Message-ID: <369A3F54.84D71333@cybertrails.com> References: <19990110195607.19765.rocketmail@send101.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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): <QUANTUM FIREBALL SE8.4A>
> wd0: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T 512 B/S
> wdc0: unit 1 (wd1): <WDCAC33100H>
> 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): <Maxtor 84320D4>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?369A3F54.84D71333>
