Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

If I create a truecrypt volume using my windows 7 password as a key, can I configure truecrypt/windows to automatically mount it when I login? This would probably require windows 7 support(something like ubuntu's PAM)

share|improve this question
up vote 1 down vote accepted

You can certainly write a script to mount your volume on login, using the CLI options and executing the script via the windows task manager, but you will not get any integration with windows directly, so you will need to include your password in the script, which is of course non-optimal. you would also have to schedule a similar script to dismount it on log out.

I would also recommend against mounting at boot, rather than on demand, because the practical attacks on truecrypt involve accessing the encryption key in ram or a ram cache like hiberfil.sys or pagefile.sys. these attacks are impossible if you mount your volume only when needed and dismount it when you are done.

share|improve this answer
Since I always disable hibernate and enable pagefile encryption, those two files are not a problem. Besides, I'm just looking for a simple way to encrypt/decrypt some commonly files using my normal workflow, extreme security isn't a concern – Thiago de Arruda Mar 25 '13 at 12:00
then it sounds like my answer will work for you. – Frank Thomas Mar 25 '13 at 12:48
Not if I have to write my key into plain text. With 'extreme security isnt a concern' I meant I don't care to protect against crackers with a lot of resources(eg: FBI), but I also dont want any kid with physical access to my computer to read my files. What I want is a solution in the spirit of ubuntu's PAM, which uses the password typed at login to unlock my passphrase and insert into the kernel keyring. – Thiago de Arruda Mar 25 '13 at 13:08
and once again, the answer is no, you cannot achieve that level of integration with truecrypt. – Frank Thomas Mar 25 '13 at 14:32

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.