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.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityWhy 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.