Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

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. –  ZS6JCE 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 org.gnome.desktop.media-handling automount-open false 2) # truecrypt command 3) gsettings set org.gnome.desktop.media-handling automount-open true –  Halil Özgür May 10 at 8:39
add comment
su -c "truecrypt --non-interactive  truecrypt-file cryptshare -p PASSWORD"

(Found on commandlinefu.com.)

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? –  ZS6JCE Mar 29 '13 at 9:32
add comment

Your Answer

 
discard

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.