3

Below is an output of df command

# df /boot
Filesystem     1K-blocks   Used     Available Use%  Mounted on
/dev/sda2         122835  26732     89550     23%   /boot

I cannot figure out how the "Available" column is calculated. It doesn't equal:

 1K-blocks - Used

It seems about equal:

(1K-blocks - Used) - ((1K-blocks) * 5 / 100)

My question is, how is the "Available" column calculated?

vho
  • 145

1 Answers1

6

The "Available" column is calculated properly. It shows the available space.

ext4 partitions have 5% reserve by default for root and system services.

You can check that by tune2fs utility.

So it is correct that available space is all space minus used space minus 5%.

Pilot6
  • 90,100
  • 91
  • 213
  • 324