*BSD News Article 67767


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!imci5!imci4!newsfeed.internetmci.com!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: disklabel, newfs, etc.--> Adding a second SCSI drive?!
Date: 5 May 1996 15:41:32 GMT
Organization: Private BSD site, Dresden
Lines: 38
Message-ID: <4mii7c$sb9@uriah.heep.sax.de>
References: <4meov0$u4k@news.nyu.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

sdp4198@is2.nyu.edu (Shoel Perelman) wrote:

> I've got a system setup with one IDE drive (all bootable and working
> fine) and a SCSI drive (not working yet).  I need to format and get
> the SCSI drive up and running with its own filesystem, etc.

Assuming a fully dedicated (to FreeBSD) drive:

. get the latest source for /sbin/disklabel, compile and install it

. then (you should be able to cut&paste the below if you want, but it
  assumes /bin/sh syntax :)

export PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export EDITOR=ed
disklabel -Brw sd0 auto
disklabel -e sd0 <<EOF
/^[ ]*c:/
t .
s/c:/e:/
s/unused.*/4.2BSD 1024 8192/
w
q
EOF
newfs -d 0 /dev/rsd0e

Now, add /dev/sd0e somewhere to your fstab, and create a mountpoint
for it.

If the above is too magic for you :), you might wish to read the man
pages of the invoked commands.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)