I'm running Arch Linux and would like to encrypt my personal files in my home directory /home/myusername. What is the recommended way of encrypting it? I've already read about dm-crypt and LUKS. But both methods seem to require entering a password after every (re)boot. Is there a other more easy way?

Additionally, would you recommending encrypting the complete / partition?

  • For the password to not be required, the encryption key must be stored unprotected, which makes the encryption worthless. Anybody with physical access to the hard disk will be able to access your encrypted data. – gronostaj Feb 14 at 19:30
  • TPM could be used to skip password entry securely, but as far as I know TPM support on Linux is still very limited. It can be configured on legacy boot systems with a modified GRUB, but it's not easy and UEFI boot support is missing. – gronostaj Feb 14 at 19:33
  • @gronostaj, that's not true. I am using clevis with TPM & TANG pins for data partition encryption on UEFI system with secure boot and CentOS 7.7 and this works without any problems. Replace data partition (to be precise: LV actually) with home partition and this should work. – Tomek Feb 14 at 19:58
  • @Tomek Interesting, I haven't heard of it. You could improve your answer by providing some configuration details, rather than only links (which can rot). – gronostaj Feb 14 at 21:45
  • Well, unfortunately it IS a bit involving. But both are included in RHEL, CentOS and Fedora and man pages provide some level of detail. And it is RedHat behind that project so I suspect it WILL survive. – Tomek Feb 14 at 22:02

I suggest looking at clevis with luks binding and tang for that purpose.

EDIT: There is some documentation on these tools in official RHEL documentation but one needs to search for it. They are included in recent RHEL, CentOS and Fedora (and likely others) and they do come with reasonable man pages. But they DO need some investment of time.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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