3

I have enabled TRIM for my root partition by adding discard in /etc/fstab, following How to enable TRIM?

They mention that special steps are needed if I have an encrypted partition. I have encrypted folders, but not encrypted partitions.

Do encrypted home folders need special steps to enable TRIM?

sashoalm
  • 5,131
  • /home is a partition, so if you've chosen to encrypt your home directory I think you do have an encrypted partition. Maybe someone more knowledgeable can clarify? – Tom Brossman Aug 28 '13 at 20:39
  • 1
    /home is not a partition on my laptop - it is a directory in the root partition. I do not have a separate home partition. My user's home directory is a subdirectory of /home, i.e. it's /home/satuon. Also, home directories are encrypted on a per-user basis. For example, I have another user whose home directory is not encrypted. See https://help.ubuntu.com/community/EncryptedHome. – sashoalm Aug 29 '13 at 06:25
  • If your /home is encrypted, Ubuntu still treats it very similar to a different partition, so if people refer to it as a partition, do not be surprised. – earthmeLon Aug 10 '14 at 18:17

1 Answers1

0

In bash:

if [ -e /etc/crypttab ] ; then
  echo "Yes, you do!"
else
  echo "No, you don't..."
fi

In human:

If you have a /etc/crypttab file on your system, yes you need to do something "special" to your encrypted folders to allow TRIM!

Fabby
  • 34,259