Re: LUKS partition is no longer recognized as such

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Mittwoch, 6. Juni 2007 18:27 schrieb Sebastian Bork:
> Tobias Hunger schrieb:
> > Is there a way to flag a partition as "being LUKS" without damaging the
> > master key and keys stored? Is there any chance to get my data back
> > without resorting to my backups?
>
> If nothing else helps: I had some problems with my first key slot being no
> longer recognized (I acidentially deleted it). Overwriting just the right
> amount of bytes at the correct position helped. The format of LUKS headers
> is well documented, just overwrite everything from the start of a partition
> to just before the key slots with the data of another LUKS partition, this
> might help. (But have a backup of the blocks you overwrite ready if it
> doesn't.)

Yes, I found that documentation in the meantime and compared the first couple 
of blocks between my home partition and another (still working) LUKS 
partition. Somehow I managed to completely hose the first couple of blocks!  
I guess I gave the wrong device when configuring a encrypted /tmp with a key 
from /dev/urandom the night before or did something equally stupid.

I tried to copy everything up to the key-blocks from the working LUKS 
partition (which had an identical configuration wrt. hash and crypto 
algorithm), but that did not help either.

In the end I just did a cryptsetup luksFormat and restored my backups. If you 
still have an idea: I made a copy of the complete device with dd, so I can 
experiment on it.

-- 

Tobias Hunger
Senior Software Engineer

basysKom GmbH
Robert-Bosch-Str. 7 | 64293 Darmstadt | Germany
Tel: +49 6151 3968769 | Fax: -9736 |
tobias.hunger@xxxxxxxxxxx | www.basyskom.de

Handelsregister: Darmstadt HRB 9352
Geschaeftsfuehrung: Eva Brucherseifer

---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux