Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 2004 21:23:41 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Chris Collins <collins@collins-ca.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: shrinkfs?? is this possible?
Message-ID:  <20040504202341.GA6770@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040504202314.M60977@collins-ca.com>
References:  <20040504202314.M60977@collins-ca.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 04, 2004 at 03:26:58PM -0500, Chris Collins wrote:
> Hello
>=20
> I was wondering if somebody could tell me how to shrink /usr. I need 64K=
=20
> available at the end of my disk to write some RAID info. When I setup the=
=20
> disk I used all available disk space.
>=20
> Maybe shrinking /usr is not the best solution????=20

Unfortunately this isn't possible, other than by dumping the
filesystem to backup, blowing away the current partitioning using
disklabel(8) or bsdlabel(8), recreating the filesystem in the shrunken
partition via newfs(8) and then restoring the files from backup.

Seeing as it's your user partition you want to shrink, and that
contians most of your useful programs from the base system, you'll
need to do that in single user mode, and preferably while booted from
a recovery disk (disk 2 from the 4CD set).

Which is an awful lot of work just to free up 64K.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAl/vNdtESqEQa7a0RAidNAJ4zlk81nreRpfw66+FYtdH0mowRxgCePb8A
+MHgaqAlDhJeCBCZfCP/ydc=
=SqL0
-----END PGP SIGNATURE-----

--BOKacYhQ+x31HxR3--



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