Sebastian Schwarz schrieb:
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"

Haha, nice.

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.

Linux completey ignores partition types, it's that simple :)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to