>>>>> "Matthew Z. Stout" <firstname.lastname@example.org> writes:
> I have sent several pieces of e-mail in the past few days, and am in
> desperate need of a reply. I need to know the exact procedure for
> preparing a new hard drive for use in a FreeBSD 2.1 machine. I have a
> 2.2 gig SCSI-2 hard drive, and have been struggling with fdisk and
> newfs for a week now. I simply need someone to outline the proper
> steps for use of fdisk, newfs and mount in the installation of this
> hard drive.
There's a posting I saved from Usenet last month at the end of this
message. Another alternative is to run the installation program (it's
/stand/sysinstall), use the partition and fdisk editors to set up the
new disk and use the 'w' option to write them to the disk. Make sure
you quit before it starts actually installing anything, though!
If you're worried about damaging your existing disk, you could
remove/disconnect it, boot off an installation floppy and setup the
new disk in the same way.
(Disclaimer - I don't have a second disk, I haven't tried any of these
procedures myself and I don't know if any of them actually work. Make
sure you have everything backed up before you start)
From: Ron Bolin <email@example.com>
Subject: Howto Add a 2nd SCSI Disk, example
Date: Thu, 28 Mar 1996 07:05:55 -0500
Organization: Federated Systems Group
Just for documentation purposes, I figured out how to add a second
SCSI disk (with Sean Fagan's tip). Here is the basics with an example
of adding sd2 (on my system sd0 is for NT, sd1 is freebsd, sd2 is the
2nd freebsd disk I want to add):
1. Figure out your disk parameters and make an entry in /etc/disktab.
For me it was a st12400n.
2. Zero out the boot block of the new disk with:
dd if=/dev/zero of=/dev/rsd2 bs=1k count=1
3. fdisk -u /dev/rsd2, and update necessary info in the partition
you wish to use. I used partion 3 (aka /dev/sd2c).
4. disklabel -rw /dev/sd2 st12400n.
5. newfs -T st12400n /dev/rsd2c.
6. run fsck /dev/rsd2c.
7. mount disk on a valid mount point.
8. add entry to /etc/fstab for automount.
Hope this helps anyone that needs to add a second SCSI disk.