crypted hdd recovery

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read
Posts: 1
Joined: 31 Aug 2016, 22:01

crypted hdd recovery

#1 Post by uzumaki »

I was installing windows and had my encrypted hdd plugged in.
Windows installer detected it as unallocated space and without asking created 350MB NTFS partition at its beginning.
Now it can't be accessed.
I was using dm-crypt + LUKS with default settings.
The real key used for encrypting data is held somewhere in metadata and can be accessed with passphrase so I can't just decrypt the data directly.
I believe while setting up I first encrypted the whole disk then created ext4 file system underneath it.
Could you instruct me what can try to do to recover it, I don't want to mess things up more.

Sponsored links

User avatar
Site Admin
Posts: 5304
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: crypted hdd recovery

#2 Post by cgrenier »

AFAIK unless you have a backup of the output of "dmsetup table --showkeys" or a backup of the first sectors of the LUKS container, nothing can be done.