[dm-crypt] How to recognize a LUKS container

Ralf Ramsauer ralf+dm at ramses-pyramidenbau.de
Tue Sep 22 22:14:06 CEST 2015


Damn, eventually I forgot to mention

cryptsetup isLuks yourDevice

  Ralf

On 09/22/2015 10:03 PM, Ralf Ramsauer wrote:
> Hello,
>
> there are few options how to detect a LUKS container:
>
> - use 'cryptsetup luksDump' on your device. It will fail, if it's not
> a LUKS container.
> - If you have a dump, you can also use the 'file' command
>
> Or the sophisticated one :-)
> - Look at the first few bytes of your partition/dump and check, if it
> contains the magic header "LUKS"
>   'sudo head -c 128 /dev/yourdevice | hexdump -C'
> It should look like
>
>     00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00 
>     |LUKS....aes.....|
>     00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
>     |................|
>     00000020  00 00 00 00 00 00 00 00  78 74 73 2d 70 6c 61 69 
>     |........xts-plai|
>     00000030  6e 36 34 00 00 00 00 00  00 00 00 00 00 00 00 00 
>     |n64.............|
>     ...
>
>
> Cheers
>   Ralf
>
> On 09/22/2015 08:52 PM, H McCurdy wrote:
>> Hi,
>>
>> I've read the FAQ (but can't guarantee I didn't miss something).  In
>> the warnings sections about the Ubuntu installer I read "... (it is
>> very easy to recognize a LUKS container)..."
>>
>> I don't actually need to know, but I'd like to know how this is
>> done.  I didn't find the answer in the FAQ, didn't find it using
>> Google and didn't find it on Stack Overflow.
>>
>>
>>
>> _______________________________________________
>> dm-crypt mailing list
>> dm-crypt at saout.de
>> http://www.saout.de/mailman/listinfo/dm-crypt
>
>
>
> _______________________________________________
> dm-crypt mailing list
> dm-crypt at saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20150922/c994172b/attachment.html>


More information about the dm-crypt mailing list