From owner-freebsd-questions Wed Oct 23 11:35: 8 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 ADC0137B401 for ; Wed, 23 Oct 2002 11:35:05 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1215943E6A for ; Wed, 23 Oct 2002 11:35:05 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g9NIZ1u25133; Wed, 23 Oct 2002 14:35:01 -0400 (EDT) From: Jerry McAllister Message-Id: <200210231835.g9NIZ1u25133@clunix.cl.msu.edu> Subject: Re: can't find certain doc To: chip.wiegand@simrad.com Date: Wed, 23 Oct 2002 14:35:01 -0400 (EDT) Cc: nkinkade@dsl-only.net, questions@FreeBSD.ORG (freebsd -) In-Reply-To: from "chip.wiegand@simrad.com" at Oct 23, 2002 11:19:37 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > owner-freebsd-questions@FreeBSD.ORG wrote on 10/23/2002 11:01:02 AM: > > > > > I thought I saw a doc called something like 'what to do if your > hard > > > drive > > > > > gets full'. I checked the docs > > > 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? > > Output of df -h ---- > > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1a 148M 132M 3.4M 98% / > /dev/ad0s1e 18G 3.7G 13G 23% /usr > linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc > procfs 4.0K 4.0K 0B 100% /proc > > Output of du -h -d 1 -I usr ---- > > 70K ./dev > 2.1M ./stand > 2.8M ./etc > 2.0K ./cdrom > 26K ./proc > 3.9M ./bin > 392K ./boot > 2.0K ./mnt > 5.1M ./modules > 212K ./root > 11M ./sbin > 6.0K ./tmp > 15M ./var > 2.0K ./floppy > 48M . > > > I cleaned up the mail for root and my own use account, both of which > made no appreciable differance in available space. Cleaned /tmp also. How about /var? If it has not alrady been done, I would move at least /var/spool and /var/logs to your big partition (/usr here) and make sym links to them Also, I always make /tmp a separate partition to keep accidents from clobbering /. ////jerry > > -- > Chip > > > 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 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message