*BSD News Article 81642


Return to BSD News archive

From: Pascal.Gienger@uni-konstanz.de (Pascal Gienger)
Subject: Re: ccd help
Newsgroups: comp.unix.bsd.freebsd.misc
References: <3270DC0C.15E4@loopback.com> <32711351.0@finesse.isdn.uni-konstanz.de> <3271901F.760F@loopback.com>
Organization: das rosa =?ISO-8859-1?Q?Pl=FCschsofa?=
Lines: 65
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 960722]
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <32735824.0@finesse.isdn.uni-konstanz.de>
Date: 27 Oct 96 12:40:04 GMT
NNTP-Posting-Host: pc193.isdn.uni-konstanz.de
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!arclight.uoregon.edu!news.sprintlink.net!news-peer.sprintlink.net!uunet!in1.uu.net!fu-berlin.de!news.belwue.de!news.uni-konstanz.de!not-for-mail

Eli Lazich <elazich@loopback.com> wrote:
: If you know of the steps required I would greatly appreciate you posting
: them to 
: this newsgroup as I'm sure others could benefit from this info as well.  

If you want, here was my way to do it:


0) Make sure the partitions you want to construct the ccd of are not mounted.

1) Make sure all the partitions you want to configure as one ccd have the
   "4.2BSD" partition type. You can edit these types with
   "disklabel -e wd0" for your first IDE disk and "disklabel -e wd1" for your
   second IDE disk.
   If you have not dedicated the whole disks for FreeBSD you must use
   "disklabel -e wd0s1" or "disklabel -e wd0s2" etc, depending where your
   FreeBSD slice is. So if you want to link /dev/wd0s1e and /dev/wd1s1f, you
   will have to change partition type e on wd0s1 and partiton type f on wd1s1.

2) Make a file /etc/ccd.conf with one line for each ccd you want to
   configure. Example:

   ccd0    0       none    /dev/wd0s1e /dev/wd1s1f

   0 means the interleave flag (you may construct "striped" ccds by using
   the number of blocks in a track). 0 means to concatenate the partitions.
   "none" are additional flags.
   Partitions at the end are the partitions used to construct the ccd.

3) Run "ccdconfig -C". The "-C" means that ccdconfig should configure all
   ccd's listed in /etc/ccd.conf.

4) If there was no error, try making a filesystem on your new ccd:

   newfs /dev/ccd0c.

   If /dev/ccd0c is not found; do as root: cd /dev; ./MAKEDEV ccd0

5) Now you can mount your ccd:

   mkdir /myccd; mount /dev/ccd0c /myccd

6) The ccd will be configured automatically on every reboot because you have
   made the /etc/ccd.conf file.

NOTES: It should be possible to make partitions on the ccd (ccd0a, ccd0d,
       ccd0e, ...), but a disklabel on ccd0 doesn't work for me. So I am
       using ccd0c always.

       You may not use a ccd as a root partition....!
       For /usr it should work however, ccdconfig is in /sbin, and ccdconfig
       is called before other filesystems than root are mounted.
       Putting /usr on the ccd is quite a big job however, you will have
       to use a backup media such as a tape ;) FreeBSD can however boot
       without /usr, it will give you a "sh"; restore(8) is statically
       linked in /sbin.

Pascal
-- 
Pascal.Gienger    Zentrale Rechner Rechenzentrum Universität Konstanz
@uni-konstanz.de  Voice: +49 7531 16074   Fax  : +49 7531 20370
                  WWW  : http://www.geocities.com/WestHollywood/1381/
Das Wort "WINDOWS" stammt aus einem alten Sioux-Dialekt und bedeutet:
"Weißer Mann starrt durch Glasscheibe auf Sanduhr." (gefunden in d.c.t.)