On 2009-08-29 at 19:37 +0200, Thomas Bächler wrote: > http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2563 > > So, this is what happens. Input is welcome :) As I had nowhere enough space to backup the hard drive and recreate the LUKS volume I was desperate enough to use the dd method Karel Zak mentioned in his second post: # dd if=/dev/zero of=/dev/sdc1 bs=1 seek=1080 count=2 conv=notrunc It worked just fine on the (former ext3) partition. blkid now reports the UUID correctly and the /dev/disk/by-label link for it is created when plugging in the USB drive. # blkid /dev/sdc1 /dev/sdc1: UUID="e3c24abf-143a-4d84-92b1-113f02a49a16" TYPE="crypto_LUKS" However I've come to wonder what the correct partition type for LUKS might be. Usually I use just 83 (Linux), but I also have an encrypted swap partition of type 82 (Linux swap / Solaris). Both work. Moreover [this][1] site claims that the partition type for LUKS is e8. However fdisk doesn't recognize it and just displays it as "Unknown". Is there a preferred partition type for LUKS or is it in this case not so important? [1]: http://www.win.tue.nl/~aeb/partitions/partition_types-1.html