1

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

2 Answers 2

1

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).

2
  • Agreed.Thank you for thinking outside of the box. Mar 29, 2013 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 org.gnome.desktop.media-handling automount-open false 2) # truecrypt command 3) gsettings set org.gnome.desktop.media-handling automount-open true May 10, 2014 at 8:39
1
su -c "truecrypt --non-interactive  truecrypt-file cryptshare -p PASSWORD"

(Found on commandlinefu.com.)

1
  • 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? Mar 29, 2013 at 9:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .