M
M
Monarch882019-07-26 11:01:31
linux
Monarch88, 2019-07-26 11:01:31

How to determine free disk space in Ubuntu?

Which method shows exact free disk space in Linux? So I have "df -h" writes that sda2 -120G and 33G is free, sda5 - 99G and 36G is free; the Disk Analyzer utility considers that sda2 is 128.2G and 41.5G free, sda5 is 105.6G and 44G, respectively; and the disk utility generally says that the total volume of sda2 is 131G, and sda5 is 108G.5d3ab333b88ab076484568.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
2
20ivs, 2019-07-26
@20ivs

df -h

V
Victor Taran, 2019-07-26
@shambler81

df gives data in bytes

R
Radjah, 2019-07-26
@Radjah

If you really want to, then usetune2fs -l блочное_устройство

Block count:          # общее количество блоков на устройстве
Reserved block count: # Резерв для root
Free blocks:          # умножай на Block size и получишь свободное место
Block size:               4096 # размер блока в байтах

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question