From owner-freebsd-questions Thu Oct 17 02:28:22 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA19282 for questions-outgoing; Thu, 17 Oct 1996 02:28:22 -0700 (PDT) Received: from iworks.InterWorks.org (deischen@iworks.interworks.org [128.255.18.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA19277 for ; Thu, 17 Oct 1996 02:28:17 -0700 (PDT) Received: by iworks.InterWorks.org (1.37.109.8/16.2) id AA18514; Thu, 17 Oct 1996 04:27:53 -0500 Message-Id: <9610170927.AA18514@iworks.InterWorks.org> Date: Thu, 17 Oct 1996 04:27:53 -0500 From: "Daniel M. Eischen" To: questions@FreeBSD.org Subject: Missing disk space Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I recently re-installed FreeBSD from a 2.1.5-RELEASE CD, after which I immediately upgraded to -current. I allocated 50MB for the root partition, which has always been more than enough with /usr, /home, and /var mounted (or linked to mounted) partitions. A du -kx shows: bash# du -kx / 1 /dev/fd 41 /dev 2 /usr 1 /stand ... 15439 / for a total of ~15MB. Looking at df -k tells a different story: bash# df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/sd0a 49231 45229 64 100% / /dev/sd1s1e 504046 359048 104676 77% /opt/a /dev/sd1s1f 504046 287618 176106 62% /opt/b /dev/sd1s1g 599060 52364 498772 10% /opt/c /dev/sd1s1a 504046 441594 22130 95% /usr procfs 4 4 0 100% /proc Notice there is about 45MB of used disk space for /. It seems that "df -k" is showing what the system thinks is there, because I can easily fill up the root filesystem. But, I know that I haven't used that much disk space - manual surfing through / shows the same as du. bash# df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/sd0a 49231 45229 64 100% / ... bash# dd of=/junk if=/dev/zero bs=1024 count=4000 /: write failed, file system is full dd: /junk: No space left on device 3969+0 records in 3968+0 records out 4063232 bytes transferred in 1 secs (4063232 bytes/sec) bash# df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/sd0a 49231 49205 -3912 109% / ... Where or where did my disk space go? Dan Eischen deischen@iworks.InterWorks.org