Subject: Booting from RAIDframe, netbsd 1.5.1 i386
To: None <netbsd-help@netbsd.org>
From: cpctc <cpctc@vt.edu>
List: netbsd-help
Date: 09/13/2001 23:18:49
NetBSD-help:

I've got some RAIDframe devices configured and mounted successfully, but I can't seem to get my machine to boot from a hard drive
(wd0).  The BIOS says something like "looking for boot record on IDE-0... OK", then nothing else.

I tried to follow Luke Mewburn's example as best I could: http://mail-index.netbsd.org/current-users/2001/01/18/0001.html

... but I don't understand how booting works, so I'm stuck.

See my disklabel below... I did:

installboot /usr/mdec/biosboot.sym /dev/wd0h
and
installboot /usr/mdec/biosboot.sym /dev/rraid0

.. both completed successfully (apparently), but the system doesn't boot from ide drives.

I'm currently netbooting with a floppy to a NFS filesystem from which I mount the local hard drives and RAIDframe raid0,1,2,3
devices successfully.

The netbsd-1.5.1 announcement said support for booting from raid-1 filesystems was added, but it didn't give details...

Any help is greatly appreciated.

Note that I don't fully understand disk labels either.  :)

My disklabel for wd0 (same as wd1) follows:

partition "a" becomes:
    - device raid0
    - RAID-1 (mirroring)
    - to be mounted as "/"

partition "b" becomes raid1, to be mounted as swap, RAID-0 (striping)

partition "e" becomes:
    - device raid2
    - RAID-1 (mirroring)
    - to be mounted as "/usr"

partition "f" becomes:
    - device raid3
    - RAID-0 (striping)
    - to be mounted as "/extra"

...

# /dev/rwd0d:
type: ESDI
disk: Conner Periphera
label: munich0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 2479
total sectors: 2499030
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size   offset     fstype   [fsize bsize cpg/sgs]
  a:   201600   100800       RAID                        # (Cyl.  100 - 299)
  b:    65536   302400       RAID                        # (Cyl.  300 - 365*)
  c:  2498967       63     unused        0     0         # (Cyl.    0*- 2479*)
  d:  2499030        0     unused        0     0         # (Cyl.    0 - 2479*)
  e:  1638400   368928       RAID                        # (Cyl.  366 - 1991*)
  f:   409600  2007936       RAID                        # (Cyl. 1992 - 2398*)
  h:   100737       63     4.2BSD        0     0     0   # (Cyl.    0*- 99)