Date: Sun, 10 Jan 1999 11:56:07 -0800 (PST) From: Andrew Sherrod <ixkatl@yahoo.com> To: questions@FreeBSD.ORG Subject: Need help with wd.c Message-ID: <19990110195607.19765.rocketmail@send101.yahoomail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990110195607.19765.rocketmail>