Subject: Re: Installing on more than one harddisk
To: None <bamdad@mehr.sharif.ac.ir>
From: maximum entropy <entropy@tappedin.com>
List: port-vax
Date: 05/27/2001 08:29:37
>Date: Sun, 27 May 2001 13:14:51 +0430 (IRST)
>From: Bamdad Ehterami <bamdad@mehr.sharif.ac.ir>
>
>I think I did label my disks, and newfs-ed them but I could not
>write boot blocks.... and by the way, should the disks be mounted
>somewhere special in the file system or anywhere will work?

Once you have labeled the disk, writing the bootblocks is pretty
easy.  Or at least it should be; the man page for installboot in the
1.5.1_BETA2 set is a little bit screwed up.

Basically all you need to do is the following:
# cd /usr/mdec
# ./installboot /dev/rsd0c xxboot
# mount /dev/sd0a /mnt
# cp boot /mnt

It doesn't really matter where you mount the disks to install the
sets.  Your running netbooted system is presumably already mounted on
/ and /usr, so you don't want to use those.  There should already be a
/mnt directory, which is a convenient place to temporarily mount
filesystems.

Assuming that you have labeled your disks with sd0a to be used as /,
sd0b to be used as swap, and sd1e to be used as /usr, you can build
the system like this:

# mount /dev/sd0a /mnt
# mkdir /mnt/usr
# mount /dev/sd1e /mnt/usr
# cd /usr/distrib/20010509-1.5.1_BETA2/binary/sets
	(or wherever you left the distributions sets)
# /bin/sh
	(OK, so I never bothered to learn csh)
# for file in *.tgz ; do tar -C /mnt -xzvpf $file ; done
# cd /mnt/etc
# ed fstab
a
/dev/sd0a / ffs rw 1 1
/dev/sd0b none swap sw 0 0
/dev/sd1e /usr ffs rw 1 2
.
wq
# cp /etc/rc.conf /mnt/etc
	(Also copy over any other files you might need such as myname,
	mygate, ifconfig.le0, hosts, resolv.conf)
# sync
# reboot

Good luck, and happy VAXing...

Cheers,
entropy


--
entropy -- it's not just a good idea, it's the second law.