Subject: Re: 8GB fdisk limit?
To: Justin Dittmann <jrdittmann@wisc.edu>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 04/17/2005 13:47:42
On Sat, Apr 16, 2005 at 05:13:02PM -0500, Justin Dittmann wrote:
> 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).

Don't use cylinders/head/sector, just put the number of sectors you want,
and let fdisk compute the CHS. it will trucate the cylinder number to 1024,
but that doesn't matter as this is only used by the BIOS in CHS mode.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--