free space showing wrong; fsck doesn't help

Adam Smith adam at internode.com.au
Mon May 23 06:20:45 PDT 2005


I have a partition showing the wrong free disk space on FreeBSD 5.3:

$ uname -a
FreeBSD nautilus.bugman.cx 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

[adam at nautilus /home/adam]$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a    248M     46M    182M    20%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e    248M    224K    228M     0%    /tmp
/dev/ad0s1f     34G    6.7G     25G    21%    /usr
/dev/ad0s1d    248M     37M    191M    16%    /var
/dev/ad2s1d    180G    168G   -2.4G   101%    /data
devfs          1.0K    1.0K      0B   100%    /var/named/dev

Notice the /data partition....

Used and Size don't mathematically calculate.  It's causing all sorts of
errors when programs try and write to the disk...

I have run fsck -fy on the partition while it was unmounted; no effect.
I've CTRL-C'd another fsck which marked the partition dirty, rebooted, and
let fsck do it's own thing; no effect.

What do I need to do to fix this inconsistency?


Cheers


-- 
Adam Smith
Internode	: http://www.internode.on.net
Phone		: (08) 8228 2999



More information about the freebsd-questions mailing list