View Full Version : [ubuntu] Shows 0 bytes free but there are 4 GBs free!

El Potro
December 28th, 2010, 12:31 AM
Hi everyone,

After a long time, I'm back into Ubuntu.

The story goes like this: my partition /docs says it has 0 bytes free. But that isn't real. If has more than 4 GBs free!

mauri@bestia:~$ df
Файловая система 1K-блоков использовано, Разрешено использовать% смонтирована на
/dev/sda2 20184676 2704964 16454364 15% /
none 504236 328 503908 1% /dev
none 508456 464 507992 1% /dev/shm
none 508456 112 508344 1% /var/run
none 508456 0 508456 0% /var/lock
none 508456 0 508456 0% /lib/init/rw
none 20184676 2704964 16454364 15% /var/lib/ureadahead/debugfs
/dev/sda1 93307 24143 64347 28% /boot
/dev/sda6 116881140 112317452 0 100% /docs
/dev/sda5 19228276 16078708 2172820 89% /home
/dev/sdb5 56894164 55733868 1160296 98% /media/WIN

What's going on here??

Thank you all in advance

December 28th, 2010, 01:30 AM
the system will reserve 5% by default in case there are any log files or such on the partition that need to be written when otherwise the partition is full. tune2fs manages this - check the man page.

use 'sudo tune2fs -l /dev/sda6' and look for how many blocks have been reserved.

If you are sure you don't need any system reserve on the drive, use 'sudo tune2fs -m 0 /dev/sda6' to remove the reserve allocation and free up the space.

as always, usual caveats apply. standard disclaimers as well.

This is a common question. It took me a coon's age to find out about this reserved space. With large partitions, the reserve can really add up. It appears to be generally safe to remove to reserve allocation on a drive used for data storage only.

El Potro
December 28th, 2010, 01:40 AM
Problem Solved, thank you very much bryanl.:popcorn: