Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!convex!hermes.oc.com!news.unt.edu!cs.utexas.edu!howland.reston.ans.net!gatech!swiss.ans.net!malgudi.oar.net!kira.cc.uakron.edu!news.csuohio.edu!stever From: stever@csuohio.edu (Steve Ratliff) Subject: Re: Add 2nd hard drive Message-ID: <1994Sep2.052039.2127@news.csuohio.edu> Sender: news@news.csuohio.edu (USENET News System) Organization: Cleveland State University X-Newsreader: TIN [version 1.2 PL2] References: <341m5a$dju@usenet.srv.cis.pitt.edu> Date: Fri, 2 Sep 1994 05:20:39 GMT Lines: 47 Ming Y Haung (myhst1+@pitt.edu) wrote: : I got another hard-drive and want to add to my computer. I am using : FreeBSD 1.1.5.1. Can anyone tell me the steps to add the drive. In : details, I want to givethe 2nd hdd 3 partions, one will mount under : /usr/X386, the 2nd partion will be under /usr/local, and the third one : will be used as swap space. On the off chance that no one has e-mailed you a more detailed set of instructions, I'll give you the thumbnail version. The 3 second answer is to get "Unix System Administration Handbook" by Nemeth, Snyder, and Seebass. ISBN 0-13-933441-6 A great book and about 80% applicable to Free/NetBSD. The thumbnail sketch is to very carefully read the first two or three screens of /etc/disktab. This explains the format of a disktab entry. Also look at the various example entries and do a "disklabel -r wd0" to see how your existing drive is set-up. You will need to know from the new drive's data sheet how many cylinders, heads, and sectors/track it has. You then get out a calculator and start writing your disktab entry making sure that you allocate partitions in whole cylinder groupings. You multiply the number of heads times the number of sectors in a track to get the number of sectors/cylinder. Assign multiples of this number to each partition. The b, c, and d partitions are special. b is the swap partion, while c is the entire BSD portion of the drive and d is the entire drive. In your case c and d should be identical and span the entire drive. Set up your /usr/X386 as the a partition, swap as the b partition, and e as the /usr/local partition. Then read the disklabel man page and disklabel your drive. Then read the newfs man page and newfs /dev/rwd1a and /dev/rwd1e. You then run fsck on /dev/rwd1a and /dev/rwd1e. (CAUTION: MAKE SURE YOU DO THE NEWFS ON *WD1* <--- AND NOT *WD0*) You then read the man page on fstab and add entries for these mount points in /etc/fstab. Then reboot and you should be set. Steve -- -------------------------------------------------------------------------- stever@babbage.cba.csuohio.edu "What's better than a free OS?" " A free OS with source." FreeBSD at freebsd.cdrom.com --------------------------------------------------------------------------