Return-Path: Received: from mail.ramses-pyramidenbau.de (ramses-pyramidenbau.de [IPv6:2a03:4000:6:8069::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 22 Sep 2015 22:08:54 +0200 (CEST) Received: from [IPv6:2a02:810d:25c0:a78:224:d7ff:fe9d:8638] (unknown [IPv6:2a02:810d:25c0:a78:224:d7ff:fe9d:8638]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ramses-pyramidenbau.de (Postfix) with ESMTPSA id 2F53A12085B for ; Tue, 22 Sep 2015 22:03:04 +0200 (CEST) References: <163648314.1746145.1442947936228.JavaMail.yahoo@mail.yahoo.com> From: Ralf Ramsauer Message-ID: <5601B424.4090609@ramses-pyramidenbau.de> Date: Tue, 22 Sep 2015 22:03:48 +0200 MIME-Version: 1.0 In-Reply-To: <163648314.1746145.1442947936228.JavaMail.yahoo@mail.yahoo.com> Content-Type: multipart/alternative; boundary="------------040300060700020408070805" Subject: Re: [dm-crypt] How to recognize a LUKS container List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de This is a multi-part message in MIME format. --------------040300060700020408070805 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt --------------040300060700020408070805 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: quoted-printable
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"
=A0 'sudo head -c 128 /dev/yourdevice | hexdump -C'
It should look like
00000000=A0 4c 55 4b 53 ba be 00 01=A0 61 65 73 00 00 00 00 00=A0 |LUKS....aes.....|
00000010=A0 00 00 00 00 00 00 00 00=A0 00 00 00 00 00 00 00 00=A0 |................|
00000020=A0 00 00 00 00 00 00 00 00=A0 78 74 73 2d 70 6c 61 69=A0 |........xts-plai|
00000030=A0 6e 36 34 00 00 00 00 00=A0 00 00 00 00 00 00 00 00=A0 |n64.............|
...

Cheers
=A0 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).=A0 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.=A0 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@saout.de
http://www.saout.de/mailman/listinfo/dm-crypt

--------------040300060700020408070805--