df shows partition as full, but du shows it as only 25% full
- by Jakobud
I have a humble linux server to do some stuff for me. I only have an old 16gig drive in it.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 16G 16G 0 100% /
/dev/md0 121M 14M 101M 13% /boot
tmpfs 502M 0 502M 0% /dev/shm
but when I do:
du -sh /
3.5G /
So one says that my 16G drive is full. The other says only 3.5G is used. Why the discrepancy? I cannot write any new files as it says the drive is indeed full. But if I can't find the files taking up all the space on the file-system, how can I delete them to free up space?