I'd been thinking of adding another --admin option for a while, someone who did a lot of help on inxi had asked for it a while ago, but I didn't get around to it.
pinxi -pa (or -p --admin)
now adds: raw size: this is the actual byte count of the parition, including the file system overhead stuff, it shows the percent available for size: that's the actual amount of the total size that you can use for data, and shows the logical block size for good measure. Logical block size can be quite a bit smaller than physical block size, but for the math, logical is the right one.
Technically I should actually add the block size to the disks, not the partitions, but maybe you can tweak the block size? on per partition basis, can't remember.
remote, swap, and a few other types of partitions aren't supported.
Give it a spin, see if you can find a valid partition type that doesn't work as expected, yet appears in ls /sys/block/[id] or /sys/block/[base]/[id]
Code: Select all
pinxi -zpla -y80 Partition: ID-1: / raw size: 35.00 GiB size: 34.32 GiB (98.07%) used: 12.87 GiB (37.5%) block size: 512 bits fs: ext4 dev: /dev/vda1 label: N/A ID-2: /usr/home raw size: 60.00 GiB size: 58.93 GiB (98.22%) used: 22.47 GiB (38.1%) block size: 512 bits fs: ext4 dev: /dev/vdb label: N/A ID-3: /usr/home/staff size: 34.32 GiB used: 30.24 GiB (88.1%) fs: nfs remote: 10.81.1.5:/usr/home/staff label: N/A uuid: N/A pinxi -plxxxzay80 Partition: ID-1: / raw size: 18.63 GiB size: 18.21 GiB (97.75%) used: 1.64 GiB (9.0%) block size: 512 bits fs: ext4 dev: /dev/sda1 label: vc-root ID-2: /home raw size: 7.45 GiB size: 7.27 GiB (97.59%) used: 674.9 MiB (9.1%) block size: 512 bits fs: ext4 dev: /dev/sda2 label: vc-home ID-3: /var/www/m raw size: 91.27 GiB size: 89.34 GiB (97.88%) used: 5.51 GiB (6.2%) block size: 512 bits fs: ext4 dev: /dev/sda3 label: vc-m ID-4: swap-1 size: 1.90 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda4 label: N/A