Subject: Re: Strange behaviour of NetBSD partitions
To: port i386 <port-i386@netbsd.org>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: port-i386
Date: 09/03/2002 15:14:00
On Tue, Sep 03 2002 at 15:00:36 +0200, Uwe Lienig wrote:
> $ > fdisk /dev/rsd0a
> NetBSD disklabel disk geometry:
> cylinders: 2700 heads: 9 sectors/track: 84 (756 sectors/cylinder)
>
> BIOS disk geometry:
> cylinders: 1006 heads: 64 sectors/track: 32 (2048 sectors/cylinder)
>
> Partition table:
> 0: <UNUSED>
> 1: <UNUSED>
> 2: <UNUSED>
> 3: sysid 169 (NetBSD)
> start 0, size 16 (0 MB), flag 0x80
> beg: cylinder 0, head 0, sector 1
> end: cylinder 0, head 0, sector 16
>
> I wondered why the partition 3 only takes 16 blocks. The disklabel has the
> following layout:
That's ok. This fdisk-thingie is only used by the BIOS and some other OS
like DOS and the like.
> 8 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 131512 32 4.2BSD 1024 8192 16 # (Cyl. 0*- 173)
> b: 523908 131544 swap # (Cyl. 174 - 866)
> c: 2061076 32 unused 0 0 # (Cyl. 0*- 2726*)
> d: 2061108 0 unused 0 0 # (Cyl. 0 - 2726*)
> e: 1048572 655452 4.2BSD 1024 8192 16 # (Cyl. 867 - 2253)
> f: 262332 1704024 4.2BSD 1024 8192 16 # (Cyl. 2254 - 2600)
> g: 94752 1966356 4.2BSD 1024 8192 16 # (Cyl. 2601 - 2726*)
>
> Well, may be netbsd does not care of the partition size given in the partition
> table?!
Äh - which partition table?
> 8 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 262144 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 116*)
> b: 524288 262144 swap # (Cyl. 116*- 349*)
> c: 8388315 0 unused 0 0 # (Cyl. 0 - 3733*)
> d: 7601883 786432 4.2BSD 1024 8192 16 # (Cyl. 349*- 3733*)
^!
c and d have a special meaning. d is the 'whole disc' partition and c is
the 'NetBSD portion of this disc' partition
> I do have netbsd-pmax and netbsd-sparc running, I have some Linux boxes and
> Tru64 boxes as well. I'm not new to UNIX and the different flavours - but please
> tell what I'm doing wrong here!!!
Don't use d on i386 - use e for your filesystem.
--
Dies ist Thilos Unix Signature! Viel Spass damit.