Ubuntu – How to determine if just the .private folder is encrypted or the whole home directory

ecryptfsencryption

How can i determine if just the .private folder is encrypted or the whole home directory?

Best Answer

From the terminal type:

cat /home/.ecryptfs/$USER/.ecryptfs/Private.mnt

If the file exists and contains your home directory path, your home directory is encrypted.

Another way to check is looking at your home dir mount point:

From the terminal type:

df $HOME

An encrypted home will be mounted at the ".Private" filesystem, otherwise it will be mounted at some regular partition device (/dev/*) .

Filesystem           1K-blocks      Used Available Use% Mounted on
/home/username/.Private
                     315482376 101351268 198105472  34% /home/username

Regular device mount (no encryption):

df /home/schroot
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda7            315482376 101351332 198105408  34% /home
Related Question