partition full (or not)

partition full (or not)

Shachar Shemesh shachar at shemesh.biz
Tue Aug 11 21:15:34 IDT 2009


shlomo solomon wrote:
> I´m getting disk full messages on /var. According to df, the / partition 
> (/dev/sda1) is full, but du shows about 90% free space. Kdirstat also shows 
> 90% free. I tried booting from a live CD and the partition is only about 10% 
> full.
>
> Any ideas what´s going on here and how to fix it?
>
>   
Was the partition still full after you rebooted the device?

df gives data on how much space is actually in use. du, on the other 
hand, only reports space that is reachable from the directory structure. 
If, for example, you had a program that kept a huge file open, but 
unlinked from the file system, that would completely explain the 
scenario you report.

Of course, if that's the case, the reboot you did in order to run the 
live CD should have freed that space, and so you should see the problem 
resolved by now.

If the problem persist (i.e. - disk is full from the system but free 
from live CD), run lsof to check who is keeping files open on the partition.

Shachar
>
> here´s a partial listing for df:
>
> [solomon at shlomo1 ~]$ df
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda1              15G   15G   40M 100% /
> /dev/sda6             495M   47M  448M  10% /boot
>
>
>
> and here´s a partial listing for du:
>
> [solomon at shlomo1 ~]$ du -x -c /                                 
> 14M     /bin                                                              
> 0       /dev                                                              
> 4.0K    /etc/hp                
>
> << snip snip snip >>
>
> 512     /data4-music
> 1.3G    /
> 1.3G    total
>
>
>
>
>   


-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090811/8e81f5a7/attachment.html>


More information about the Linux-il mailing list