Automounting encrypted flash drives in Gnome+xmonad

Caleb enlightened.despot at gmail.com
Fri Mar 20 16:57:30 UTC 2015


Hi all,

I'm running Ubuntu 14.04. Whenever I'm using the default Unity desktop
environment (or using the Gnome Classic session with Metacity), a flash
drive with a LUKS-encrypted filesystem is automatically mounted whenever
it's plugged in. This happens without any entries in /etc/fstab; I simply
save the decryption passphrase for the drive in my keyring.

When I use an alternative windows manager in my Gnome session (in my case,
xmonad), the USB drive is not automounted when plugged in. How can I get
the encrypted flash drive to automount in Gnome+xmonad?

The debus session monitor output for both sessions is essentially identical
at first, but the log output for Unity has additional entries, starting
with:
signal sender=:1.72 -> dest=(null destination) serial=237
path=/org/freedesktop/UDisks2;
interface=org.freedesktop.DBus.ObjectManager; member=InterfacesAdded
   object path "/org/freedesktop/UDisks2/jobs/4"
   array [
      dict entry(
         string "org.freedesktop.UDisks2.Job"
         array [
            dict entry(
               string "Operation"
               variant                   string "encrypted-unlock"
            )

...

so I suppose my question could be rephrased as "what process/daemon/helper
causes the encrypted-unlock operation of udisks2 to execute when an
encrypted flash drive is plugged in?"

Any advice or suggestions for a more appropriate place to ask this question
would be greatly appreciated.

Cheers,
-Caleb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150320/fd6a6f8c/attachment.html>


More information about the ubuntu-users mailing list