From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 22:15:22 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 3BCCF16A4CE for ; Thu, 8 Jul 2004 22:15:22 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6BA643D1D for ; Thu, 8 Jul 2004 22:15:21 +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 i68MEkR27964; Thu, 8 Jul 2004 18:14:47 -0400 (EDT) From: Jerry McAllister Message-Id: <200407082214.i68MEkR27964@clunix.cl.msu.edu> To: Andrew@cwu.EDU (Andrew Musselman) Date: Thu, 8 Jul 2004 18:14:40 -0400 (EDT) In-Reply-To: from "Andrew Musselman" at Jul 08, 2004 02:50:03 PM 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: disk space question 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: Thu, 08 Jul 2004 22:15:22 -0000 > > Hi again-- > > I'm stumped on this problem, and I'm sure lots of people have > encountered the same thing: > > I would like more space in /usr. I've installed another drive and set > it to mount to /mnt. I would like to make FreeBSD(5.2.1) think that > /usr also includes this new drive. > > Is there a way to do what I want to do? Maybe, but you don't really want to do quite what you said. What you need to do is move some of the things in /usr to the new partition that you currently have mounted on /mnt and then create a symlink to it. I would suggest that you move /usr/ports and /usr/local and maybe /usr/src. I would also suggest you might want to think of another name to mount the extra disk on. The only reason is /mnt is often used as a sort of temporary mount point and this will, no doubt be a more permanent mount. I tend to usr /work, but others have their own favorites. So, basically, tar up the stuff, untar it in the new place and create the symlink, check it out. Then rm the old stuff. for /usr/ports for example, using your /mnt mount point. cd /usr/ports tar cvf /mnt/ports.tar * cd /mnt mkdir usr.ports cd usr.ports tar xvf ../ports.tar cd /usr mv ports ports.old ln -s /mnt/usr.ports ports Check everything out to make sure you did it right cd /usr rm -rf ports.old cd /mnt rm ports.tar voila it is in the new space. Do the same for other big directories. use du(1) do check for big ones. cd /usr du -sk * ////jerry > > Thanks, > Andrew > > Andrew Musselman > andrew@cwu.edu > (509) 963-2995 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >