Subject: Re: install docs [was: Re: Im sorry but how do you get started]
To: None <rthille@gte.net>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: port-cobalt
Date: 05/15/2001 18:55:41
On Tue, 15 May 2001 rthille@gte.net wrote:
>     Partition table:
>     0: sysid 131 (Linux native)
> 	start 1, size 131039 (63 MB), flag 0x0
> 	    beg: cylinder    0, head   0, sector  2
> 	    end: cylinder  129, head  15, sector 63
>     1: sysid 130 (Linux swap or Prime or Solaris)
> 	start 131040, size 263088 (128 MB), flag 0x0
> 	    beg: cylinder  130, head   0, sector  1
> 	    end: cylinder  390, head  15, sector 63
>     2: sysid 169 (NetBSD)
> 	start 394128, size 33356736 (16287 MB), flag 0x0
> 	    beg: cylinder  391, head   0, sector  1
> 	    end: cylinder 1022, head  15, sector 63
>     3: <UNUSED>
>     bsdqube#

This looks ok. 

>     7 partitions:
>     #        size   offset     fstype   [fsize bsize   cpg]
>       d: 33700864        0     unused        0     0    # (Cyl.0 - 33482)
>       e:   131039        1 Linux Ext2        0     0    # (Cyl. 0*- 129)
>       f:   263088   131040       swap                   # (Cyl. 130 - 390)
>       a: 33306730   394128 Linux Ext2        0     0    # (Cyl. 391-33482)


Um, you should move the first MBR partition to a different NetBSD
partition (a->g or so), and create a NetBSD ffs "a" (root) partition. 

Here's what I have:

disklabel:

#        size   offset     fstype   [fsize bsize cpg/sgs]
  a:  6722352  1696464     4.2BSD     1024  8192    16   # (Cyl. 2992 - 14847)
  c:  6722352  1696464     unused        0     0         # (Cyl. 2992 - 14847)
  d:  8418816        0     unused        0     0         # (Cyl.    0 - 14847)
  e:  1024001        1 Linux Ext2        0     0         # (Cyl.    0*- 1805)
  f:   262521  1024002       swap                        # (Cyl. 1806 - 2268)
  g:   409941  1286523 Linux Ext2        0     0         # (Cyl. 2269 - 2991)


wd0e is the ext2 boot partition - here's what I have in fstab:

raqim# cat /etc/fstab
/dev/wd0a       /       ffs     rw,softdep      0 1
/dev/wd0f       none    swap    sw              0 0
/dev/wd0e       /altroot ext2fs rw              0 2
none            /kern   kernfs  rw              0 0
none            /proc   procfs  rw              0 0


After that, I also have:

lrwxr-xr-x   1 root  wheel       13 May  2 03:50 /boot -> /altroot/boot
-rw-r--r--   1 root  wheel  2169476 May  2 03:55 /netbsd
lrwxr-xr-x   1 root  wheel       15 May  2 03:54 /netbsd.gz -> /boot/vmlinux.gz

Some tools want an uncompressed netbsd kernel in /, for kernel updating
purpose, I just so a "cp netbsd / ; gzip -c /netbsd >/netbsd.gz". 


FWIW, my fdisk says:

Partition table:
0: sysid 131 (Linux native)
    start 1, size 1024001 (500 MB), flag 0x0
        beg: cylinder    0, head   0, sector  2
        end: cylinder 1023, head   8, sector 63
1: sysid 130 (Linux swap or Prime or Solaris)
    start 1024002, size 262521 (128 MB), flag 0x0
        beg: cylinder 1023, head   8, sector 63
        end: cylinder 1023, head   8, sector 63
2: sysid 131 (Linux native)
    start 1286523, size 409941 (200 MB), flag 0x0
        beg: cylinder 1023, head   8, sector 63
        end: cylinder 1023, head   8, sector 63
3: sysid 169 (NetBSD)
    start 1696464, size 6722352 (3282 MB), flag 0x0
        beg: cylinder  944, head   0, sector  1
        end: cylinder  511, head   8, sector 63


>     bsdqube# disklabel -r -R wd0 x
>     wd0: no disk label

This command should do the trick. I can only imagine the filesystem type
of the 'a' partition not being ffs is a problem. 


 - Hubert

-- 
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>