From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zenon.apartia.fr (zenon.apartia.fr [82.66.93.83]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Mon, 4 Jul 2011 23:15:18 +0200 (CEST) Date: Mon, 4 Jul 2011 23:15:18 +0200 From: Louis-David Mitterrand Message-ID: <20110704211517.GA8705@apartia.fr> References: <20110704154523.GA21034@apartia.fr> <20110704211024.GC16539@tansi.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20110704211024.GC16539@tansi.org> Subject: Re: [dm-crypt] /dev/md1 is not a valid LUKS device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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, > >=20 > > After a hardware crash I now get this error: > >=20 > > root@grml ~ # cryptsetup isLuks /dev/md1=20 > > Device /dev/md1 is not a valid LUKS device > >=20 > > Am I basically fucked? >=20 > I assume you have no header backup?=20 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=20 > (due large SSD actual sector size) >=20 > Can you send me the first 700 bytes of the partition as hexdump? > You can get them for example like this: >=20 > hd /dev/md1 | head -n 40 00000000 4c 55 4b 53 ba be 00 01 61 65 73 00 00 00 00 00 |LUKS=BA=BE..ae= s.....| 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-es= si| 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=EE=D5=DAFuE= :&=B7h=EE:Le| 00000080 ce 97 79 5f 5e 5c 96 00 a3 e1 11 f2 83 74 e9 a6 |=CE.y_^\..=A3= =E1.=F2.t=E9=A6| 00000090 97 d1 fe 67 0b 30 0e f0 24 cb 7c 27 4e d1 57 a8 |.=D1=FEg.0.=F0= $=CB|'N=D1W=A8| 000000a0 3e bc 9a d4 00 00 a6 81 32 39 63 61 32 63 31 32 |>=BC.=D4..=A6.= 29ca2c12| 000000b0 2d 64 64 32 62 2d 34 33 61 66 2d 61 33 33 30 2d |-dd2b-43af-a33= 0-| 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 |.=ACq=F3...-= =E3.|=E6=F6=A2.=AD| 000000e0 53 72 23 25 82 22 80 8d af 3b ea c8 0d 85 7a 18 |Sr#%."..=AF;= =EA=C8..z.| 000000f0 5e 59 b0 92 b6 ca 5d e6 00 00 00 08 00 00 0f a0 |^Y=B0.=B6=CA]= =E6.......=A0| 00000100 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=A0| 00000130 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=A0| 00000160 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=A0| 00000190 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=A0| 000001c0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=A0| 000001f0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=A0| 00000220 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |..=DE=AD......= ......| 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 |..............= .=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=EB.U=AC..= =B1_W31.| Thanks,