Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
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 help.ubuntu.com/community/EncryptedHome. –  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 at 18:17

1 Answer 1

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!

share|improve this answer

Your Answer

 
discard

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.