From owner-freebsd-questions@FreeBSD.ORG Thu Apr 21 14:35:26 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 3127516A4CE for ; Thu, 21 Apr 2005 14:35:26 +0000 (GMT) Received: from zhonka1.zhonka.net (zhonka1.zhonka.net [66.228.195.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBDBD43D48 for ; Thu, 21 Apr 2005 14:35:25 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from wolf.pjkh.com ([66.228.196.74]) by zhonka1.zhonka.net (Post.Office MTA v3.5.3 release 223 ID# 0-58414U4500L450S0V35) with ESMTP id net; Thu, 21 Apr 2005 07:35:24 -0700 Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id 46D265824; Thu, 21 Apr 2005 07:35:21 -0700 (PDT) Received: from wolf.pjkh.com ([127.0.0.1]) by localhost (wolf.pjkh.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 79743-04; Thu, 21 Apr 2005 07:35:21 -0700 (PDT) Received: by wolf.pjkh.com (Postfix, from userid 1000) id 11AE35823; Thu, 21 Apr 2005 07:35:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id 0CBA956BB; Thu, 21 Apr 2005 07:35:21 -0700 (PDT) Date: Thu, 21 Apr 2005 07:35:21 -0700 (PDT) From: Philip Hallstrom To: Jerry McAllister In-Reply-To: <200504211355.j3LDtNLZ016550@clunix.cl.msu.edu> Message-ID: <20050421073339.N79966@wolf.pjkh.com> References: <200504211355.j3LDtNLZ016550@clunix.cl.msu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at pjkh.com 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 14:35:26 -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... -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 :-)