[dm-crypt] Debian 7.10 random key swap Device /dev/sda2 is not a valid LUKS device.

Michael Kjörling michael at kjorling.se
Wed Apr 6 12:55:37 CEST 2016

On 5 Apr 2016 21:25 -0700, from dpchrist at holgerdanske.com (David Christensen):
> # grep sda2 /etc/crypttab
> sda2_crypt /dev/sda2                                 /dev/urandom
> cipher=aes-xts-plain64,size=256,swap

Since you don't have the "luks" option, Debian does not treat this as
a LUKS device. So when cryptsetup claims that /dev/sda2 "is not a
valid LUKS device" it is quite correct.

Michael Kjörling • https://michael.kjorling.semichael at kjorling.se
                 “People who think they know everything really annoy
                 those of us who know we don’t.” (Bjarne Stroustrup)

More information about the dm-crypt mailing list