Subject: Re: NetBSD installation
To: None <port-i386@netbsd.org>
From: Georges Heinesch <geohei-ml@geohei.lu>
List: port-i386
Date: 09/25/2001 22:54:31
Quoting Bruce Anderson (24-Sep-01 06:34:30):

> On Sun, Sep 23, 2001 12:45 PM, Georges Heinesch
> <mailto:geohei-ml@geohei.lu> wrote:

>>Another question is that fdisk EndCyl output is always 1022. This is
>>definitely not correct. For other drive I have installed, it is
>>always
>>1023. How come? Shall/Must/Can I correct this?

> Heads and Cylinders are numbered from 0.
> If total number of cylinders is n then the last cylinder is n-1.

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

> correct end: cylinder 1022, head 254, sector 63
> Wrong   end: cylinder 1023, head   0, sector  0

Interesting. Then please look at my 2 disks here:

----- cut here -----
> fdisk wd0
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

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

Partition table:
0: sysid 23 (OS/2 BM: hidden IFS)
    start 63, size 4192902 (2047 MB), flag 0x0
    beg: cylinder    0, head   1, sector  1
    end: cylinder  260, head 254, sector 63
1: sysid 15 (Ext. partition - LBA)
    start 8385930, size 25350570 (12378 MB), flag 0x0
    beg: cylinder  522, head   0, sector  1
    end: cylinder 1023, head 254, sector 63
2: sysid 11 (Primary DOS with 32 bit FAT)
    start 4192965, size 4192965 (2047 MB), flag 0x80
    beg: cylinder  261, head   0, sector  1
    end: cylinder  521, head 254, sector 63
3: <UNUSED>
> fdisk wd1
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

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

Partition table:
0: sysid 15 (Ext. partition - LBA)
    start 16065, size 81931500 (40005 MB), flag 0x0
    beg: cylinder    1, head   0, sector  1
    end: cylinder 1022, head 254, sector 63
1: sysid 169 (NetBSD)
    start 81947565, size 8122275 (3965 MB), flag 0x0
    beg: cylinder 1022, head 254, sector 63
    end: cylinder 1022, head 254, sector 63
2: <UNUSED>
3: <UNUSED>
----- cut here -----

The EndCyl of partition 1 disk wd0 stops at 1023.
Is this also an error?

Your disk also shows something strange. This is your disk from a
previos posting:

----- cut here -----
bruce@cougar$ fdisk wd1
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

BIOS disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

Partition table:
0: sysid 169 (NetBSD)
    start 63, size 87930801 (42934 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder 1022, head  15, sector 63
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
----- cut here -----

Why does it stop at cylinder 1022 and not at 16382?

But the best is Frederick's data (also an early posting in this
thread):

----- cut here -----
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

BIOS disk geometry:
cylinders: 1022 heads: 240 sectors/track: 63 (15120 sectors/cylinder)

Partition table:
0: sysid 12 (Primary DOS with 32 bit FAT - LBA)
    start 63, size 15709617 (7670 MB), flag 0x80
    beg: cylinder    0, head   1, sector  1
    end: cylinder 1023, head 239, sector 63
1: sysid 15 (Ext. partition - LBA)
    start 15709680, size 408240 (199 MB), flag 0x0
    beg: cylinder 1023, head   0, sector  1
    end: cylinder 1023, head 239, sector 63
2: sysid 169 (NetBSD)
    start 16117920, size 7454160 (3639 MB), flag 0x0
    beg: cylinder 1023, head   0, sector  1
    end: cylinder 1023, head 239, sector 63
3: <UNUSED>
----- cut here -----

The BIOS reports 1022, and the EndCyl is 1023.
How do you explan that?

TIA

-- 
Cu  Georges Heinesch, Luxembourg
    geohei@geohei.lu
    http://www.geohei.lu
    PGP RSA & DH/DSS public key on request and on public servers

... watch your 6 ...