Web lists-archives.com

Re: Partition information as text file?




Le 26/01/2019 à 16:12, Richard Owlett a écrit :
On 01/26/2019 08:36 AM, Jude DaShiell wrote:
lsblk >>lsblk.txt

I had misinterpreted "SIZE  size of the device" in the response
to "lsblk --help". I did not equate "device" to "partition".

But I still need to know how much of each partition is used/unused.

Usually, all of a partition is used. If the partition contains a filesystem, swap area, RAID member or LVM physical volume, these data structures use all the partition space. How much of the space within the data structure is used is outside the scope of the partition level and requires tools specific to the data structure type.

Note that df can show only the used space of mounted filesystems and is not always accurate (btrfs).