Subject: Re: 200gb hard drive is 127gb only in netbsd
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 08/11/2003 14:35:13
On Mon, Aug 11, 2003 at 02:23:01PM +0200, Lubos Vrbka wrote:
> hi guys,
> 
> i obtained new 200gb wd harddrive. however, netbsd reports 127gb only. 
> can i do something to get it to work on the whole size? btwm, what are 
> the harddrive size limits?

Ok, you've hit the 28bit limit of the ATA specification.
The ATA spec has been extended to allow 48bit addresses, and the netbsd
kernel will use the extended commands (at least in current).

I think the 48bit LBA support also went into 1.6.

> dmesg:
> wd2 at pciide0 channel 1 drive 1: <WDC WD2000JB-32EVA0>
> wd2: drive supports 16-sector pio transfers, lba addressing
> wd2: 127 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 268435455 sectors
> wd2: 32-bit data port
> wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5
> 
> fdisk:
> fdisk: invalid fdisk partition table found

That message just means you have a blank drive (no 0xaa55 at the end of
sector 0).  However it also comes from the 1.6 fdisk, the one in 'current'
has a slightly different text.

Which version of NetBSDis this?

The output from the wd driver was chanegd to 'LBA addressing' in Dec 2000.
I think this was after the 1.5 freeze - so maybe you are running 1.5.?

You'll need to upgrade to 1.6.something

	David

-- 
David Laight: david@l8s.co.uk