From owner-freebsd-questions Mon Jun 10 01:54:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA26190 for questions-outgoing; Mon, 10 Jun 1996 01:54:07 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA26117 for ; Mon, 10 Jun 1996 01:53:57 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0uT2db-000Qa2C; Mon, 10 Jun 96 10:47 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id KAA16855; Mon, 10 Jun 1996 10:08:39 +0200 Message-Id: <199606100808.KAA16855@allegro.lemis.de> Subject: Re: adding a second scsi drive To: martin@dynasuk.co.uk (Martin Hepworth) Date: Mon, 10 Jun 1996 10:08:39 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: from "Martin Hepworth" at Jun 10, 96 08:59:20 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Martin Hepworth writes: > > On Fri, 7 Jun 1996, Greg Lehey wrote: > >> Martin Hepworth writes: >>> >>> Hi Guys >>> I know this is probaly on the most popular questions that get posted >>> here, >> >> Well, I don't know if it's popular, but it's frequent :-) >> >>> but how do you use disklable etc to get a second drive installed >>> with freeBSD 2.1? >> >> With great care. >> >>> I've fdisked the drive, but disklabel complains that the label is not >>> writable- huh? >> >> Yup, that's one of the nice, user-friendly messages it produces. >> >>> I'm running out of room rapidly on my main disk and need the second disk >>> working. What am I doing wrong. my /etc/disktab looks ok to me. >>> >>> Anyone willing to talk me though in very easy clear steps as to what I >>> should be checking to ge the thing going??? >> >> I'm working on an addition to the FreeBSD handbook to explain how to >> do this. You really need to pay extreme attention to detail, or >> you'll end up with messages like you got. In the meantime, it should >> be available on ftp://freefall.FreeBSD.ORG/incoming/disksetup.ps.gz. >> This is a prerelease version of the documentation; please let me know >> if you find anything wrong or difficult to understand. > > Thanks for this Greg, I'll check it out. The way I've finally managed to > do this was a using a cross section of what I already knew and advice the > the guys here on the list. > > 1) use /stand/sysinstall to fdisk and label the drive - don't forget to > label the new drive as '/' (or at least on of the new filesystems should > be labelled as '/') > > 2) exit out back to the install and use a custom setup to just install > the games section. It will probably fail here creating the new filesystem > (well it with me anyway). > > 3) back to the shell prompt and use 'disklabel -er sd1' to put in the > values that should appear here (see the man page and the settings for the > original disk - sd0?). > > 4) Now that you've disklabel working put in the information about the > filesystems in /etc/fstab and the do a 'newfs sd1c' (or whatever label > you applied to the file system in disklabel) > > 5) mount /newfilesystem (again the reference created in fstab should be used) > > 6) thats it - just remains to alter your backup routines to cope with the > new filesystem(s). I thought about documenting something like this, but decided against it. It's like using a chainsaw without a guard: the chances of screwing up something are just too great. At least with the conventional method I describe, you know what you're doing, and though you can certainly go wrong (far too easily, I'm afraid), the consequences are usually not nearly as bad. Greg