From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 14:02:46 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 2098F16A4CF for ; Wed, 3 Mar 2004 14:02:46 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B27D43D41 for ; Wed, 3 Mar 2004 14:02:45 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i23M2fro038103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Mar 2004 22:02:41 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i23M2fKM038102; Wed, 3 Mar 2004 22:02:41 GMT (envelope-from matthew) Date: Wed, 3 Mar 2004 22:02:41 +0000 From: Matthew Seaman To: Ron Joordens Message-ID: <20040303220241.GC37555@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Ron Joordens , "'freebsd-questions@freebsd.org'" References: <11F383396235D511994B00A0C9E175377211FB@INDEC-NTSERVER> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p2kqVDKq5asng8Dg" Content-Disposition: inline In-Reply-To: <11F383396235D511994B00A0C9E175377211FB@INDEC-NTSERVER> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 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: /root file system full 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: Wed, 03 Mar 2004 22:02:46 -0000 --p2kqVDKq5asng8Dg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 04, 2004 at 08:51:56AM +1100, Ron Joordens wrote: > My / filesystem is full. 109%. I want to know what is on the / filesystem, > what I can get rid of, how to get rid of it and how to make sure that it > doesn't happen again. >=20 > Any thoughts? Check for core files (called 'foo.core' for many different values of foo) -- you can just delete these unless you're going to get into debugging in a serious way. Check the contents of root's home directory, /root -- you should never log into the system as root, especially not via a graphical login. You shouldn't run any interactive command as root unless it's absolutely necessary. If you've got a /root/.kde or a /root/.gnome* or a /root/GNUstep or a /root/.mozilla then delete those directories straight away, and give yourself a good slap on the wrist for being a bad boy. There shouldn't be much stuff in /root at all. There probably shouldn't be any subdirectories of /root, except for the stuff under /root/.ssh To search the root partition for files matching certain conditions, use the find(1) command. The '-xdev' option lets you limit the search to just the one partition. Eg. to find all files modified in the last week: # find / -xdev -mtime -7 -print Or to find all files over 1Mb in size and produce a long-format listing: # find / -xdev -size +1048576c -ls (that only produces a list of 39 files on my machine). 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 --p2kqVDKq5asng8Dg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFARlYBdtESqEQa7a0RAs++AJ9mGO6d17onV8Rhm2Zc0f34MxfrogCeKTNI oQDBVnTTjyuAn209YoP711c= =s6e8 -----END PGP SIGNATURE----- --p2kqVDKq5asng8Dg--