*BSD News Article 21735


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!gatech!bloom-beacon.mit.edu!mcrcim.mcgill.edu!homer.cs.mcgill.ca!storm
From: storm@cs.mcgill.ca (Marc WANDSCHNEIDER)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Adding a second Hard Drive
Date: 1 Oct 1993 19:00:47 GMT
Organization: SOCS, McGill University, Montreal, Canada
Lines: 65
Message-ID: <28huov$4bf@homer.cs.mcgill.ca>
References: <7YSHB19D@math.fu-berlin.de>
NNTP-Posting-Host: 132.206.51.6

In article <7YSHB19D@math.fu-berlin.de>,
Jimmy Rearick <rickrac@knock1.mgh.harvard.edu> wrote:
>I have installed a second hard drive in my FreeBSD system.  The system 
>sees the drive.  My question is how can I format it?  I am new in the 
>Unix world and have no clue so have pity on me.

	The way I do this all the time is as follows:

	1. set up an /etc/disktab entry for the drive.
	2. disklabel the drive.
	3. newfs all the partitions.
	4. put them in /etc/fstab, or mount them manually all the time.


	Details:

	1.  To set up an etc/disktab entry for the drive, you need the
	following information:

	    a. Sector size.  For every drive I have seen, this is 512 (bytes)
	    b. Number of tracks per cylinder (ie, #heads)
	    c. Number of sectors per track.
	    d. Number of cylinders.
	    e. The disk type (IDE/SCSI/ST506/ESDI)

qp120at|Quantum Peripherals 120MB IDE:\
	:dt=ESDI:ty=winchester:se#512:nt#9:ns#32:nc#813:sf: \
	:pa#13824:oa#0:ta=4.2BSD:ba#4096:fa#512: \
	:pb#13824:ob#13824:tb=swap: \
	:pc#234144:oc#0: \
	:ph#206496:oh#27648:th=4.2BSD:bh#4096:fh#512:

	You can read the FAQ by Dave Burgess for more information what 
	the partition lettering scheme is, and what they respresent.

	2. Once you have the disktab entry set up, then you need to
	disklabel the drive.

	For example, if the new disk is sd1, then you can do:

	% disklabel -w -r sd1 mysddtentry

	WHere mysddtentry is the Disktab entry you just created for this
	scsi drive (man disktab for other info...)


	3. The disk is now partitioned and ready to go.  You just have to
	newfs the partitions.  Say you created a, b, and e partitions.
	Then you would:

	% newfs /dev/rsd1a
	% newfs /dev/rsd1b
	% newfs /dev/rsd1e

	4. Put the disks in /etc/fstab.  Read the man page on this for more
	info.


						Toodlepip!
						Marc 'em.
-- 
----------------------------------------------------------------------------
Marc Wandschneider					    Seattle, WA
	"Satan has a stranglehold on my toilet and he won't let go!"
			   - frm the Weekly World News