df -k vs. du -s

2009-08-13 Thread Don O'Neil
My /var partition is showing a different value for a df -k on the file
system vs a du -s on the file system:

df -k
Filesystem1K-blocks  Used Avail Capacity  Mounted on
/dev/ad0s1a 202603088954497440448%/
devfs 1 1 0   100%/dev
/dev/ad0s1e 2026030   964   1862984 0%/tmp
/dev/ad0s1d 8122126   1997988   547436827%/usr
/dev/ad0s1f 8122126   5301938   217041871%/var

du -s /var
993261  /var

Any ideas why I would see this? Where is the other 4+G? Do I have a bunch of
bad sectors in the file system or is it majorly fragmented? If so, how do I
find out what the problem is?

The other partitions match between the df and du... I'm running 6.1 if that
makes a difference.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: df -k vs. du -s

2009-08-13 Thread Mel Flynn
On Thursday 13 August 2009 12:37:00 Don O'Neil wrote:
 My /var partition is showing a different value for a df -k on the file
 system vs a du -s on the file system:

FAQ. Search = good(tm).
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DU-VS-DF
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: df -k vs. du -s

2009-08-13 Thread Jerry McAllister
On Thu, Aug 13, 2009 at 01:37:00PM -0700, Don O'Neil wrote:

 My /var partition is showing a different value for a df -k on the file
 system vs a du -s on the file system:
 
 df -k
 Filesystem1K-blocks  Used Avail Capacity  Mounted on
 /dev/ad0s1a 202603088954497440448%/
 devfs 1 1 0   100%/dev
 /dev/ad0s1e 2026030   964   1862984 0%/tmp
 /dev/ad0s1d 8122126   1997988   547436827%/usr
 /dev/ad0s1f 8122126   5301938   217041871%/var
 
 du -s /var
 993261  /var
 
 Any ideas why I would see this? Where is the other 4+G? Do I have a bunch of
 bad sectors in the file system or is it majorly fragmented? If so, how do I
 find out what the problem is?
 
 The other partitions match between the df and du... I'm running 6.1 if that
 makes a difference.

Makes no difference.
This has been answered so many times on this list that people may
not respond at all.  It should easily be found by searching the
archive and I think there is a FAQ on the FreeBSD web site about it.

So, have fun searching.

jerry


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org