Subject: 8GB fdisk limit?
To: None <netbsd-help@NetBSD.org>
From: Justin Dittmann <jrdittmann@wisc.edu>
List: netbsd-help
Date: 04/16/2005 17:13:02
Hey-

I'm moving my PII 400 system (rock solid.. nothing's died on it since 
1999.. hehe) from linux to NetBSD - I have one 6 GB hard drive that 
NetBSD is installed on, and am adding a 120GB hard drive for storage.

I can't seem to partition the 120GB drive past the 8GB limit, no 
matter what I try.

Here's the dmesg:

wd1 at atabus2 drive 1: <ST3120026A>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)

And here's the output from fdisk wd1:

NetBSD disklabel disk geometry:
cylinders: 232581, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 234441648

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 16514064

Partition table:
0: Linux native (sysid 131)
     start 63, size 234436482 (114471 MB, Cyls 0-14593)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.

Now, whenever I'm partitioning the drive, it will only let me put up 
to cylinder 1028 (8GB limit).

I found a document at 
http://www.monkey.org/openbsd/archive/misc/0102/msg01752.html that 
explains how to get around this in OpenBSD, but for some reason when 
I run it (with 14593/255/63 as the number of 
cylinders/heads/(sectors/track), it won't let me partition past 1023 
cylinders (keeps the BIOS disk geometry no matter what I tell it).

How can I *fix* this?

-Justin