Page 1 of 1

crypted hdd recovery

Posted: 04 Sep 2016, 19:57
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.

Re: crypted hdd recovery

Posted: 05 Sep 2016, 06:19
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.