Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In modern DEs, like KDE or XFCE, you can mount a LUKS device after entering the password.

Now I want to do this without the file manager, with two steps,

  1. Decrypt the device
  2. Mount the disk with udisks command

For the first step, there should be a dbus interface involved, any ideas? Or correct me on how the file managers do that without root permission ...

(P.S I'm not asking for a sudo solution, although I could do that, but I prefer a dbus solution)

share|improve this question
With udisks see udisks.freedesktop.org/docs/1.0.5/Device.html#Device.LuksUnlock - jftr you can play around with dbus via qdbus – Ulrich Dangel Mar 30 '13 at 9:24
udisks als has support for this. udisksctl unlock -b /dev/sda – t-8ch Mar 30 '13 at 9:36
@t-8ch ah cool, I only read about udisks, not udisksctl – warl0ck Mar 30 '13 at 9:38
udisksctl is from udisks2 – t-8ch Mar 30 '13 at 9:39
@t-8ch ah that works, what about the command for "luksClose"? – warl0ck Mar 31 '13 at 1:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.