From owner-freebsd-questions@FreeBSD.ORG Tue Aug 10 17:51:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5840216A4CE for ; Tue, 10 Aug 2004 17:51:06 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFD0243D3F for ; Tue, 10 Aug 2004 17:51:05 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i7AHowN00494; Tue, 10 Aug 2004 13:50:58 -0400 (EDT) From: Jerry McAllister Message-Id: <200408101750.i7AHowN00494@clunix.cl.msu.edu> To: boxend@redtick.homeunix.com (Mark) Date: Tue, 10 Aug 2004 13:50:57 -0400 (EDT) In-Reply-To: <200408101500.i7AF0FnR029952@redtick.homeunix.com> from "Mark" at Aug 10, 2004 10:00:15 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: linking X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 17:51:06 -0000 > > My /usr has grown short of room, so noobie question, will " ln -s /muz/newusr /usr" allow the system to use the new space or must I do something else?? This is a 5.2rc1 box in need of updating. =) Well, yes, sort of. It won't just add the space to the current space. You would have to move the current /usr filesystem over to that filesystem and then make a link to it. Then the new space would replace the previous space as where /usr lives. Possibly a better way to deal with it is to pull out a couple of the larger directory trees in /usr and move them to the new space and link them. Some good candidates might be /usr/local, /usr/src and/or /usr/ports. If you have put users home directories in there, in someplace such as /usr/home, then that might also be a good one to move. You can check space usage for directory trees with du(1) cd /usr du -sk * Say you want to move /usr/local to live in /muz, where you have scads of space. Do the following. (I have my own naming convention that helps me keep track of things you can name things as you like - but try to be mnemonic). cd /usr/local tar cvf /muz/local.tar cd /muz mkdir usr.local cd usr.local tar xvf ../local.tar cd /usr mv local local.old ln -s /muz/usr.local local Now go check and make sure you got things right - do cd /usr/local and look around and make sure stuff is there. a pwd should show you to be in /muz/usr.local when you to cd /usr/local. Then clean up. cd /usr/local pwd (just to check and be sure it is /muz/usr.local) rm local.tar cd /usr rm -rf local.old voila, you just freed up the /usr/local space from /usr and put it in /muz Do the same for /usr/ports and whatever else makes sense. ////jerry