DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Help needed please with luks volume
@ 2012-04-01 19:09 Bhasker C V
  2012-04-01 19:34 ` Milan Broz
  0 siblings, 1 reply; 2+ messages in thread
From: Bhasker C V @ 2012-04-01 19:09 UTC (permalink / raw)
  To: DM-CRYPT, debian-user

Hi all

 Sorry for the cross-list posting; I think this will help.

  I have a luks formatted volume and on debian this volume just stopped
working after a  dist-upgrade
 The error reported is as below


$ sudo cryptsetup luksOpen /dev/sdc dsk
LUKS keyslot 6 is invalid.
LUKS keyslot 7 is invalid.
$ cryptsetup --version
cryptsetup 1.4.1
$ uname -a
Linux bcv 3.2.9 #1 SMP Sat Mar 10 20:36:56 GMT 2012 x86_64 GNU/Linux

Whereas when used in an older version (in my office) this disk works
perfectly fine and I am able to view data.
This home system of mine running debian with cryptsetup version as above
has a problem and so I am not able to
take the data out wheras cryptsetup version cryptsetup 1.0.6 (which runs
kernel 2.6.39-rc6 ) works perfectly okay.

I am stuck with not able to see my private data at home.

Can someone help please ? Or is this a bug introduced in the newer
versions ?

thanks

-- 
Bhasker C V

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

* Re: [dm-crypt] Help needed please with luks volume
  2012-04-01 19:09 [dm-crypt] Help needed please with luks volume Bhasker C V
@ 2012-04-01 19:34 ` Milan Broz
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2012-04-01 19:34 UTC (permalink / raw)
  To: Bhasker C V; +Cc: DM-CRYPT, debian-user

On 04/01/2012 09:09 PM, Bhasker C V wrote:
> Hi all
> 
>  Sorry for the cross-list posting; I think this will help.
> 
>   I have a luks formatted volume and on debian this volume just stopped
> working after a  dist-upgrade
>  The error reported is as below
> 
> 
> $ sudo cryptsetup luksOpen /dev/sdc dsk
> LUKS keyslot 6 is invalid.
> LUKS keyslot 7 is invalid.
> $ cryptsetup --version
> cryptsetup 1.4.1
> $ uname -a
> Linux bcv 3.2.9 #1 SMP Sat Mar 10 20:36:56 GMT 2012 x86_64 GNU/Linux
> 
> Whereas when used in an older version (in my office) this disk works
> perfectly fine and I am able to view data.

Hi,

see http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#4._Troubleshooting
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662768#10

I think it is exactly your problem, your LUKS header is corrupted
by written partition table signature - but it can be fixed.

If you want, send me (in private mail) the first 4k of your LUKS
device (IOW the visible part, no keyslot data) and I can fix that.

IOW output of "dd if=/dev/<your luks device> of=bck.img bs=1k count=4

> Can someone help please ? Or is this a bug introduced in the newer
> versions ?

See my comment on the bug - it is additional safety check, using
corrupted header can cause data corruption later.

(If there are more cases, I'll enable repair code by default but it
seems this problem is very rare. It is not bug in cryptsetup, just
previous version ignored unsafe keyslot offsets.)

Milan

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

end of thread, other threads:[~2012-04-01 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-01 19:09 [dm-crypt] Help needed please with luks volume Bhasker C V
2012-04-01 19:34 ` Milan Broz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox