LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   URGENT - How to recover an encrypted partition? Need Help (http://www.linuxquestions.org/questions/linux-general-1/urgent-how-to-recover-an-encrypted-partition-need-help-4175447820/)

PuffDaddy 01-30-2013 06:41 AM

URGENT - How to recover an encrypted partition? Need Help
 
Hi everyone:

I have encountered the following problem:

I have updated to Ubuntu 12.10 recently and - as I have no possibilty to burn a bootable CD/DVD - I did this by using UNetBootin over WinXP.
In order to mount the target-drive I installed UnetBootIn at the MBR of the second (external) HD.
This Disc did contain also an encrypted Partition with my Data-Backup in it.
When I finished installtion I found that both Ubuntu and WinXP show the Partition as not used, so I was
not able to mount it either.

My question now is how to recover the partition, I have learned that running dd over an encrypted partition is not a very smart thing to do.
Also I do not have enough disc-space to copy an image of the whole disc. I would have to copy that partition to another partition on the same disc. Is that possible anyway? I guess with the right offset it should work. Agree?

Any other solutions?

Is the small size shown as Luks partition, because this only is the Luks-Header? How can I acces that without mounting the disc?

I have had testdisc run over the relevant disc. This is an excerpt from the log-file:

__________________________________________________________________________________________________
Results
* HPFS - NTFS 0 1 1 4851 254 63 77947317 [Primary ]
NTFS, 39 GB / 37 GiB
P Linux 4852 0 1 18238 254 63 215062155
EXT4 Large file Sparse superblock Recover, 110 GB / 102 GiB
P Linux 18239 0 1 18239 254 63 16065
LUKS 1 (Data size unknown), 8225 KB / 8032 KiB

interface_write()
1 * HPFS - NTFS 0 1 1 4851 254 63 77947317 [Primary ]
2 P Linux 4852 0 1 18238 254 63 215062155
3 P Linux 18239 0 1 18239 254 63 16065
____________________________________________________________________________________________________

So it inidcates the Luks Partition, which obviously has the wrong size.

frankbell 01-30-2013 10:00 PM

I found this link: http://blog.miketoscano.com/?p=72

Maybe it will help. I don't have any first-hand experience with this.

PuffDaddy 01-30-2013 10:57 PM

Thanks for your Help ...
 
But I found a way.

Currently my machine is performing a hexdump search for the LuksHeader and than I should be able to loop-mount the partition in question.

frankbell 01-31-2013 08:03 PM

Good. If it works, it might help someone else if you post what you did.


All times are GMT -5. The time now is 11:27 AM.