From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 15 Apr 2011 15:52:35 +0200 (CEST) Received: by wyb33 with SMTP id 33so2761378wyb.37 for ; Fri, 15 Apr 2011 06:52:35 -0700 (PDT) Message-ID: <4DA84DA2.3020302@gmail.com> Date: Fri, 15 Apr 2011 15:52:34 +0200 From: Cristian KLEIN MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] yet another "lost my partition" message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello list, > I've just lost my home partition trying to reinstall ubuntu. > On the installation process, trying to configure my encrypted home > partition, I thought it was going to mount my partition but it was asking > for the new key. > After that I rebooted and didn't make any other changes to my partition. > It seems the partitioner used "cryptsetup luksFormat". Do you think I can > still restore my partition? > I used the same passphrase configured for my home. This is *exactly* what I did yesterday. I thought I was tired or something, but seeing that it happened to somebody else too, I start thinking that the installer's interface sucks ... badly! I assume there is no way to recover the original file system. Ubuntu has most likely overwritten the LUKS header where the pretious salt is being stored. The unencrypted disk most likely looks like random data now. According to the FAQ [1], you can still resort to the dm-crypt mailing-list to get over the five stages of grief. A posteriori, I cannot help wonder why such pretious information isn't kept redundantly. Surely LUKS could have stored the header in 10 random sectors with an easy-to-grep "HERE I AM" banner. Wouldn't this allow users to recover the master-key (and part of the file-system) without compromising security? Cristi. P.S. Could anybody donate 2^256 CPU-seconds? P.S.2. What stage of grief am I in? :D [1] http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions