Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Recently I got a message about "0 bytes free" on a certain partition.

So I looked and, sure enough:

$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1       65190604  10920296  50959160  18% /
udev              966544         4    966540   1% /dev
tmpfs             389532       744    388788   1% /run
none                5120         0      5120   0% /run/lock
none              973828       152    973676   1% /run/shm
/dev/sda5      397327316 391010276         0 100% /media/8b5e40d0-95b3-4e60-831c-e9b9aeadbfa4

there are 0 bytes available on that partition.

So I deleted a bunch of files I didn't need on this machine, and emptied the trash. I expected the "Used" to get smaller and the "Available" to get larger by the same amount.

But what actually happened was

$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1       65190604  10921184  50958272  18% /
udev              966544         4    966540   1% /dev
tmpfs             389532       744    388788   1% /run
none                5120         0      5120   0% /run/lock
none              973828       152    973676   1% /run/shm
/dev/sda5      397327316 390986836         0 100% /media/8b5e40d0-95b3-4e60-831c-e9b9aeadbfa4

the "Used" actually did get smaller, but the "Available" is still zero.

I rebooted the machine, and I still see 0 in the "Available" column.

Why is "Available" always zero, even when I delete a bunch of files so "Used" gets smaller?

Why doesn't deleting files increase available space?

I am running Ubuntu 12.04 LTS.

$ df -hi
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/sda1        4.0M  512K  3.5M   13% /
udev             205K   486  204K    1% /dev
tmpfs            208K   390  208K    1% /run
none             208K     3  208K    1% /run/lock
none             208K     7  208K    1% /run/shm
/dev/sda5         25M  975K   24M    4% /media/8b5e40d0-95b3-4e60-831c-e9b9aeadbfa4
share|improve this question
what kind of partition is that (ntfs, ext4, fat32) ? What do your Disk Utility says ? and did you try to clean it with Bleachbit (the Ccleaner for linux) or some other utility ? –  riimzzai Mar 5 '13 at 21:28
Neither of these answers resolved my issue. I'm running v13.10 and this is still a problem when deleting files from an SD card. Delete more files is NOT an acceptable answer so that's not even in the equation. Running the tune2f command and deleting the trash file are the only 2 answers being considered here and they both fail to resolve this issue. –  Tommytwotone Apr 2 at 19:05

3 Answers 3

The simple answer is delete more files. You are seeing the "reserved" blocks reclaiming themselves. Usualy 5% of a filesystem is reserved for privileged processes, is the filesystem is considered full when that limit is reached. You can adjust the limit with the tune2fs -m command. see the man pages for tune2fs for more info.

share|improve this answer

Step by Step Tutorial

  1. Run sudo tune2fs -m 0 /dev/sda5 in a terminal, assuming /dev/sda5 is your drive.
  2. Enter your password (you won't see it as you type it).
  3. Check your space again, it should be free.
share|improve this answer

When you delet a file in a partition that isn't where ubuntu is install makes a ".Trashes"/".Trashes-1000" which is the equivelent that receycle bin. The number can change depend of the ubuntu version. Once you are in the partition if you press "CONTROL+h" it shows the hiden files wich are those that strat with ".", if you delet this file is when you actuely have delited all the files and you shut have more space.

share|improve this answer
He said he emptied the trash, so this cannot be the cause. –  Mechanical snail May 30 '13 at 5:21
Had the same issue. Even though the person under reply 3 said that couldn't be the issue, because of the emptied trash. You're wrong. That was exactly my issue. From 50GB to 500GB free space. –  user262604 Mar 27 at 14:46

protected by Community Apr 2 at 19:16

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.