Subject: Re: =?US-ASCII?Q?=3Ffdisk=3F?=
To: Bob Bostwick <bobb@digitechsystems.com>
From: Kevin Lahey <kml@patheticgeek.net>
List: port-cobalt
Date: 08/06/2002 16:26:38
In message <003001c23d91$0469f3c0$440a010a@lnk.digitechsystems.com>,
"Bob Bostwick" writes:
>
>	I've been trying to install NetBSD 1.5.3 on my RAQ2 for about 3
>weeks now.  I have an OpenBSD box setup running NFS server, and can get
>the RAQ2 to net boot to it. I then try to setup the drive for NetBSD,
>but every time I try *desperate laugh*, I get a drive looking like
>this...
>
>Partition table:
>0: sysid 131 (Linux native)
>    start 1, size 1024127 (500 MB), flag 0x0
>        beg: cylinder    0, head   0, sector  2
>        end: cylinder 1015, head  15, sector 63
>1: sysid 130 (Linux swap or Prime or Solaris)
>    start 1024128, size 263088 (128 MB), flag 0x0
>        beg: cylinder 1016, head   0, sector  1
>        end: cylinder 1023, head  15, sector 63
>2: sysid 169 (NetBSD)
>    start 1287216, size 410256 (200 MB), flag 0x0
>        beg: cylinder 1023, head  15, sector 63
>        end: cylinder 1023, head  15, sector 63

Here's your problem.  You can have only one NetBSD FDISK slice
on the disk.  You should then carve up that FDISK slice into
the different filesystems/partitions for NetBSD, as you have
successfully.  If you set the sysid to something besides 169
or 165 (the old sysid for NetBSD) in slice 2, you should be in 
better shape.

>3: sysid 169 (NetBSD)
>    start 1697472, size 23732352 (11588 MB), flag 0x0
>        beg: cylinder 1023, head  15, sector 63
>        end: cylinder 1023, head  15, sector 63

>8 partitions:
>#        size   offset     fstype   [fsize bsize cpg/sgs]
>  a: 23732352  1697472     unused        0     0         # (Cyl. 1684 -
>25227)

Okay, usually partition 'c' is set up to hold the entire slice,
and 'd' is set up to hold the entire disk.   These aren't ever
mounted, but are used as sort of placeholders.  Here you are using 'a', 
which we usually use for '/'.

>  c:   410256  1287216     unused        0     0         # (Cyl. 1277 -
>1683)
>  d: 25429824        0     unused        0     0         # (Cyl.    0 -
>25227)
>  f:   263088  1024128       swap                        # (Cyl. 1016 -
>1276)

Partition 'b' is usually used for swap.  I don't think that this should
bite you, but who knows.  I'd get it set up right before trying to
install the OS.

>  g:   410256  1287216     unused        0     0         # (Cyl. 1277 -
>1683)

Here's my disklabel (for a larger disk, obviously):

9 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:   1048320   2097648     4.2BSD   1024  8192    16   # (Cyl. 2081 - 3120)
 b:   1049328   3145968       swap                      # (Cyl. 3121 - 4161)
 c: 115249680   2097648     unused      0     0         # (Cyl. 2081 - 116415)
 d: 117347328         0     unused      0     0         # (Cyl.    0 - 116415)
 e:   2097585        63 Linux Ext2      0     0         # (Cyl.    0*- 2080)
 f:  12582864   6291936     4.2BSD   1024  8192    16   # (Cyl. 6242 - 18724)
 g:  20971440  18874800     4.2BSD   1024  8192    16   # (Cyl. 18725 - 39529)
 h:  77501088  39846240     4.2BSD   1024  8192    16   # (Cyl. 39530 - 116415)
 i:   2096640   4195296     4.2BSD   1024  8192    16   # (Cyl. 4162 - 6241)

[Now that I'm posting this for the world to see, I'm wondering why 
I used a 500 MB swap partition, but there it is...]

Good luck,

Kevin
kml@patheticgeek.net