The officially official Devuan Forum!

You are not logged in.

#1 2020-08-16 17:52:16

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 137  

lsblk is a liar and df cant do math

lsblk -plo NAME,FSUSED,SIZE,FSUSE% /dev/sda4 
NAME      FSUSED   SIZE FSUSE%
/dev/sda4 777.4G 872.1G    91%
df -h /dev/sda4
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda4       858G  778G   37G  96% /media/EVO_860

what is going on here?
lsblk says sda4 is 91% full and df says 96% (96% is correct)
and df says 858 - 778 = 37 , which is obviously not true
also the sizes dont match, which is propably a result of the -h flag but they also dont match when i use -H

Last edited by alphalpha (2020-08-16 21:01:06)

Offline

#2 2020-08-16 18:42:12

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: lsblk is a liar and df cant do math

I presume the device is formatted with ext4 — that reserves 5% of the blocks for root usage by default.


Brianna Ghey — Rest In Power

Offline

Board footer