From owner-freebsd-questions Wed Dec 1 21:57:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 37C3614F72 for ; Wed, 1 Dec 1999 21:57:42 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id XAA10659; Wed, 1 Dec 1999 23:57:26 -0600 (CST) (envelope-from dan) Date: Wed, 1 Dec 1999 23:57:25 -0600 From: Dan Nelson To: Wayne M Barnes Cc: questions@FreeBSD.ORG Subject: Re: 22 Mb hidden,wasted Message-ID: <19991201235725.B10508@dan.emsphone.com> References: <199912020048.SAA92531@barnes1.wustl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <199912020048.SAA92531@barnes1.wustl.edu>; from "Wayne M Barnes" on Wed Dec 1 18:48:43 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Dec 01), Wayne M Barnes said: > Dear FreeBSDers, > > One of my partitions (the one where I collect mail) just filled > up accidentally (and I lost 2 days worth of email, somehow). > > This partition was little-used, I thought, but when this happened > I found that a directory listing shows 22246 bytes in the root of > this partition, with no files or anything that I can delete. I have > deleted 5 Mb of stuff to get by with until I solve this problem. Two problems. One; it's not 22246 bytes; it's 22246 512-byte blocks ~= 11 MB. "du" output becomes a lot easier to understand if you set your environment variable "BLOCKSIZE=1k". Two; "du" prints cumulative usage totals. The last entry - "." is the total usage in the directory. Most of the space is actually taken up by your mail/ directory. If you plan on keeping a large inbox like this, you might want to move /var/mail to /usr/mail and make a symlink for /var/mail -> /usr/mail, or possibly repartition your disk with a larger /var. > root@barnes1:/drive2var>du > 1 ./at/jobs > 1 ./at/spool > 3 ./at > 15 ./backups > 2 ./cron/tabs > 31 ./cron > 21719 ./mail > 2 ./msgs > 52 ./run > 1 ./rwho > 19 ./yp > 17 ./etcsave/uucp > 2 ./etcsave/gnats > 1 ./etcsave/kerberosIV > 15 ./etcsave/mtree > 7 ./etcsave/namedb > 12 ./etcsave/ppp > 402 ./etcsave > 1 ./etc > 22246 . -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message