*BSD News Article 91904


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!coconut!www.nntp.primenet.com!nntp.primenet.com!dispatch.news.demon.net!demon!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.mathworks.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.lan.awfulhak.org (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: New hard disk
Date: 24 Mar 1997 17:02:39 GMT
Organization: Awfulhak Ltd.
Message-ID: <5h6c3f$1mk@ui-gate.utell.co.uk>
References: <33326EC5.794BDF32@wolf.co.net> <33333ED7.410B@wavefront.com>
Reply-To: brian@awfulhak.demon.co.uk, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Lines: 100
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37707

In article <33333ED7.410B@wavefront.com>,
	aimee abbott <aimee@wavefront.com> writes:
> abbott at MPCA wrote:
> 
>> Hello everyone!
>> 
>> It seems like this is an age old question.  I have been looking on the
>> net and I can't seem to find any where that posts a step by step
>> instruction of how to add a second hard drive to my bsd system.  If
>> anyone knows of a web page that has such information could you please
>> send me the URL.  I have been through most of www.FreeBSD.org with still
>> questions unanswered.  -- Advance thanks.
> 
> OK, here is some updated information.  What I am doing is adding a
> second hard drive to an exsiting system.  I have tried to step by step
> follow
> http://www.FreeBSD.org/FAQ/FAQ39.html#39
> I can seem to fdisk from sysinstall just fine.  Then I try to do the
> label editor
> Disk: wd1       Partition name: wd1s1   Free: 0 blocks (0MB)
> Part    Mount            Size Newfs   Part    Mount            Size
> Newfs
> ----    -----            ---- -----   ----    -----            ----
> -----
> wd1s1e  /pca           1024MB UFS Y
> wd1s1b  <none>           64MB SWAP
> wd1s1f  /scr            927MB UFS Y
> 
> 
>  and I am trying to use the whole 2gig drive and I create a 1024M and I
> say to mount it at /pca, then I create a 64M and I make that swap, then
> I create 927M and mount it /src.  When I try to write I get an error, 
> Unable to add /dev/wd1s1b as a swap device: device not configured
> I say OK to that and then I get  
> Error mounting /mnt/dev/wd1s1e on /mnt/pca : No such file or directory
> When I say OK to that one I get
> Error mounting /mnt/dev/wd1s1f on /mnt/scr :No such file or directory
> 
> If I give up on life being easy and I try to do a manual disk label, I
> get the following.
> 
> # disklabel -r /dev/rwd1s1
> # /dev/rwd1s1:
> type: ESDI
> disk: wd1s1
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 256
> sectors/unit: 4127760
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0 
> 
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c:  4127760        0    unused        0     0         # (Cyl.    0 -
> 256*)
> # 
> 
> This does not look right to me.  No e: or f: and no swap.  
> 
> Any advice would be appreciated here.  
> 
> --ja
> 
> John Abbott
> jabbott@wolf.co.net

I'm not sure what's wrong with sysinstall (have you got the
necessary wd1s1? devs in /dev ?), but try doing a
disklabel -r -e wd1s1

and replacing that last line with
  a:  2097152        0    4.2BSD        0     0
  b:  131072   2097152    4.2BSD        0     0
  c:  4127760        0    unused        0     0
  e:  1898496  2228224    4.2BSD        0     0

Then update /etc/fstab...

All I've done is multiplied your numbers by 2048 (the number of
512byte sectors in a Mb) and done some adding.

It's best to have a partition before the 'b' partition as a UFS-
formated disk has enough blank space at the start for the label.
Swap doesn't (and shits all over it) - at least it used to a
few years ago.

-- 
Brian <brian@awfulhak.demon.co.uk> <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour !