From owner-freebsd-questions@FreeBSD.ORG Fri Mar 30 15:22:52 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FF0216A403 for ; Fri, 30 Mar 2007 15:22:52 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from qsmtp1.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id 46B4013C455 for ; Fri, 30 Mar 2007 15:22:52 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: (qmail 32262 invoked from network); 30 Mar 2007 07:56:11 -0700 Received: by simscan 1.1.0 ppid: 32222, pid: 32223, t: 13.1051s scanners: regex: 1.1.0 attach: 1.1.0 clamav: 0.84/m:42/d:2665 spam: 3.0.3 Received: from unknown (HELO blacklamb.mykitchentable.net) (66.205.146.210) by qsmtp1 with SMTP; 30 Mar 2007 07:55:58 -0700 Received: from [192.168.1.3] (bigdaddy.mykitchentable.net [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with ESMTP id B3196164922 for ; Fri, 30 Mar 2007 07:38:42 -0700 (PDT) Message-ID: <460D212F.6080203@mykitchentable.net> Date: Fri, 30 Mar 2007 07:39:43 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on qsmtp1.surewest.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL autolearn=no version=3.0.3 Subject: Help Finding Disk Drive Usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2007 15:22:52 -0000 I have a small system that has happily run various versions of FBSD over the years. Currently it's on 6.1-R-p11. This morning I found /usr was out of disk space. I freed a little by clearing /usr/tmp, /usr/obj, and some log files I didn't need in /usr/var/log just to keep the "/usr: write failed, filesystem is full" from filling my screen. Next I checked my periodic.daily messages to see when the big increase happened. I found I lost nearly half of my space two days ago: Disk status: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 738318 101270 577984 15% / devfs 1 1 0 100% /dev /dev/stripe/user 6726926 3132434 3056338 51% /usr devfs 1 1 0 100% /usr/var/named/dev Today my "df -h" output looks like this: Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 721M 99M 564M 15% / devfs 1.0K 1.0K 0B 100% /dev /dev/stripe/user 6.4G 5.9G -9.5M 100% /usr devfs 1.0K 1.0K 0B 100% /usr/var/named/dev I have not done any upgrades or installations. So I tried tracking down the usage with du and got the following: blacksheep# du -r -c -d 1 -h /usr 2.0K /usr/.snap 41M /usr/sup 42M /usr/share 13M /usr/include 33M /usr/lib 92K /usr/libdata 17M /usr/libexec 903M /usr/local 26M /usr/bin 14M /usr/sbin 2.0K /usr/compat 186K /usr/games 12M /usr/home 15M /usr/var 10K /usr/tmp 6.0K /usr/X11R6 537M /usr/ports 428M /usr/src 2.0K /usr/obj 2.0G /usr 2.0G total So why does du report only 2.0 GB of usage while df reports over 6 GB? Where has my storage gone? Or do I not understand proper usage of du? Thanks for your help, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com