[dm-crypt] Is partial LUKS recovery possible?

Mario 'BitKoenig' Holbe Mario.Holbe at TU-Ilmenau.DE
Thu Dec 2 13:31:40 CET 2010

Miklos Bagi <miklos.bagi at mbjr.hu> wrote:
> Given a partition that's known to be a broken LUKS one, lhdr is missing
[cipher, keysize, offset]
> - most importantly: we have the master key file available.

Well, since you know cipher, keysize, offset and the master key, you
should be able to set up the dm-crypt device manually without the help
of LUKS via `cryptsetup create'.

> I have the suspicion that the first approx 10% of the partition have
> been overwritten with random data.
> What are the chances of recovering any data in the given scenario?

If your suspicion is true, your chances to recover anything primarily
depend on the filesystem type you created on top of the crypted device.
Try to find a superblock backup and try to recover the filesystem.

No need to mention: Keep the original data safe and unmodified, base
your recovery attempts on image-copies only.

Gib einem Hungrigen einen Fisch, und er ist fuer einen Tag satt.
Zeig ihm, wie man angelt, und er poebelt Dich an, dass er besseres
zu tun haette, als Schnuere ins Wasser haengen zu lassen.
                              -- David Kastrup in de.comp.text.tex

More information about the dm-crypt mailing list