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.).

For the curious, here are the steps I used :

  • I installed the cryptsetup package which (in testing, at least) contains the necessary patches for using LUKS.
  • I’ve followed some steps of a LUKS wiki page to prepare a crypted partition on my USB key, except that instead of using cryptsetup to create the encrypted partition, I used the Debian provided /sbin/luksformat tool (see /usr/share/doc/cryptsetup/README.Debian for more details). Update: Note that I prefer using luksformat with the “-t ext3” option to get an ext3 partition inside the crypted volume.

That’s mostly it. I have a FAT16 partition of 100 M on the first partition of my USB key, useable unencrypted, and then a “Linux” partition containing a LUKS crypted partition for using in GNU/Linux.

Whenever I plug the USB key under Gnome, I will get prompted for the passphrase for unlocking the partition, and that’s it !

Really cool.

A couple interesting links for more details :

Go ahead, try it.

2 thoughts on “cryptsetup and LUKS beautifully integrated in Gnome on my Debian (testing)”

  1. I setup a WD 120GB external USB drive the same way, and was pleasantly surprised when I plugged it into another box, which happened to be running Fedora 8. Quite neat.

Leave a Reply

Your email address will not be published.