Subject: Re: installing on two HDDs
To: Saverio Perugini <sperugin@csgrad.cs.vt.edu>
From: Jaap Boender <jaapb@kerguelen.org>
List: netbsd-help
Date: 08/20/2000 21:21:41
Saverio Perugini <sperugin@csgrad.cs.vt.edu> wrote:
: Can NetBSD 1.4.2 run on two HDDs?
: <setup>
: How do I go about doing what I describe above.

I have successfully installed NetBSD on *three* disks. The setup was as
follows:

sd0a /
sd0b swap
sd1a /usr
sd2a /home

I installed a minimum NetBSD system on sd0. I booted it, and then I set up
disk labels for sd1 and sd2 (see the disklabel(8) and disktab(5) man pages).
I then did a newfs on sd1a and sd2a.

Now, I had to move the contents of the /usr directory on sd0a to sd1a. For that,
I mounted sd1a on /mnt, cd'ed to the /usr directory and used tar to copy all
the files with their right permissions to /mnt:
tar cfp - * | (cd /mnt; tar xvfp -) 

I unmounted /mnt, emptied the /usr directory on sd1a (do not remove the
directory itself, you need it as a mount point), and mounted sd1a on /usr.

The minimum installation does not put any files, as far as I know, in /home,
so the only thing you have to do for your /home partition (which in my case is
sd2a, but in yours it will probably be sd1d or something) is run newfs on it
and mount it on /home. 

Don't forget to change /etc/fstab, so that your disks will always be mounted
in the right way, and you're set. You can now download more installation
packages (from ftp://<your.netbsd.ftp.site>/pub/NetBSD/NetBSD-1.4.2/sparc/binary/sets), like comp.tgz, man.tgz and so forth. Unpack them, and you should have
a working NetBSD system.

I hope this helps,

  Jaap Boender

---
Locutiones in Latinum conversae multo sapientes videntur.