Skip site navigation (1)Skip section navigation (2)
Date:      29 Oct 1999 14:37:19 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        freebsd-questions@freebsd.org
Subject:   Re: changing ports install hard drive
Message-ID:  <86zox2gzyo.fsf@localhost.hell.gr>
In-Reply-To: Kevin Street's message of "28 Oct 1999 20:02:02 -0400"
References:  <000001bf2190$5c2e2b00$e752c2d0@david.cql.com> <87bt9jqbk5.fsf@mired.eh.local>

next in thread | previous in thread | raw e-mail | index | archive | help
Kevin Street <street@iname.com> writes:

> "David Kurtzberg" <david@cql.com> 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, <keramida@ceid.upatras.gr>
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zox2gzyo.fsf>