From: Arno Wagner <arno@wagner.name>
To: dm-crypt <dm-crypt@saout.de>
Subject: Re: [dm-crypt] /dev/md1 is not a valid LUKS device
Date: Wed, 6 Jul 2011 11:44:59 +0200 [thread overview]
Message-ID: <20110706094459.GA31057@tansi.org> (raw)
In-Reply-To: <20110706085309.GA28448@apartia.fr>
At least th eheader was not just overwritten and looks intact.
I have no idea why you get this error message.
Arno
On Wed, Jul 06, 2011 at 10:53:09AM +0200, Louis-David Mitterrand wrote:
> Hi Arno,
>
> I am resending this answer to the list, as I am not sure you got it.
> From the hexdump can you just tell me whether it is likely or not that I
> can recover my partition?
>
> Thanks,
>
> 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@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,
>
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
next prev parent reply other threads:[~2011-07-06 9:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 15:45 [dm-crypt] /dev/md1 is not a valid LUKS device Louis-David Mitterrand
2011-07-04 21:10 ` Arno Wagner
2011-07-04 21:15 ` Louis-David Mitterrand
[not found] ` <20110706085309.GA28448@apartia.fr>
2011-07-06 9:44 ` Arno Wagner [this message]
2011-07-06 10:22 ` Arno Wagner
2011-07-06 11:03 ` Roscoe
2011-07-06 11:06 ` Roscoe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110706094459.GA31057@tansi.org \
--to=arno@wagner.name \
--cc=dm-crypt@saout.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox