I am using LUKS for disk encryption for a Ubuntu 18.04 system. I'd like to find out how much free space is still available on my hard drive. gparted prints the following:
As you can see the entire disk is subdivided into three partitions. On startup LUKS tells me that the encrypted disk is called nvme0n1p3_crypt. However, there are nvme0n1p1 and nvme0n1p1 as well.
Does this mean the are three partitions being all encrypted with the same key?
df -a -hcommand outputs among others the following:
/dev/nvme0n1p2 705M 164M 490M 25% /boot /dev/nvme0n1p1 511M 6,1M 505M 2% /boot/efi
Unfortunately, I cannot see the actual device which seems to be /dev/nvme0n1p3?
dflist the encrypted disk and how can I find out the available free space?
df /dev/nvme0n1p3 -hyields the following:
Filesystem Size Used Avail Use% Mounted on udev 7,7G 0 7,7G 0% /dev
This output seems weird, because the total available space is only 7,7G. This is not true as you can see above in the gparted output. The partition has roughly 475.75 GiB. Can you explain this?