Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mount TrueCrypt volume on login in Ubuntu

Is it possible to automount a TrueCrypt volume when logging in to Ubuntu 8.04? It's already storing the wireless network keys using the Seahorse password manager. Could TrueCrypt be made to fetch its volume password from the same keyring? Currently this would seem like the most convenient way to store my source code on the USB stick I carry around to boot from.

like image 499
jjrv Avatar asked Sep 22 '08 08:09

jjrv


2 Answers

I can't really remember where I found this solution, but it was working for me on Ubuntu Karmic with gdm. You have to edit the /etc/gdm/Init file and add the following:

if !(echo `mount` | grep -q "/home/your_username type")
then
        truecrypt /dev/sdaxxx /home/your_username
fi

Unfortunately it doesn't work in the new Precious Penguin Ubuntu release, since it doesn't come with the gmd package. Does anybody know how to init truecrypt for this Ubuntu release?

like image 88
swizzly Avatar answered Sep 29 '22 06:09

swizzly


Although I'm currently not a Gentoo user (on Ubuntu now), I used to be one, for years, and had learned, that it's a good thing to search for linux answers on forums.gentoo.org and the Gentoo wiki. I had found these, HTH:

  • http://forums.gentoo.org/viewtopic-t-691788-highlight-truecrypt.html
  • http://forums.gentoo.org/viewtopic-t-657404-highlight-truecrypt.html
like image 45
Zsolt Botykai Avatar answered Sep 29 '22 08:09

Zsolt Botykai