Link to home
Start Free TrialLog in
Avatar of ampranti
amprantiFlag for Greece

asked on

"df -h" report incorrect free space

OS: Debian 6.0.3
kernel:  2.6.32-5-486
/dev/sda3 filesystem is ext3


server:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              74G  2.2G   68G   4% /
...............
/dev/sda3             266G  266G     0 100% /sda3

Open in new window


After deleting ~100Gb of data using "rm -Rf",  /dev/sda3 is still full!!
"e2fsck -f /dev/sda3 " reports everything ok
I reboot twice (to remount the partition, but no sucess)


Any idea how can I fix thhe problem?
Thank you
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
run the following command as a regular user.
modify size +20000 as you see fit.

find . -size +20000k -exec du -h {} \;

Open in new window


also, curious if you do a search for the file named, "xsession-errors" like
find . -iname ".xsession-errors*"

Open in new window

how big is the file?
Avatar of Tintin
Tintin

Are you 100% sure you deleted the data from /sda3?  

What is the output of

du -h /sd3/*

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ampranti

ASKER

After deleting a few more files, and doing a mount / umount I got the correct empty space

# df -h /dev/sda3
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             266G  107G  146G  43% /sda3
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial