Why does it show 0 in the available column?
[root@server log]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 4128448 4096484 0 100% /
It's an ext3 filesystem.
Why does it show 0 in the available column?
[root@server log]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 4128448 4096484 0 100% /
It's an ext3 filesystem.
df
reports the percentage of used blocks relative to the blocks not reserved for root use (by default I think it's 5% of the drive in ext3). It can be changed by using the -m
option of tune2fs
e.g. to set it to 2%
tune2fs -m 2 /dev/sdXY
The reserved blocks allow system daemons to keep going even when the disk is full, while non-root processes will not be able to write to it. It also helps reducing drive fragmentation.