From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 6 Sep 2010 14:57:28 +0200 (CEST) Message-ID: <4C84E533.6020209@redhat.com> Date: Mon, 06 Sep 2010 14:57:23 +0200 From: Milan Broz MIME-Version: 1.0 References: <201009062034.05071.aaron.lewis1989@gmail.com> In-Reply-To: <201009062034.05071.aaron.lewis1989@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] wrong partition type with blkid command ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aaron Lewis Cc: dm-crypt@saout.de On 09/06/2010 02:33 PM, Aaron Lewis wrote: > blkid told me the type of an encrypted partition is "ext4" , while > cryptsetup works fine. > > * blkid /dev/sda8 > /dev/sda8: LABEL="ROOT" UUID="92d7eb3f-617d-4d63-8d1c-86b99ddeb5e4" > TYPE="ext4" > > ( TYPE should be crypto_LUKS ) > > I've went through util-linux's source code , all magic code are defined here: > shlibs/blkid/src/superblocks/luks.c IF it is LUKS and not plain crypto - "blkid -u crypto -p /dev/sda8" prints LUKS? If so, that's probably old bug - both signarures are present (cryptsetup did not wipe part of signature) read http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#3._Common_Problems "blkid" sees a LUKS UUID and an ext2/swap UUID on the same device. What is wrong?" Milan