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 xHlccfon3fHO for ; Fri, 26 Apr 2013 16:14:06 +0200 (CEST) Received: from v6.tansi.org (unknown [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 26 Apr 2013 16:14:06 +0200 (CEST) Received: from gatewagner.dyndns.org (84-72-142-22.dclient.hispeed.ch [84.72.142.22]) by v6.tansi.org (Postfix) with ESMTPA id C437F20DC250 for ; Fri, 26 Apr 2013 16:14:05 +0200 (CEST) Date: Fri, 26 Apr 2013 16:14:05 +0200 From: Arno Wagner Message-ID: <20130426141405.GA3188@tansi.org> References: <51792BC6.7030602@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51792BC6.7030602@riseup.net> Subject: Re: [dm-crypt] not a valid LUKS device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Thu, Apr 25, 2013 at 10:12:38AM -0300, Hugo wrote: > Hi, > > Recently, I was installing Ubuntu 13.10 and the installer appears to > have changed something in the first sector of my home partition as > described here: > https://bugs.launchpad.net/bugs/1169611 > > Now, when I try to open my encrypted partition I get the following error: > > # sudo cryptsetup luksOpen /dev/ubuntu/home home_crypt > > Device /dev/ubuntu/home is not a valid LUKS device > > I don't have a backup of my header and would like to know if I still can > have hope of recovering the luks partition or if I can re-encrypt it, > backup the header and start a new life. > > What is your opinion on this? Well, it is difficult to see what this bug really does, but if it really overwrites the first sector, then the salts in the LUKS header are gone and there is no way to recover from that without a header backup. It seems Ubuntu still does not understand how to keep its fingers off existing LUKS partitions. I recommend you complain to them. Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult. --Tony Hoare