From owner-freebsd-questions Wed Jun 7 23:38:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id 6240637C024 for ; Wed, 7 Jun 2000 23:37:50 -0700 (PDT) (envelope-from rsidd@physics.iisc.ernet.in) Received: (qmail 63867 invoked from network); 8 Jun 2000 06:37:16 -0000 Received: from theory8.physics.iisc.ernet.in (144.16.71.128) by theory1.physics.iisc.ernet.in with SMTP; 8 Jun 2000 06:37:15 -0000 Received: (qmail 1036 invoked by uid 211); 8 Jun 2000 06:37:14 -0000 Date: Thu, 8 Jun 2000 12:07:13 +0530 From: Rahul Siddharthan To: chip Cc: Freebsd Questions Subject: Re: Adding a second hard drive Message-ID: <20000608120713.A1025@physics.iisc.ernet.in> Mail-Followup-To: chip , Freebsd Questions References: <393F3818.3EA6E36F@wiegand.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <393F3818.3EA6E36F@wiegand.org>; from chip@wiegand.org on Wed, Jun 07, 2000 at 11:07:20PM -0700 X-Operating-System: Linux 2.0.32 i486 X-Question: Do you enjoy reading pointless headers? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG chip said on Jun 7, 2000 at 23:07:20: > I have 3 hard drives in my pc and would like to move everything that is > not a > necessary part of the root partition onto a second drive. Is this just a > simple > matter of making a /usr directory on the second drive and moving the > currant /usr > directory contents into it, then linking the two? > What about the other directorys? /var /dev/ /etc and etc etc You can move /usr if you're careful (the catch being that the libraries are there and binaries linked to those libraries won't work). I'd do it like this: copy the /usr directory to the second drive (use cp -pR to copy recursively preserving flags, modification times, ownership etc), unmount the second drive, then move your original /usr out of the way (to /usr.old, say) and mount the second drive as /usr (alternatively, leave it mounted as something else and symlink it). Then if it's all working ok, remove /usr.old . You may want to do it in single user mode (or make sure nobody else is using the system and you're not doing anything else), since there'll be a short time when the libraries are not accessible and only static binaries will work. I'd leave the rest (/var, /dev, /etc) as they are. /var contains spool data (mail, print) and it's tricky to move that. The others aren't so bulky anyway. I don't know whether there are any issues in moving /dev and /etc. R. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message