All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Corrupted luks partition, help needed
@ 2010-06-03 15:32 Panagiotis Malakoudis
  2010-06-03 15:51 ` Milan Broz
  0 siblings, 1 reply; 12+ messages in thread
From: Panagiotis Malakoudis @ 2010-06-03 15:32 UTC (permalink / raw)
  To: dm-crypt

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

I have a luks partition which was corrupted by failed disk i/o. Examining
the partition, the first 512 bytes of the LUKS header is correct, then there
is a corruption which I am not really sure how many sectors affected. Giving
the correct key always returns: "No key available with this passphrase.".
Since the first 512 bytes are correct, I guess all key information is
unharmed. Is there a way to decrypt the partition, even loosing some sectors
of data?

Various logs follow:
cryptsetup luksDump /dev/sdd3
LUKS header information for /dev/sdd3

Version:           1
Cipher name:       aes
Cipher mode:       cbc-essiv:sha256
Hash spec:         sha1
Payload offset:    2056
MK bits:           256
MK digest:         8a 87 ad 0e a4 39 ce cd 26 68 a3 e4 59 90 1c c9 d7 bc d1
e7
MK salt:           28 b2 e9 f6 dc 6a 15 34 a4 e5 e4 b2 fa de e1 68
                   fd af 95 61 27 29 87 72 c8 f7 8f 9c 0f 61 54 bf
MK iterations:     10
UUID:              ca429424-f599-48f5-8c91-
0a1a724e912f

Key Slot 0: ENABLED
    Iterations:             93533
    Salt:                   45 fb 1e 03 3d 4e 4f c0 81 bd 1f 62 2c 2b e4 2c
                              46 11 57 a6 c3 83 a5 7c 82 de a6 9c 88 a1 70
a4
    Key material offset:    8
    AF stripes:                4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED

00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00
|LUKS....aes.....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000020  00 00 00 00 00 00 00 00  63 62 63 2d 65 73 73 69
|........cbc-essi|
00000030  76 3a 73 68 61 32 35 36  00 00 00 00 00 00 00 00
|v:sha256........|
00000040  00 00 00 00 00 00 00 00  73 68 61 31 00 00 00 00
|........sha1....|
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 08 08 00 00 00 20  |...............
|
00000070  8a 87 ad 0e a4 39 ce cd  26 68 a3 e4 59 90 1c c9
|.....9..&h..Y...|
00000080  d7 bc d1 e7 28 b2 e9 f6  dc 6a 15 34 a4 e5 e4 b2
|....(....j.4....|
00000090  fa de e1 68 fd af 95 61  27 29 87 72 c8 f7 8f 9c
|...h...a').r....|
000000a0  0f 61 54 bf 00 00 00 0a  63 61 34 32 39 34 32 34
|.aT.....ca429424|
000000b0  2d 66 35 39 39 2d 34 38  66 35 2d 38 63 39 31 2d
|-f599-48f5-8c91-|
000000c0  30 61 31 61 37 32 34 65  39 31 32 66 00 00 00 00
|0a1a724e912f....|
000000d0  00 ac 71 f3 00 01 6d 5d  45 fb 1e 03 3d 4e 4f c0
|..q...m]E...=NO.|
000000e0  81 bd 1f 62 2c 2b e4 2c  46 11 57 a6 c3 83 a5 7c
|...b,+.,F.W....||
000000f0  82 de a6 9c 88 a1 70 a4  00 00 00 08 00 00 0f a0
|......p.........|
00000100  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000120  00 00 00 00 00 00 00 00  00 00 01 08 00 00 0f a0
|................|
00000130  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000150  00 00 00 00 00 00 00 00  00 00 02 08 00 00 0f a0
|................|
00000160  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000180  00 00 00 00 00 00 00 00  00 00 03 08 00 00 0f a0
|................|
00000190  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
000001b0  00 00 00 00 00 00 00 00  00 00 04 08 00 00 0f a0
|................|
000001c0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
000001e0  00 00 00 00 00 00 00 00  00 00 05 08 00 00 0f a0
|................|
000001f0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000210  00 00 00 00 00 00 00 00  00 00 06 08 00 00 0f a0
|................|
00000220  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|
00000240  00 00 00 00 00 00 00 00  00 00 07 08 00 00 0f a0
|................|

this shouldn't be here, so this is where corruption starts!!!!

00000250  13 8e 3c 67 f5 3e 82 c4  12 d4 8f e6 31 9b 84 89
|..<g.>......1...|
00000260  27 79 e1 f5 1a e3 15 5e  94 a1 c3 6e b0 57 33 8e
|'y.....^...n.W3.|
00000270  b0 58 bb 21 f9 c3 10 11  59 d0 28 1e a6 7b f2 ce
|.X.!....Y.(..{..|
00000280  7c b3 2e d6 51 0f 68 d0  df 83 e4 52 3e 3b ad 2f
||...Q.h....R>;./|
00000290  c6 05 8d a5 92 a2 a2 8a  bc c6 4f 22 a4 a6 a9 dc
|..........O"....|
000002a0  3b 1d 41 85 41 7f 5d e9  60 6f f2 e1 b3 a5 99 c3
|;.A.A.].`o......|
000002b0  31 f7 d9 64 cc e6 42 43  ad b7 5f 62 ca fa a8 dd
|1..d..BC.._b....|
000002c0  fd bc 45 8b 2a 98 7d c2  0f 4b 07 a3 1a 08 1b 45
|..E.*.}..K.....E|
000002d0  91 9e 3d fe 24 de 72 91  fe e9 5c 99 c9 d8 0c 71
|..=.$.r...\....q|
000002e0  32 e8 cb df 01 67 4f dc  72 fe a8 d5 57 f2 4c 2b
|2....gO.r...W.L+|
000002f0  46 4a 9c 08 d4 ba 3a 3e  78 7a e6 ca b4 e8 5f a4
|FJ....:>xz...._.|
00000300  61 4f 87 0c 79 e8 dc 13  e9 65 92 ed 9d f4 f7 3c
|aO..y....e.....<|
00000310  9f d6 35 eb 10 7a ab 72  a7 c6 05 91 2e 44 60 f2
|..5..z.r.....D`.|
00000320  9a 0e f2 b1 b2 93 1b ba  49 c6 c4 98 cf 31 ec 28
|........I....1.(|
00000330  27 99 2c 3a 2f 74 6f 95  40 3b a8 1c f8 18 3e 27  |'.,:/to.@
;....>'|
00000340  79 12 ad 79 f6 8f df 58  3d 1a 6c c5 e0 c4 8c f6
|y..y...X=.l.....|
00000350  7b c1 3d e4 9a 34 15 43  39 48 e0 25 e8 e5 53 f2
|{.=..4.C9H.%..S.|
00000360  80 0c a9 7e 45 59 e0 ef  0a 0f d4 f3 03 ce 1a 23
|...~EY.........#|
00000370  e7 72 b9 c2 aa 86 bd ad  c9 f5 f9 cf 54 8e 4a 5d
|.r..........T.J]|
00000380  35 db f0 5f 93 f1 84 10  f9 bc 1f ab 59 49 0b d7
|5.._........YI..|
00000390  30 ca 9f 00 59 7c 49 b2  1d e7 81 ec eb 72 72 2d
|0...Y|I......rr-|
000003a0  ac 05 ca d5 8d 8a 2f 8a  e0 4c f2 1d b6 7d 9e eb
|....../..L...}..|
000003b0  26 d0 c7 ce c0 b0 65 23  2f 63 04 d1 1b 5f 98 8d
|&.....e#/c..._..|
000003c0  02 3a be 57 4f 96 a2 b4  e1 cb e3 83 e5 b4 fc 49
|.:.WO..........I|
000003d0  fe 30 6a e6 2e 19 76 1e  30 28 63 9d e2 83 67 51
|.0j...v.0(c...gQ|
000003e0  29 93 02 1f 3c 81 a5 f7  34 af 03 a6 a5 ed 10 1a
|)...<...4.......|
000003f0  f5 64 f2 5c 75 67 3e 05  e2 9b 60 b2 b6 c3 73 38
|.d.\ug>...`...s8|
00000400

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

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

end of thread, other threads:[~2010-06-06 19:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03 15:32 [dm-crypt] Corrupted luks partition, help needed Panagiotis Malakoudis
2010-06-03 15:51 ` Milan Broz
2010-06-03 16:16   ` Panagiotis Malakoudis
2010-06-03 18:12     ` Milan Broz
2010-06-03 18:05   ` Panagiotis Malakoudis
2010-06-03 20:14     ` Arno Wagner
2010-06-03 20:48       ` Luca Berra
2010-06-03 20:56         ` Christoph Anton Mitterer
2010-06-03 22:07         ` Arno Wagner
2010-06-04  6:05           ` Panagiotis Malakoudis
2010-06-04  8:54             ` Roscoe
2010-06-06 19:57           ` [dm-crypt] cryptsetup administration tool Ali Reza Sajedi

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.