Ask Your Question
0

automount encrypted USB drive

asked 2013-02-05 15:10:08 -0600

Upsilon gravatar image

I have an external USB hard drive which I encrypted with TrueCrypt. I've just started using Fedora 18 wit the LXDE spin. I would like my USB drive to be mounted automatically when it gets connected. I have managed to use tcplay and mount "by hand", but only as root, and I would also like this to happen without needing root privileges. Ultimately I'm going to have a backup script run. I've searched around, but I'm unclear what is available to me with Fedora & LXDE. It seems like some solutions exist at the desktop manager level, whereas others (udisks, udev?) are presumably lower down.

Should I be looking into udev for this task?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-09-03 23:32:51 -0600

There is a project called zuluCrypt[1] that will allow you to do what you want.

The project has a GUI and CLI interfaces that run without needing root's password.

zuluMount,a component of the project can automount unecrypted volumes.Encrypted devices can not get automounted since a user will have to provide a password to unlock them.

[1] i can not seem to be able to add a link to the project,just google the name of the project to find it

edit flag offensive delete link more
0

answered 2013-07-19 10:46:13 -0600

lkiesow gravatar image

updated 2013-09-03 23:53:38 -0600

yanglifu90 gravatar image

The easiest way for not needing to be root would be to allow your user to execute the specific task with superuser privileges and without a password. For that you just have to put an entry in /etc/sudoers.

If you want automount, however, I would indeed suggest creating a udev rule for that. An example of automounting encrypted usb devices (using LUKS not TrueCrypt) can be found here:

http://paste2.org/6vjwHY3A

This one is taken from the German Arch Wiki, but you should find a lot of examples once you start searching :-)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-05 15:10:08 -0600

Seen: 1,101 times

Last updated: Sep 03 '13