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 IqY4qHAVFl6y for ; Sat, 23 Mar 2013 15:14:32 +0100 (CET) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sat, 23 Mar 2013 15:14:32 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UJOz1-0002g4-QJ for dm-crypt@saout.de; Sat, 23 Mar 2013 14:59:43 +0100 Received: from c-98-227-220-190.hsd1.il.comcast.net ([98.227.220.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Mar 2013 14:59:43 +0100 Received: from rnicholsNOSPAM by c-98-227-220-190.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Mar 2013 14:59:43 +0100 From: Robert Nichols Date: Sat, 23 Mar 2013 08:59:08 -0500 Message-ID: References: <1364017090.19617.140661208074749.347286A1@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <1364017090.19617.140661208074749.347286A1@webmail.messagingengine.com> Subject: Re: [dm-crypt] does luksDump guarantee header integrity? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 03/23/2013 12:38 AM, hank wrote: > Hi, > > I accidentally "formatted" an encrypted partition with mkfs.nilfs2 > (incl. -K option). Luckily mkfs.nilfs2 normally only overwrites data > after 1024 bytes from the start of the block device, so the LUKS header > should have remained intact. The LUKS header, including the key material, is roughly a half Megabyte in size. The key material, expanded and broken up into 4000 stripes for each key slot, follows the 592-byte LUKS partition header (PHDR). Your accidental formatting left the parameters in the PHDR and the descriptors for first 6 key slots untouched, but overwrote the actual key material. Without a backup of the entire ~.5MB LUKS header you cannot obtain the master key, and your data is unrecoverable. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.