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 ; Sun, 2 May 2010 11:55:57 +0200 (CEST) Message-ID: <4BDD4C28.7020005@redhat.com> Date: Sun, 02 May 2010 11:55:52 +0200 From: Milan Broz MIME-Version: 1.0 References: <1272792218.20273.9.camel@legolas> In-Reply-To: <1272792218.20273.9.camel@legolas> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] Problem opening device: PBKDF2_HMAC_SHA1: Assertion `iterations != 0' failed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas Cc: dm-crypt@saout.de On 05/02/2010 11:23 AM, Andreas wrote: > What i've done: > =============== > - Removed the device from the Ubuntu-box (it worked there perfectly) > - Attached the device to the Knoppix-Box > - Tried to open the device on the Knoppix-Box > - Received an error (0.99.1 to 0.99)?? Hm. I almost sure you are hitting the same automatic conversion bug. (~ only for disk formatted somewhere in version 1.0.3) I removed that code from recent cryptsetup completely, it need different approach. But this bug is very rare. see http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/4060 If so, luckily it can be easily fixed. If you send me first 4kB (visible LUKS header) I can fix it for you. (This part doesn't contain keyslots.) dd if=/dev/≤your_luks_device> of=/backup.img bs=512 count=8 If you agree, please send me the header - backup.img - in private mail, (optionally encrypted using my gpg key, id is 0xBB21822F on keyservers) I'll send you back the fixed header (if it is this problem...) I need anyway more examples of bad header to prepare some "fix" in new code or at least add some FAQ entry. Milan