How do I check if a partition is encrypted? In particular I would like to know how I check if
/home and swap is encrypted.
Regarding the standard home encryption provided by Ubuntu, you can
and if you get something like
then the username's home directory is encrypted. This works when username is not logged in, so the partition is not mounted. Otherwise you can look at
About the swap, do
and should check for an output similar to
In addition to the answer provided by enzotib, there's the possibility of full disk encryption as provided by the alternate installer. (Also called LUKS-crypt.)
You can use
The line marked "crypt" shows that sda5 has been encrypted. You can see which filesystems are on that via the lvm tools.
In the case of LUKS encryption, the Disk Utility in Ubuntu will also show the encryption layer and the configuration in a graphical manner.
To check the encrypted swap status and cipher details, use this cmd:
Your swap device name may be different, you can check the proper name by: