Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2003 16:54:41 +1100
From:      Murray Taylor <murraytaylor@bytecraftsystems.com>
To:        freebsd-questions@freebsd.org
Cc:        carewm@bytecraft.au.com
Subject:   Growing / shrinking a file system
Message-ID:  <200303071654.41171.murraytaylor@bytecraftsystems.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303071654.41171.murraytaylor>