From owner-freebsd-questions@FreeBSD.ORG Tue May 4 13:23:48 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 BB5C616A4CE for ; Tue, 4 May 2004 13:23:48 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB4E043D3F for ; Tue, 4 May 2004 13:23:47 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i44KNfPS006828 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 May 2004 21:23:41 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i44KNf8S006827; Tue, 4 May 2004 21:23:41 +0100 (BST) (envelope-from matthew) Date: Tue, 4 May 2004 21:23:41 +0100 From: Matthew Seaman To: Chris Collins Message-ID: <20040504202341.GA6770@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Chris Collins , freebsd-questions@freebsd.org References: <20040504202314.M60977@collins-ca.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20040504202314.M60977@collins-ca.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: shrinkfs?? is this possible? 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: Tue, 04 May 2004 20:23:48 -0000 --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--