From owner-freebsd-questions Fri Oct 29 6: 5:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id D580E14FDF for ; Fri, 29 Oct 1999 06:05:45 -0700 (PDT) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr364-a122.otenet.gr [195.167.112.218]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id QAA13725 for ; Fri, 29 Oct 1999 16:05:44 +0300 (EET DST) Received: (qmail 14214 invoked by uid 1001); 29 Oct 1999 11:37:19 -0000 To: freebsd-questions@freebsd.org Subject: Re: changing ports install hard drive References: <000001bf2190$5c2e2b00$e752c2d0@david.cql.com> <87bt9jqbk5.fsf@mired.eh.local> From: Giorgos Keramidas Date: 29 Oct 1999 14:37:19 +0300 In-Reply-To: Kevin Street's message of "28 Oct 1999 20:02:02 -0400" Message-ID: <86zox2gzyo.fsf@localhost.hell.gr> Lines: 40 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kevin Street writes: > "David Kurtzberg" writes: > > > I recently added a scsi hard drive to my freebsd box and mounted it > > under /usr2. I would like the programs that ports installed to be > > installed on that drive, instead of /usr. How do I set this up? > > The easiest thing to do is probably to move all of /usr/local and > /usr/X11R6 onto your new drive. Then create symlinks in /usr to point > to them. > > # cd /usr > # mv local /usr2 > # ln -s /usr2/local local > > and the same for /usr/X11R6. > > The mv will run for a while. You might consider taking a backup > before you do this. You probably don't want to be running X or a > shell that you've installed in /usr/local/bin while you're moving them > (ie. go to single user first). If going to single user is not an option, or you simply don't like the extra reboot, you can use `cp' instead of moving the files. # cd /usr # cp -pR local /usr2 || echo 'failed.' # cp -pR X11R6 /usr2 || echo 'failed.' and then after checking that everything has been copied correctly, and no 'failed.' messages were printed, you can `rm -fr' both /usr/local and /usr/X11R6 and substitute them with links to proper places in /usr2. Since this is on two separate disks, copying and deleting afterwards is probably just a tiny bit safer. -- Giorgos Keramidas, "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message