*BSD News Article 70885


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!metro!metro!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!news-res.gsl.net!news.gsl.net!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!jraynard.demon.co.uk!not-for-mail
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Installing 2nd SCSI disk, More Info,  Still lost
Date: 12 Jun 1996 12:37:27 -0000
Organization: A FreeBSD Box
Lines: 95
Message-ID: <4pmdm7$55j@jraynard.demon.co.uk>
References: <31b82c6b.8000894@news.ameritel.net> <31bd6803.4164918@news.hq.af.mil>
NNTP-Posting-Host: localhost.demon.co.uk
X-NNTP-Posting-Host: jraynard.demon.co.uk

In article <31bd6803.4164918@news.hq.af.mil>,
Scott Gregory <sgregory@pubspo.hq.af.mil> wrote:
>
>I want to install another 313m SCSI HD (rsd1) and mount it as
>/www-root.
>
>I have the 2nd drive already partitioned.  I want to use the whole
>disk as /www-root.
>
>I have tried to add this drive through the installation disk, but I
>must be missing something.

OK, there are three stages in making a disk usable by FreeBSD:-

1. Fdisk. This is where you specify information about how the disk is
   divided between operating systems. This is the same concept as
   fdisk in DOS, except that BSD calls them slices, DOS calls them
   "partitions".

2. Disklabel. This is where you specify information about how the disk
   is divided between FreeBSD file systems (/root, /usr, etc). This
   has no analogy in DOS.

3. Newfs. This is when you actually put a file system on the disk, so
   that it's readable by FreeBSD. This is analogous to the "format"
   command in DOS.

Now for how to do what you want from the installation program. (I'm
assuming here that you don't want to put any other OS's on the disk
and you want to have it as a single file system).

1.  Start the program, either by running /stand/sysinstall (if your
    kernel can run gzip'd executables) or by booting from the install 
    disk.

2.  Select "quick installation (for the impatient)" - you should know
    the drill by now 8-)

3.  Select the new drive, which should have been automatically
    detected. You will automatically enter the fdisk editor.

4.  Type 'A' and answer 'No' when it asks you if you want to be able to
    use other OS's on the drive, then 'Yes' if it asks you if you know
    what you're doing.

5.  Type 'W' to write the changes to the disk. Again, say 'Yes' when it
    asks for confirmation.

6.  Type 'Q' to leave the fdisk editor.

7.  Hit enter. You will automatically enter the disklabel editor.

8.  Type 'C' to create an FreeBSD partition. Accept the size it gives
    you, put a filesystem on it and say you want to mount it on /

9.  Type 'W' to write the changes to the disk. Again, say 'Yes' when it
    asks for confirmation.

10. Type 'Q' to leave the disklabel editor.

11. Keep pressing escape until sysinstall quits or the machine reboots
    (depending on how you started it).

12. Do 'newfs /dev/rsd1c', assuming the new disk will be sd1. (If you
    don't like the default parameters, there are a zillion ways to
    customise it in the newfs man page. But the default should be good
    enough for most purposes).

13. Now, at last, you should be able to do 'mount /www-root /dev/sd1c'
    (*not* /dev/rsd1) and use your new disk.

> If I go through the whole thing and
> write out the info won't that destroy everything on the original disk
> (rsd0).  That would be a very bad thing, I would hate to kill
> everything since I have made alot of modifications to the kernel and
> configuration files.  Aside from floppies  :-(   I don't have any way
> to back the system up (at this time). 

With a little luck and a lot of care, this won't damage anything, but
I would recommend backing up at least the contents of /etc and /home
onto DOS floppies first (use tar, split and mcopy - you'll need the
mtools package for the last one) plus your kernel and X config files.

> When your done laughing could someone please help :-)

I'm not laughing - this isn't as obvious as it should be and IMO
FreeBSD desperately needs an easy way to add a new disk.

And yes, I am trying to do something about it 8-)

-- 
James Raynard, Edinburgh, Scotland
james@jraynard.demon.co.uk
jraynard@FreeBSD.ORG