Auto-mounting crypted LUKS partitions to custom mount point

I’ve been strugglig with the Gnome environment of my Debian testing to be able to mount automatically a LUKS crypted partition on my USB key to the same mount point each time, instead of using the next /media/usbdisk-* available (if several USB drives are plugged).

It appears that even if the ext3 filesystem inside the crypted LUKS partition has a label, it won’t be used by the mount tools (here pmount-hal / pmount launched by gnome-volume-manager, in Debian) : see wishlist ticket #379799 (now closed apparently).

Indeed, the volume must be mounted in order to decrypt its content, and be able to read the volume. So the behaviour cannot be the same as for an unencrypted volume.

I think I’ve found the way it should be modified (see a comment on the ticket), but in the meantime, using fdi files, it’s possible to set a desired mount point for a specific volume (see another comment on the ticket).

Hal and its friends are nice tools, but documentation is hard to find 🙁 … I hope this helps a bit.

cryptsetup and LUKS beautifully integrated in Gnome on my Debian (testing)

I’ve blogged in the past on the possibility of using a USB key to store senitive information like passwords. In the post, I was refering to using LUKS. I had not taken time before today to test that setup.

I’ve tested it and it seems to work nicely, beautifully integrated in the Gnome environment (relying on HAL, etc.).
Continue reading “cryptsetup and LUKS beautifully integrated in Gnome on my Debian (testing)”