From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from v6.tansi.org (ns.km31936-01.keymachine.de [87.118.116.4]) by mail.server123.net (Postfix) with ESMTP for ; Tue, 22 Sep 2015 22:13:33 +0200 (CEST) Received: from gatewagner.dyndns.org (77-57-54-224.dclient.hispeed.ch [77.57.54.224]) by v6.tansi.org (Postfix) with ESMTPA id 3153334FA001 for ; Tue, 22 Sep 2015 22:13:33 +0200 (CEST) Date: Tue, 22 Sep 2015 22:13:31 +0200 From: Arno Wagner Message-ID: <20150922201330.GA22680@tansi.org> References: <163648314.1746145.1442947936228.JavaMail.yahoo@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <163648314.1746145.1442947936228.JavaMail.yahoo@mail.yahoo.com> 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 Hi, it is very easy: - cryptsetup isLuks returns true - the container starts with the LUKS magic number, i.e. 'L','U','K','S', 0xBA, 0xBE. On Tue, Sep 22, 2015 at 20:52:16 CEST, 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)..." Always good to know it gets read! > 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. It is really very easy, both using cryptsetup and manyally: - "cryptsetup isLuks " returns true use option -v for additional text output. - The container starts with the LUKS magic number, i.e. 'L','U','K','S', 0xBA, 0xBE. The reference for the second one would be the Luks Specification, available here: https://gitlab.com/cryptsetup/cryptsetup/wikis/LUKS-standard/on-disk-format= .pdf (It is referenced in the FAQ at the end). Regards, Arno --=20 Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it. The very definition of=20 "news" is "something that hardly ever happens." -- Bruce Schneier