LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-15-2010, 12:02 PM   #1
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Rep: Reputation: 16
Automount Truecrypt, Truecrypt command lline OS Arch Linux


Hi all,

Goal:
Since my system is fully encrypted (except for the boot partition) I would like to be able to create a script or a launcher to automount the truecrypt partitions that are shared between Vista and Arch Linux, using keyfiles.

System: Dual boot Arch Linux installed on Luks encrypted LVM and Vista. Vista is encrypted encrypted by truecrypt, Bootloader: Grub legacy in the MBR and (hd0,1) chainloads Truecrypt. Logical partions to be shared by Arch and Vista are encrypted via truecrypt.

Three problems encountered:
1) I am not uncomfortable with the command line, but the Truecrypt command-line and man pages are useless to me. I cannot copy and paste them and use them to mount truecrypt partitions as I would mount a normal disk or partition. A detailed example is needed. Please help me.
2) In example: “su -c "truecrypt --non-interactive truecrypt-file cryptshare -p PASSWORD"” from the site does nothing to tell me how to mount truecrypt encrypted partion xyz on /media/multimedia using a keyfile or with a password for that matter.
3)Creating a desktop launcher is usually easy in Gnome or XFCE4 but when the directions are:
[ Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Mount Truecrypt
Comment=Truecrypt Automount CLI
Categories=Application;
Exec=/path/to/truecrypt-automountcli /path/to/keyfile This line is unintelligible to me
Icon=truecrypt
Terminal=false
StartupNotify=false
Again, the above directions (site is here) tell me nothing as it pertains to mounting truecrypt encrypted partion xyz on /media/multimedia using a keyfile. Can someone please give me a detailed example?
Thanks
PS: Google has obviously been used to no avail. The posted info at the trucrypt forums is spartan or does not address the above.

Last edited by yanfaun; 08-15-2010 at 04:47 PM.
 
Old 08-16-2010, 12:29 AM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Code:
truecrypt --protect-hidden=no --keyfiles=<pathToFile> <device/partition/file> <mountpoint>
You might need another option or two to get it completely non-interactive (there is an option to force this but I'm not sure how it answers the questions for you).

Don't fret, the truecrypt command line support sucks. The help given by "truecrypt -h" is completely disorganized. I've been slowly working on a suite of programs like mount.truecrypt and mkfs.truecrypt... but it would be nice if they could up their linux support =)
 
Old 08-16-2010, 01:49 AM   #3
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Original Poster
Rep: Reputation: 16
Meson,
Thanks for responding. It looks as though what you suggest would work were it not for the fact that I am working with partitions, not files. Your opinion about the truecrypt man pages is accurate. Hopefully, no one will express...
Could you resubmit your example in a manner that would identify a truecrypt partition? Other than that, I believe that you have me on the correct path., so thanks
 
Old 08-16-2010, 08:19 PM   #4
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Why doesn't that work with devices or partitions? Just replace <device/partition/file> with, for example, /dev/sda3.
 
Old 08-16-2010, 11:07 PM   #5
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Original Poster
Rep: Reputation: 16
This works with a little tweaking

Quote:
Originally Posted by Meson View Post
Why doesn't that work with devices or partitions? Just replace <device/partition/file> with, for example, /dev/sda3.
I was able to get this to work, so thanks. However, I tend to translate speech very literally. When you wrote “partition/file,” you used a forward slash between the words partition and file causing me to translate “partition/file”as /dev/sdaX/filename or /dev/filepath/filename. According to most dictionaries, a “forward slash,” when used as a noun, literally means “and or,” hence my translation. Thank you very much! You really helped!

I now have a working script. Unfortunately, it requires that the full path to its location be typed into the terminal before it will execute. I hope to have this ironed out so I can post a detailed “how to”this weekend. Thanks again. No one mark this thread as solved just yet!

truecrypt --protect-hidden=no --keyfiles=<pathToFile> </directory/filename> <mountpoint> this is for files. Test results: Not tested

truecrypt --protect-hidden=no --keyfiles=<pathToFile> <device/partition/> <mountpoint> This is for encrypted volumes Test results: Successful

Special note: if a password is used in conjunction with the keyfiles, a password prompt will appear.

Last edited by yanfaun; 08-17-2010 at 07:48 PM. Reason: Additional detail
 
Old 09-26-2010, 07:37 PM   #6
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Original Poster
Rep: Reputation: 16
I am going to mark this as solved, but with caveats: It would seem that --keyfiles=<pathToFile> means only one keyfile can be in the keyfilefolder. Bracketing and commas were of no value as it pertains to getting the all keyfiles to load. After having created a "bin" folder in my "home" folder, the only way to initiate the script file was to type the entire file path /home/nyusername/bin/"load my truecrypt partition.sh." I created a desktop launcher that loads this script, but I could not create a single command that would do it. E.g., the command "rox && rox" gives me two rox windows without having to type /usr/bin/rox && /usr/bin/rox. I would like to be able to load the script with just one word, but I've failed. Any ideas would be welcome.

Last edited by yanfaun; 09-28-2010 at 01:20 AM. Reason: type-o
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using Truecrypt in Linux Cultist Linux - Software 1 07-29-2010 12:50 AM
Automount encrypted Windows partition (truecrypt) piratesmack Slackware 2 01-13-2010 11:38 PM
Truecrypt Or Truecrypt Alternative On Centos? b10m3ch4 Linux - Server 5 12-18-2009 03:42 AM
How to automatically execute a command (TrueCrypt) on mount cbonar Linux - General 2 08-27-2006 10:42 AM
TrueCrypt for linux? rpz Linux - Software 14 05-19-2006 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration