From owner-freebsd-questions Thu Mar 6 21:54:50 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 72EC537B401 for ; Thu, 6 Mar 2003 21:54:48 -0800 (PST) Received: from svmarshal.bytecraft.au.com (svmarshal.bytecraft.au.com [203.39.118.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0873243F85 for ; Thu, 6 Mar 2003 21:54:46 -0800 (PST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wombat.bytecraft.au.com (Not Verified[203.39.118.3]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Fri, 07 Mar 2003 16:55:45 +1100 Received: from mjtdev1.dand06.au.bytecraft.au.com (unknown [10.0.17.42]) by wombat.bytecraft.au.com (Postfix) with ESMTP id 102C63E37; Fri, 7 Mar 2003 16:54:43 +1100 (EST) From: Murray Taylor Organization: Bytecraft Systems To: freebsd-questions@freebsd.org Subject: Growing / shrinking a file system Date: Fri, 7 Mar 2003 16:54:41 +1100 User-Agent: KMail/1.5 Cc: carewm@bytecraft.au.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303071654.41171.murraytaylor@bytecraftsystems.com> 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 I've found growfs and looked at tunefs--- is there a utility to shrink a partition so that I can give the space to another one operator@redback(/sbin)ttyp1 > df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 97M 41M 48M 46% / /dev/ad0s1f 17G 1.8G 14G 11% /usr /dev/ad0s1e 19M 7.9M 9.9M 44% /var procfs 4.0K 4.0K 0B 100% /proc This is the current disk stats ... NB this disk was setup using auto sizing from the install CD (poss miscalculation??) We need to reallocate space from ad0s1f and give it to ad0s1e preferably with out rebuilding the machine. I am thinking of paxing /var to /usr/var, then unmounting /var and symlinking /usr/var to /var as an interim step But I would like them to remain on separate better sized slices And if someone has done this can they post their "recipe" thanks -- Murray Taylor Special Projects Engineer --------------------------------- Bytecraft Systems & Entertainment Phone: 61 3 8710 2555 Fax: 61 3 8710 2599 Direct: 61 3 9238 4275 Mobile: 61 0417 319 256 Email: murraytaylor@bytecraftsystems.com or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com ************************************************************************ This Email has been scanned for Viruses by MailMarshal. ************************************************************************ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message