Missing hard drive space. df and du can't agree
Hi I have been searching for the 'lost' hard drive space on the root partition of one of my servers.
6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5
When I peform a df -h for the root partition I get this
gol-goroth# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 496M 453M 3.2M 99% /
Using the du -xh / | grep M command I get the output of
This would indicate that the / partition has 33mb of data on it. What I don't understand is why there is a difference between the 2 commands. When I try and copy data onto the / partition I get an error that it is out of space. I have only included the du output of M as the complete listing results in 33Mb being used.
Is there anything I have potentially missed ?
Any suggestions would be appreciated.
You might have symbolic links, try using
Or, you have an "open file descriptor(s)" that you have to deal with, see:
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
FreeBSD reserves 8 % of the disk space, which only root can fill. This 8% is is not mentioned in the df statistics.
OpenBSD does the same, only there the percentage is 5%.
For more info see the FreeBSD FAQ: http://www.freebsd.org/doc/en_US.ISO....html#DU-VS-DF and http://www.freebsd.org/doc/en_US.ISO...MORE-THAN-FULL
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
|Thread||Thread Starter||Forum||Replies||Last Post|
|no space left on drive while installing?||knasbas||OpenBSD Installation and Upgrading||2||20th July 2009 10:50 PM|
|Disk space gone missing||EricM||FreeBSD General||0||26th February 2009 02:25 AM|
|Did I fry my hard drive?||JMJ_coder||General Hardware||7||23rd December 2008 10:38 PM|
|CF as a *BSD hard drive?||JMJ_coder||General Hardware||26||31st July 2008 06:13 PM|
|Strange reporting on space missing.||aleunix||OpenBSD Packages and Ports||0||11th June 2008 09:34 AM|