Encrypt home directory? root + home + swap?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Level 1
Level 1
Posts: 40
Joined: Sun Sep 27, 2009 5:50 pm

Encrypt home directory? root + home + swap?

Postby canam101 » Wed Oct 28, 2009 9:11 am

I have truecrypt working to encrypt files which I put into an encrypted container. Is it possible to use truecrypt, or some other encryption utility, to encrypt my home directory or even the root + home + swap partitions?

The only reference I see to it in truecrypt's help file is for windows, but I am hoping it is possible with mint as well.

If it is possible, is there a straightforward set of instructions to do this? I could create a container file and put anything into it, but how do I boot up, and decrypt the container, and make it usable as an OS? It's answers to these nitty-gritty details that seem to be hard to find.

User avatar
Level 17
Level 17
Posts: 7543
Joined: Wed Jun 17, 2009 8:20 pm

Re: Encrypt home directory? root + home + swap?

Postby DrHu » Wed Oct 28, 2009 10:18 am



  • You really only need the /home directory (your data) encrypted
  • Swap is likely not even being used, as long as you have enough RAM (memory) for your normal application mix
    In a terminal, check
      free -m
      total used free shared buffers cached
      Mem: 1002 502 500 0 20 260
      -/+ buffers/cache: 222 780
      Swap: 2376 0 2376
      --the swap used here is 0, and the full size 2376 is still available
    You can always run Mint's system monitor
    mint menu>Favorites>System Monitor>Resources TAB
  • You don't have to encrypt the OS (/ root)
    --unless the applications you have installed are secret

Return to “Newbie Questions”