Subject: Re: Copying Boot Partition
To: Neil Young <nyoung@fieldmuseum.org>
From: Giles Lean <giles@nemeton.com.au>
List: netbsd-help
Date: 12/15/2001 07:20:21
> I am a new NetBSD convert and have successfully built a RAID 1 mirror as my
> root with Raidframe.  My question is, how do I go about copying my basic
> system to the mirror drive and make it bootable, in the event that the
> primary drive goes south?

What platform?  Probably i386, but it doesn't have to be ...

> I've tried a number of combinations of disklabel, fdisk, etc and have only
> managed to mangle the label and partitioning (though it was a good test of
> the mirror and recovering the OS from CD-ROM, which worked like a charm.)

Assuming i386, do your disks have only NetBSD on them?  If so then you
should not need to do too much to have this work:

a) disklabel the second disk (will have been done prior to RAID creation?)
b) newfs the non-RAID boot filesystem on the second disk
c) run installboot specifying the second disk and its boot filesystem

If you have partitioned the second disk with fdisk then the details
may change ... I'm not familiar with that configuration; I don't share
my NetBSD disks with other operating systems.

If this doesn't work, tell us some more about the configuration
(platform, drive types, etc) and what you did, and doubtless someone
will see what is wrong.
	   
Regards,

Giles