From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tansi.org (ns.km10532-04.keymachine.de [87.118.102.195]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 6 Sep 2010 14:48:14 +0200 (CEST) Received: from gatewagner.dyndns.org (84-74-164-239.dclient.hispeed.ch [84.74.164.239]) by tansi.org (Postfix) with ESMTPA id 1E49A212804A for ; Mon, 6 Sep 2010 14:48:14 +0200 (CEST) Date: Mon, 6 Sep 2010 14:48:13 +0200 From: Arno Wagner Message-ID: <20100906124812.GA13044@tansi.org> References: <201009062034.05071.aaron.lewis1989@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <201009062034.05071.aaron.lewis1989@gmail.com> Subject: Re: [dm-crypt] wrong partition type with blkid command ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de If you create a raw dm-crypt partition with cryptsetup, there is no valiadation at all, i.e. you can do this on a non-encrypted partition and not get an error message. Ir is extremely unlikely for encrypted data to just match the=20 magic number, so something else is likely wrong here. Arno On Mon, Sep 06, 2010 at 08:33:58PM +0800, Aaron Lewis wrote: > Hi, > blkid told me the type of an encrypted partition is "ext4" , while=20 > cryptsetup works fine. >=20 > * blkid /dev/sda8 > /dev/sda8: LABEL=3D"ROOT" UUID=3D"92d7eb3f-617d-4d63-8d1c-86b99ddeb5e4"= =20 > TYPE=3D"ext4" >=20 > ( TYPE should be crypto_LUKS ) >=20 > I've went through util-linux's source code , all magic code are defined h= ere: > shlibs/blkid/src/superblocks/luks.c >=20 > I should not modify partition directly , should be some tools could help = ,=20 > anyone know ? >=20 > Many thanks ! >=20 > --=20 > Best Regards, > Aaron Lewis - PGP: 0x4A6D32A0 > FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 > irc: A4R0NL3WI5 on freenode > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt --=20 Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.nam= e=20 GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans 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=20