I want to shrink my
/dev/sda2 partition from 463.37GB to 400GB to make room for a new partition.
So I did
e2fsck -f /dev/sda2 followed by
resize2fs /dev/sda2 400G.
man resize2fs, the resize2fs program does not manipulate the size of partitions., so the size is still 463.37GB.
When I start
GParted, I can see the unallocated space:
13.27 GB Used + 386.73 GB Unused space totals 400 GB, as per my
resize2fs command. Also, they grey area displayed is the unallocated space into which I'd like to create the new partition.
So far so good.
Yet, I'd like to see the size of the unallocated space without any GUI tool, only with command line tools such
df or whatever. Unfortunately, I can't find how I can do that.
Is this somehow possible?