[dm-crypt] /dev/md1 is not a valid LUKS device

Louis-David Mitterrand vindex+lists-dm-crypt at apartia.org
Mon Jul 4 23:15:18 CEST 2011


On Mon, Jul 04, 2011 at 11:10:24PM +0200, Arno Wagner wrote:
> On Mon, Jul 04, 2011 at 05:45:23PM +0200, Louis-David Mitterrand wrote:
> > Hi,
> > 
> > After a hardware crash I now get this error:
> > 
> > 	root at grml ~ # cryptsetup isLuks /dev/md1 
> > 	Device /dev/md1 is not a valid LUKS device
> > 
> > Am I basically fucked?
> 
> I assume you have no header backup? 

Alas no.

> If so, possibly, but not necessarily. Is this on an SSD? There

No SSD, md raid6 array on regular disks.

> the LUKS header could be in the same "sector" as a data area 
> (due large SSD actual sector size)
> 
> Can you send me the first 700 bytes of the partition as hexdump?
> You can get them for example like this:
> 
>   hd /dev/md1 | head -n 40

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 18 00 00 00 00 20  |............... |
00000070  08 61 ee d5 da 46 75 45  3a 26 b7 68 ee 3a 4c 65  |.aîÕÚFuE:&·hî:Le|
00000080  ce 97 79 5f 5e 5c 96 00  a3 e1 11 f2 83 74 e9 a6  |Î.y_^\..£á.ò.téŠ|
00000090  97 d1 fe 67 0b 30 0e f0  24 cb 7c 27 4e d1 57 a8  |.Ñþg.0.ð$Ë|'NÑWš|
000000a0  3e bc 9a d4 00 00 a6 81  32 39 63 61 32 63 31 32  |>Œ.Ô..Š.29ca2c12|
000000b0  2d 64 64 32 62 2d 34 33  61 66 2d 61 33 33 30 2d  |-dd2b-43af-a330-|
000000c0  32 34 30 39 33 64 63 38  65 34 65 31 00 00 00 00  |24093dc8e4e1....|
000000d0  00 ac 71 f3 00 02 9a 2d  e3 83 7c e6 f6 a2 10 ad  |.¬qó...-ã.|æö¢.­|
000000e0  53 72 23 25 82 22 80 8d  af 3b ea c8 0d 85 7a 18  |Sr#%."..¯;êÈ..z.|
000000f0  5e 59 b0 92 b6 ca 5d e6  00 00 00 08 00 00 0f a0  |^Y°.¶Ê]æ....... |
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  |............... |
00000250  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001000  2d 51 43 53 eb 1b 55 ac  05 9a b1 5f 57 33 31 11  |-QCSë.U¬..±_W31.|


Thanks,


More information about the dm-crypt mailing list