Subject: Re: NetBSD installation
To: Georges Heinesch <geohei-ml@geohei.lu>
From: Bruce Anderson <brucea@spacestar.net>
List: port-i386
Date: 09/21/2001 00:07:31
On Wed, Sep 19, 2001 9:08 AM, Georges Heinesch <mailto:geohei-ml@geohei.lu>
wrote:
>Ok, I reformulate the questions somewhat:
>
>1. Is there anything wrong with this fdisk output?
>
>   ----- cut here -----
>   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 27 (unknown)
>       start 4192965, size 4192965 (2047 MB), flag 0x80
>       beg: cylinder  261, head   0, sector  1
>       end: cylinder  521, head 254, sector 63
>   3: <UNUSED>
>   ----- cut here -----

Parti  start      size        end
0         63	4192902    4192965
2    4192965   4192965    8385930
1    8385930  25350570   33736500
3   <UNUSED>

This looks ok.

Post   dmesg |grep ^wd  along with your fdisk output.

Ignore the CHS output, only start and size will be correct.

Note that you only have 33736500 sectors in the table.
33736500/2^21 = 16.0868GB

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>

bruce@cougar$ dmesg |grep ^wd1
wd1 at pciide0 channel 1 drive 0: <WDC WD450AA-00BAA0>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 42934 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 87930864
sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
transfers)
---------


1) Take the number of sectors from dmesg.
2) Do the math:
   cougar wd1 = 87930864 sectors.
   For Partition 0: size + start <= 87930864 sectors.
   63 + 87930801 = 87930864 sectors.
87930864/2^21 = 41.92GB




" Stamp out root logins .  .  .  . su "   --Bruce Anderson  
 This message was created and sent using Cyberdog 2.0, MacOS 8.6,
 awk, find, sed, sendmail, sh, and NetBSD a free Multi-Platform OS.
 NetBSD runs on  44 different system architectures featuring 16
 distinct families of CPUs.   http://www.netbsd.org/