From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f181.google.com (mail-pz0-f181.google.com [209.85.222.181]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 27 Aug 2009 17:44:34 +0200 (CEST) Received: by pzk11 with SMTP id 11so1243968pzk.13 for ; Thu, 27 Aug 2009 08:44:33 -0700 (PDT) Message-ID: <4A96A9D8.4070904@gmail.com> Date: Thu, 27 Aug 2009 10:44:24 -0500 From: Moji MIME-Version: 1.0 References: <20090827145703.GA11409@fancy-poultry.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] volume unrecognized List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Cc: Jacques-Olivier KAPPS Yes using dd and cryptsetup. The wiki has an explanation of why you might not want to do that, in addition to outlining the steps. But if you want to here are the steps. cryptsetup luksDump $DEVICE Find the payload number dd if=$DEVICE of=luks_header_bakup count=$PAYLOAD To restore them just reverse if and of in dd dd if=$luks_header_backup of=$DEVICE count=$PAYLOAD -MJ Jacques-Olivier KAPPS wrote: > >> On 27.08.2009, Jacques-Olivier KAPPS wrote: >> >>> Now I can map the device with luksOpen, but the volume itself is >>> unrecognized. >> Maybe the underlying filesystem got corrupted. >> >>> I certainly can open the device with luksOpen because I choosed the same >>> password in the installation process, but my guess is that the ubuntu >>> installer erased and replaced the luks headers of my partition by new >>> ones, what do you think? >> That would explain the whole situation. When the partition gets prepared >> via LUKS/dmcrypt, the filesystem is gone, and you'll have to format again. >> >>> Do you have any advice? >> Recreate the partition by using the latest backup. You have one, right? >> >> _______________________________________________ >> dm-crypt mailing list >> dm-crypt@saout.de >> http://www.saout.de/mailman/listinfo/dm-crypt >> > > I do have partial backups, it's better than nothing! > > Okay my partition is just garbage now. So I am asking myself, is that > possible to backup those critical headers/master key of my new formated > partition? > > Regards, > > J.O. > > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt >