*BSD News Article 64365


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.mel.aone.net.au!imci4!imci3!imci2!news.internetMCI.com!newsfeed.internetmci.com!nntp-hub2.barrnet.net!nntp-ucb.barrnet.net!tfs.com!mailhub.tfs.com!julian
From: julian@mailhub.tfs.com (Julian Elischer)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Howto Add a 2nd SCSI Disk, example
Date: 28 Mar 1996 23:11:43 GMT
Organization: TRW Financial Systems, Oakland, CA
Lines: 90
Message-ID: <4jf6bf$lqj@times.tfs.com>
References: <315A80A3.41C67EA6@mindspring.com>
NNTP-Posting-Host: mailhub.tfs.com

EEEK!
Several things need correcting here!

In article <315A80A3.41C67EA6@mindspring.com>,
Ron Bolin  <rlb@mindspring.com> wrote:
>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.

ok.. what I do is use the entry for the floppy and then use
disklabel -e to interactively edit it after install to correct
all the figures.

>2. Zero out the boot block of the new disk with:
>   dd if=/dev/zero of=/dev/rsd2 bs=1k count=1

hmmmm a good idea though not always needed.

>3. fdisk -u /dev/rsd2, and update necessary info in the partition
>   you wish to use. I used partion 3 (aka /dev/sd2c).
weeellllll sd2c is by definition whichever slice of 
sd2 is the BSD slice..

if you used slice 0 it would still be sd2c

the 'c' partition is 'special' in that is always reflects the entire BSD part
of the disk.
what you are thinging of is possibly. sd2s2
(disk 2, 3rd slice) If this is a BSD slice it iis functionally equivalent
to sd2c.
here I need to digress into disk naming:

sd0 ..................whole disk of sd0
sd0s0 ................first 'slice' of sd0
sd0s0a ...............first BSD psrtition on first slice
sd0a   ...............'nickname' for partition 'a' on the FIRST BSD SLICE

___________________________________________________________________
|      sd0                                                        |
-------------------------------------------------------------------
___________________________________________________________________
|      sd0s0         |     sd0s1    |  sd0s2      |   sd0s3       |
-------------------------------------------------------------------
______________________
| sd0s0c = sd0c      |   * 'c' partition is a nickname for sd0s0
----------------------      or whichever slice it is in..
______________________
|sd0a |  sd0d | sd0e |   *sd0a is also known as sd0s0a, sd0d = sd0s0d, etc..
----------------------


>4. disklabel -rw /dev/sd2 st12400n.
ok, though not always needed.. I use "floppy" and then use disklabel -e
to type in the figures 'interactively'

>5. newfs -T st12400n /dev/rsd2c.
NO NO NO!
yo are (see above) doing a newfs on the entire BSD slice
you don't want to do this, though it may
work for you for now..
you should set a real partition a,b,d,e,f,g,h to cover the are you want
and use that... 'c' has some special characteristics you might not want..
(e.g. I'm not convinced that badblocking applies all through 'c')

>6. run fsck /dev/rsd2c.
no no no.. see above.. use 'e' or something....

>7. mount disk on a valid mount point.
yes

>8. add entry to /etc/fstab for automount.
yes
>
>Hope this helps anyone that needs to add a second SCSI disk.
>
You know we gotta have a dozen docs in people's home dir describing this..
it's been done enough.....

julian
+----------------------------------+       ______ _  __
|   __--_|\  Julian Elischer       |       \     U \/ / On assignment
|  /       \ julian@tfs.com        +------>x   USA    \ in a very strange
| (   OZ    ) 300 lakeside Dr. oakland CA. \___   ___ | country !
+- X_.---._/  USA+(510) 645-3137(wk)           \_/   \\          ><DARWIN>
          v                                                        LL  LL