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

How do I mount a truecrypt volume in ubuntu from the CLI without a nautilus window being opened?

O/S: Ubuntu 12.10

TrueCrypt: 7.1a

Command (that opens nautilus):

echo "MySuperSecretPassword" | $truecrypt --text /path/to/volume --mount /path/to/mount_point

share|improve this question
up vote 1 down vote accepted

I don't think truecrypt is built to invoke Nautilus, so the reason Nautilus pops up is that it "sees" a new filesystem appearing.

Therefore, I'd try disabling automount-open option in Nautilus, as detailed here (requires dconf-editor).

share|improve this answer
Agreed.Thank you for thinking outside of the box. – Christoff Erasmus Mar 29 '13 at 14:37
@ZS6JCE if you want to disable opening the file manager only for a single mount, you can do it with a hack like me :) 1) gsettings set automount-open false 2) # truecrypt command 3) gsettings set automount-open true – Halil Özgür May 10 '14 at 8:39
su -c "truecrypt --non-interactive  truecrypt-file cryptshare -p PASSWORD"

(Found on

share|improve this answer
I do not feel comfortable using the -p flag, as this will show the clear text password when "ps aux | grep truecrypt" is issued. Is there a way to safely automate the mounting of a volume without the file manager being launched? – Christoff Erasmus Mar 29 '13 at 9: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.