Subject: Re: bios disk geometry - problem or not?
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 08/22/2005 20:53:44
On Mon, Aug 22, 2005 at 03:30:35PM +0200, rudolf wrote:
> Hi,
> 
> I have 2 disks of the same type.
... 
> The problem is different 'BIOS disk geometry' as reported by fdisk - I 
> suppose it's probably not NetBSD's problem, but could this make any harm 
> if I'll use the disks in RAID 1 configuration (RAIDframe)?
...
> [16:50:01 root@gordon:~/backup]# fdisk /dev/rwd1d
> Disk: /dev/rwd1d
> NetBSD disklabel disk geometry:
> cylinders: 387621, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
> total sectors: 390721968
> 
> BIOS disk geometry:
> cylinders: 1024, heads: 81, sectors/track: 63 (5103 sectors/cylinder)
> total sectors: 390721968
...
> [16:50:06 root@gordon:~/backup]# fdisk /dev/rwd0d
> Disk: /dev/rwd0d
> NetBSD disklabel disk geometry:
> cylinders: 387621, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
> total sectors: 390721968
> 
> BIOS disk geometry:
> cylinders: 1024, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
> total sectors: 390721968

I'd suspect that the BIOS configuration is set to different modes for the
two disks (the BIOS may have options like 'large', 'LBA' etc).

As far as NetBSD is concerned it makes no difference, the only place the
BIOS geometry matters is in the mbr partition table - end even there the
NetBSD mbr code will validate the CHS values against the LBA sector
number and use BIOS LBA reads if they differ.


	David

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