All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Strange header corruption
@ 2014-02-25 14:33 Dis McCarthy
  2014-02-26  4:11 ` Arno Wagner
  0 siblings, 1 reply; 6+ messages in thread
From: Dis McCarthy @ 2014-02-25 14:33 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 2491 bytes --]

I've got 2 full-device luks devices (usb3) that somehow got corrupted
headers at the same time. They were working, I powered down the system to
move some plugs and when I brought it back up, my headers are unrecognized.
(See below.) The system is a mac mini running arch linux. It has been
rebooted and powercycled repeatedly since being built and never had an
issue, so I hesitate to blame refit. The only thing I can see is that there
was a recent update of cryptsetup (to 1.6.3-2). I'm not sure if the devices
were stopped cleanly before reboot (probably not, since its arch..) but the
volumes were unmounted and I wouldn't expect to get corruption.

I'm dumb, and do not have a backup of the headers. (Well.. there might be a
backup of one of them. Inside the encrypted volume.. yeah, like I said, I'm
dumb. If I get this back, that is getting remedied immediately..)

Comparing with other users, it looks like some of the entries are swapped
around. I started doing a comparison to the on-disk format pdf, but I
haven't had a chance to print it out and get intimate with it yet (beyond
noting that LUKS 0xba0xbe is missing of course.)

Is there any hope? Here is what I've got at the beginning the drives:

00000000  00 00 00 00 48 00 00 00  00 00 00 00 32 32 30 64
 |....H.......220d|
00000010  32 30 33 64 2d 39 62 62  34 2d 34 35 00 00 00 00
 |203d-9bb4-45....|
00000020  24 00 00 00 12 00 00 00  24 00 00 00 00 00 61 69
 |$.......$.....ai|
00000030  6e 36 34 00 00 00 00 00  00 00 00 00 00 00 00 00
 |n64.............|
00000040  00 00 00 00 00 00 00 00  73 68 61 32 35 36 00 00
 |........sha256..|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 |................|
00000060  00 00 00 00 00 00 00 00  00 00 10 00 00 00 00 40
 |...............@|
00000070  da 22 00 00 00 00 24 01  00 00 00 00 00 00 00 00
 |."....$.........|

and:
00000000  00 00 00 00 48 00 00 00  00 00 00 00 32 33 63 38
 |....H.......23c8|
00000010  62 61 33 31 2d 37 61 63  66 2d 34 32 00 00 00 00
 |ba31-7acf-42....|
00000020  24 00 00 00 12 00 00 00  24 00 00 00 00 00 61 69
 |$.......$.....ai|
00000030  6e 36 34 00 00 00 00 00  00 00 00 00 00 00 00 00
 |n64.............|
00000040  00 00 00 00 00 00 00 00  73 68 61 32 35 36 00 00
 |........sha256..|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 |................|
00000060  00 00 00 00 00 00 00 00  00 00 10 00 00 00 00 40
 |...............@|
00000070  de 8b 00 00 00 00 24 01  00 00 00 00 00 00 00 00
 |......$.........|

Thanks!

[-- Attachment #2: Type: text/html, Size: 3650 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-26 16:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-25 14:33 [dm-crypt] Strange header corruption Dis McCarthy
2014-02-26  4:11 ` Arno Wagner
2014-02-26 12:13   ` Dis McCarthy
2014-02-26 12:49     ` Arno Wagner
2014-02-26 15:24       ` Dis McCarthy
2014-02-26 16:52         ` Arno Wagner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.