Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
/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
/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 – sashoalm Aug 29 '13 at 6: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

In bash:

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

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!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.