From owner-freebsd-questions@FreeBSD.ORG Thu Apr 21 15:00:29 2005 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 4994416A4CF for ; Thu, 21 Apr 2005 15:00:29 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7C4F43D39 for ; Thu, 21 Apr 2005 15:00:28 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) j3LF0Tb0016676; Thu, 21 Apr 2005 11:00:29 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id j3LF0SZh016675; Thu, 21 Apr 2005 11:00:28 -0400 (EDT) From: Jerry McAllister Message-Id: <200504211500.j3LF0SZh016675@clunix.cl.msu.edu> To: freebsd@philip.pjkh.com (Philip Hallstrom) Date: Thu, 21 Apr 2005 11:00:28 -0400 (EDT) In-Reply-To: <20050421073339.N79966@wolf.pjkh.com> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: dmehler26@woh.rr.com cc: freebsd-questions@freebsd.org Subject: Re: resizing partitions 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, 21 Apr 2005 15:00:29 -0000 > > > > On Thu, 21 Apr 2005, Jerry McAllister wrote: > > >> > >> Hello, > >> I've got a 5.3-RELEASE box which has a /usr partition /dev/ad0s1e that > >> is to small by approximately 700 mb. I've got the space on /var /dev/ad0s1d > >> to do a resize, but i am unsure as to the procedure. I tried this once a > >> while back on a test box and lost everything. If anyone has done this or has > >> a procedure i'd be interested. > > > > Instead of actually resizing the partition, you can just move some > > of the stuff to a partition where you have plenty of room and then > > make sym-links to it. /usr/local and /usr/ports are good > > candidates. Tar the whole directory tree up and put it where > > you want and untar it. Then make links and rm the old one. > > Probably worth making sure you add the 'pS' options to tar as well... Good idea. ////jerry > > -p > --same-permissions > --preserve-permissions Extract all protection information. > > -S > --sparse Handle ``sparse'' files efficiently. > > I find whenever I do something like this and forget those -- particularly > -p -- I end up regretting it when users whine at me because they can't > write to their files :-) >