From owner-freebsd-questions Sun Feb 9 8:41:34 2003 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 A7DF837B401 for ; Sun, 9 Feb 2003 08:41:32 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 27E5343FA3 for ; Sun, 9 Feb 2003 08:41:26 -0800 (PST) (envelope-from mwm-dated-1045240881.9a473b@mired.org) Received: (qmail 15900 invoked from network); 9 Feb 2003 16:41:21 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 9 Feb 2003 16:41:21 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15942.33968.502944.763209@guru.mired.org> Date: Sun, 9 Feb 2003 10:41:20 -0600 To: Ihsan Junaidi Ibrahim Cc: FreeBSD Questions Subject: Re: Deleting /usr dedicated slice. In-Reply-To: <200302091632.27327.ihsan_junaidi@yahoo.com.sg> References: <200302091632.27327.ihsan_junaidi@yahoo.com.sg> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.69 (Count Fleet) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In <200302091632.27327.ihsan_junaidi@yahoo.com.sg>, Ihsan Junaidi Ibrahim typed: > Hello all, > > How do delete the slice that is occupying /usr and use that free space to > extend /var? I read the man pages and growfs is the way but how do I exactly > do it? Did you really put your partitions on separate slices? If so, you've made more work for yourself. Growfs just grows the file system in a partition to use extra space. You've got to add the space to the partition yourself. So this can only work if the "spare" partition immediately follows the partition that is going to grow. Normally, what you would have to do to do that is use the "disklabel -e" to remove the spare partition and change the size of the old partition to include the new one. If you've put your partitions on separate slices, you have to use fdisk to remove the spare slice and add the space to the slice that is going to grow before you use disklabel on the partitions. After you've done that step, or those two steps, you can use growfs on the partition to make it use the extra space. Be sure and back up /var before trying this. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message