From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 20:33:34 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 B706316A525 for ; Fri, 25 Jun 2004 20:33:33 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86C8D43D53 for ; Fri, 25 Jun 2004 20:33:32 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) by internet.potentialtech.com (Postfix) with ESMTP id B1AF069A3F; Fri, 25 Jun 2004 16:33:02 -0400 (EDT) Date: Fri, 25 Jun 2004 16:33:01 -0400 From: Bill Moran To: Bruce Hunter Message-Id: <20040625163301.5f698844.wmoran@potentialtech.com> In-Reply-To: <1088194994.94716.2.camel@solid.solisixoffice.com> References: <1088194994.94716.2.camel@solid.solisixoffice.com> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Re-arranging disk slice allocation 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: Fri, 25 Jun 2004 20:33:34 -0000 Bruce Hunter wrote: > Hey all, > > I have a headless server running and when I first setup the system I > messed up the disk slice allocations. I would like to know how it is > possible to take allocations from one and give it to another? > > > > Filesystem Size Used Avail Capacity Mounted on > > /dev/ad0s1a 508M 57M 410M 12% / > > devfs 1.0K 1.0K 0B 100% /dev > > /dev/ad0s1g 11G 6.1G 4.3G 59% /home > > /dev/ad0s1d 1037M 12K 954M 0% /tmp > > /dev/ad0s1f 7.3G 1.5G 5.2G 22% /usr > > /dev/ad0s1e 12G 31M 11G 0% /var > > for some reason I did a bo bo and gave /var 12G of space! I want > to give it to /home, b/c that's where I have my NFS folder. How would > I got about doing this? You partitions appear to be ordered on the disk thusly: /, swap, /tmp, /var, /usr, /home Because of this, you can't repartition /var and /home without also repartitioning /usr. At that point, you're almost reinstalling. What you'd have to do is back up /var, /usr, and /home, then repartition those three, and then restore to the new /var, /usr, /home. You could always symlink the directory in /home to some location on /var to get most of what you want. See 'man ln'. -- Bill Moran Potential Technologies http://www.potentialtech.com