From owner-freebsd-questions Wed Oct 23 11: 1:26 2002 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 E94FE37B404 for ; Wed, 23 Oct 2002 11:01:24 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2DD743E65 for ; Wed, 23 Oct 2002 11:01:23 -0700 (PDT) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.12.5/8.12.5) with ESMTP id g9NI18wQ004218 for ; Wed, 23 Oct 2002 11:01:08 -0700 (PDT) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: (from nkinkade@localhost) by sub21-156.member.dsl-only.net (8.12.5/8.12.5/Submit) id g9NI12tF004217 for questions@freebsd.org; Wed, 23 Oct 2002 11:01:02 -0700 (PDT) (envelope-from nkinkade) Date: Wed, 23 Oct 2002 11:01:02 -0700 From: Nathan Kinkade To: freebsd - Subject: Re: can't find certain doc Message-ID: <20021023180102.GB270@sub21-156.member.dsl-only.net> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: Nathan Kinkade , freebsd - References: <20021023160241.GA270@sub21-156.member.dsl-only.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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 On Wed, Oct 23, 2002 at 09:52:58AM -0700, chip.wiegand@simrad.com wrote: > > owner-freebsd-questions@FreeBSD.ORG wrote on 10/23/2002 09:02:41 AM: > > > On Mon, Oct 21, 2002 at 02:49:46PM -0700, chip.wiegand@simrad.com wrote: > > > I thought I saw a doc called something like 'what to do if your hard > drive > > > gets full'. I checked the docs > > > the freebsd.org and couldn't find anything like that. Is there a doc > out > > > there some place that tells me > > > what to do when the root partition fills up, for no apparent reason? > This > > > machine is strictly a web > > > backup box and rarely is used for anything else, yet the root partition > is > > > at 104%. > > > Try: > > # cd / > > # du -h -d 1 -I usr > > > > This should tell you how much space each file/dir is using in /, > > excluding, the 'usr'. Some of the other dirs are bound to be > > mounted filesystems, but ignore those. Exluding 'usr' just saves > > a lot of time, as `du' doesn't have to calculate that beast of a > > filesystem. > > > Nathan > That helps a lot, thanks, though I still haven't found any one particularly > large file or directory. In /var/db/pkg is about 14megs, is it okay to > clear > that stuff? And in . is kernel and kernel.generic, do I need both of these? > I have gotten the du down to 98% so far, on a 150meg / partition. Can you sent the output of `df -h` and the output of `du -h -d 1 -I usr` to the list? Another common place to check is /tmp, unless, of course, it's mounted on it's own filesystem - as it probably should be. Technically, it's ok to get rid of kernel.GENERIC, but you probably don't want to do this. kernel.GENERIC may get you out of a bind sometime if you have compiled your own kernel and for some reason it won't boot. However, if you haven't built your kernel and you never plan to, and you are running the stock, generic kernel anyway you can probably delete kernel.GENERIC without too much risk. Nathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message