This Sheet describes the procedure I used to install a second hard drive. The original 1.2GB drive was getting cramped, so I decided to add a second drive (as /var) to free-up space on the /usr filesystem (/var was a symlink to /usr/var).
controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
disk1a> boot -s
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a
# /stand/sysinstall
wd1s1b swap 128MB as swap
wd1s1e /var remaining as UFS
Choose 'W' to write changes to disk, then choose 'Q' to continue.
# Device Mountpoint FStype Options Dump Pass#
/dev/wd1s1b none swap sw 0 0
/dev/wd1s1e /var ufs rw 2 2
Set the 'Pass#' as shown, or fsck will not automatically preen the filesystem on startup.
# rm /var
# mkdir /var
# cd /dev
# ./MAKEDEV all
# mount /dev/wd1s1e /var
# shutdown now
# tunefs -n enable /dev/rwd1s1e
# mount -u /
# mount -a -t ufs
# swapon -a
# cd /usr/var
# tar cf - . | (cd /var; tar xf - )
# ls -al /var (Check that files were properly copied)
# rm -rf /usr/var