[dm-crypt] help

Milan Broz gmazyland at gmail.com
Thu Feb 25 18:20:55 CET 2016



On 02/25/2016 06:05 PM, Felix Wagner wrote:
> Hello,
> 
> thanks for your replies. Yea, any of those files DO NOT exist anywhere
> on my fs (I checked with find). I think the process didn't really
> start.
> 
> How do I continue then?

ok, it is possible that you find a nasty bug...
(using /dev/disk/uuid path seems to be not working).

Try this (replace <LUKS_device> and <backup_file> appropriately):

1) backup current (invalidated) header to some file (just to be sure)

dd if=<LUKS_device> of=<backup_file> bs=512 count=2056

2) recover magic string

echo -n -e 'LUKS\xba\xbe' | dd of=<LUKS_device> bs=1 seek=0 conv=notrunc

...
and try to luksDump it, then luksOpen.

Milan


More information about the dm-crypt mailing list