DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th July 2008
tsan tsan is offline
Real Name: Tom
New User
 
Join Date: Jul 2008
Location: Perth WA
Posts: 1
Thanked 0 Times in 0 Posts
Question 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

1.0M ./etc/rc.d
4.2M ./etc
19M ./boot/kernel
19M ./boot
3.5M ./lib
4.0M ./sbin
33M .

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.
Reply With Quote
  #2   (View Single Post)  
Old 30th July 2008
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 194
Thanked 47 Times in 22 Posts
Default

You might have symbolic links, try using du -hxL

Or, you have an "open file descriptor(s)" that you have to deal with, see:
http://www.cyberciti.biz/tips/freebs...nt-output.html
http://www.walkernews.net/2007/07/13...ed-disk-space/
__________________
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
Reply With Quote
  #3   (View Single Post)  
Old 30th July 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,245
Thanked 182 Times in 149 Posts
Default

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
Reply With Quote
Reply

Tags
diskspace, missing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no space left on drive while installing? knasbas OpenBSD Installation and Upgrading 2 20th July 2009 09: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 05:13 PM
Strange reporting on space missing. aleunix OpenBSD Packages and Ports 0 11th June 2008 08:34 AM


All times are GMT. The time now is 04:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick