[dm-crypt] Problem recovering encrypted partitions

Milan Broz mbroz at redhat.com
Sun Jan 15 15:13:06 CET 2012

On 01/14/2012 10:17 PM, Arno Wagner wrote:

> first thing is to check that the LUKS headers are still there:
>    cryptsetup isLuks<device>

Just nitpicking - I would better suggest to use

blkid -p <device>

It will also detect crypto but also it will print if
there is some other signature.

You should see something like

# blkid -p /dev/sda2
/dev/sda2: UUID="..." VERSION="1" TYPE="crypto_LUKS" USAGE="crypto" ...

(-p means bypass cache, for old blkid just remove this switch
if not supported)


More information about the dm-crypt mailing list