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,241

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
  • 35,017