From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bxmYPefZ9pNi for ; Fri, 5 Aug 2011 04:20:45 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 5 Aug 2011 04:20:44 +0200 (CEST) Message-ID: <4E3B5378.2070003@redhat.com> Date: Fri, 05 Aug 2011 04:20:40 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] How can a passphrase be incorrect even after `luksHeaderBackup` and `luksHeaderRestore`? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Menzel Cc: dm-crypt@saout.de On 08/05/2011 01:18 AM, Paul Menzel wrote: > % sudo md5sum /tmp/*header > 7b897c620776f549324810a8aeb9921e /tmp/sda2.header > 7b897c620776f549324810a8aeb9921e /tmp/sda.header > ce314509007b2c76eb85e7b89ee25da5 /tmp/sdb.header > ------- 8< --- entered commands --- >8 ------- > > I would have assumed that all files are identical, i. e. they have the > same hash. It should be the same. (But there is gap between header and keyslot which is explicitly wiped during backup. But from the commands you run it should be the same now.) On which binary offsets it differs? Can you try the same exercise but running it through loop device? (dd e.g. 4M from both sd[ab] disks, map it to loop devices and run the same commands - luksHeaderBackup/Restore. Do you see the same problem? Milan