Return-Path: Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com [209.85.218.210]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 1 Oct 2009 04:08:24 +0200 (CEST) Received: by bwz6 with SMTP id 6so3647543bwz.13 for ; Wed, 30 Sep 2009 19:08:24 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 30 Sep 2009 22:08:23 -0400 Message-ID: From: Kyle Bond Content-Type: multipart/alternative; boundary=0016e659f44c50eeb00474d61f52 Subject: [dm-crypt] Recover LUKS partition from deleted partition table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --0016e659f44c50eeb00474d61f52 Content-Type: text/plain; charset=UTF-8 Whilst repartitioning my drive trying to move & enlarge my LUKS partition, I fubar'd the partition table and tried to recreate it from scratch using testdisk. However, testdisk hasn't been able to properly discover the partition; it found the LUKS header and created a logical partition 1 cylinder in size; I can do a luksDump from it, and I can see crypt settings, key slots etc., however the partition's too small to be able to access any data. So I enlarged the discovered logical partition starting at the LUKS header (found using hexdump -C /dev/sda|grep "4c 55 4b 53 ba be") and extending it back to its original 40GB, however when I try to enter the password for it cryptsetup won't accept it (I am doing cryptsetup luksOpen /dev/sda5 root). Help? --Kyle --0016e659f44c50eeb00474d61f52 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Whilst repartitioning my drive trying to move & enlarge my LUKS partiti= on, I fubar'd the partition table and tried to recreate it from scratch= using testdisk. However, testdisk hasn't been able to properly discove= r the partition; it found the LUKS header and created a logical partition 1= cylinder in size; I can do a luksDump from it, and I can see crypt setting= s, key slots etc., however the partition's too small to be able to acce= ss any data. So I=C2=A0 enlarged the discovered logical partition starting = at the LUKS header (found using hexdump -C /dev/sda|grep "4c 55 4b 53 = ba be") and extending it back to its original 40GB, however when I try= to enter the password for it cryptsetup won't accept it (I am doing cr= yptsetup luksOpen /dev/sda5 root). Help?

--Kyle
--0016e659f44c50eeb00474d61f52--