You are not logged in.

#1 2012-09-07 23:03:49

marcos
Member
Registered: 2007-05-29
Posts: 21

["solved"] cryptsetup fails to unlock passphrase

Hi,

I'm having trouble opening my encrypted partition with

cryptsetup luksOpen /dev/sda2 vgroup

I get a

No key available for this passphrase

.

I'm pretty sure that the keymap is OK. Tried to open the luks partition from a live USB with the same result.

The luks header seems OK after a successful run of

cryptsetup -v isLuks /dev/sda2
Command successful.

.

Also, I booted once successfuly after the last upgrade, but now I'm unable to boot.

Any help is really appreciated, I'm stuck with it and have no clue on how to continue.

Thanks!

Last edited by marcos (2012-09-10 07:37:05)

Offline

#2 2012-09-07 23:30:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,135
Website

Re: ["solved"] cryptsetup fails to unlock passphrase

Have you checked the keyboard to make sure that one of the keys is not malfunctioning?

I have a keyboard where the k only works if you really hammer it and ocassionally I get this error when logging in...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-09-07 23:35:48

marcos
Member
Registered: 2007-05-29
Posts: 21

Re: ["solved"] cryptsetup fails to unlock passphrase

I'm absolutelly sure that I've entered the correct passphrase.

Offline

#4 2012-09-07 23:40:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,135
Website

Re: ["solved"] cryptsetup fails to unlock passphrase

marcos wrote:

I'm absolutelly sure that I've entered the correct passphrase.

Yes, but that doesn't answer my question: have you checked the keyboard is sending the correct sequence to your TTY?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-09-07 23:52:44

marcos
Member
Registered: 2007-05-29
Posts: 21

Re: ["solved"] cryptsetup fails to unlock passphrase

I have entered it in several ways:

* as if my keyboard was an US one,
* with my current layout,
* from a live usb copying and pasting the correct passphrase that I'm reading from the screen

So yes, I'm pretty sure the passphrase prompt is getting what I want, which is the good passphrase smile

Offline

#6 2012-09-08 10:48:02

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,357

Re: ["solved"] cryptsetup fails to unlock passphrase

Double-check CAPS, num-lock keys. If you use Grub you can also go to the editor to check by typing the passphrase in the system before booting. This for the case something happened to the grub.cfg. In the live-usb you use, check "aes_i586" is loaded also. Also don't copy&paste it there, just re-type it after the clear text showed its good.

Offline

#7 2012-09-10 07:36:21

marcos
Member
Registered: 2007-05-29
Posts: 21

Re: ["solved"] cryptsetup fails to unlock passphrase

Just an update on this.

The problem seems to come from a liveusb that detected my partition as a swap one someway and used the space of my keyslots to store there stuff.

You can read the whole thread at http://www.saout.de/pipermail/dm-crypt/ … 02724.html

Offline

#8 2012-09-13 18:17:18

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,357

Re: ["solved"] cryptsetup fails to unlock passphrase

Thanks for the update. Sorry to read though of course the recover did not work out even with the most expert help. For others reading: The Arch wiki also has a section on backing up the header in case it gets damaged erroneously.

Last edited by Strike0 (2012-09-13 19:49:29)

Offline

#9 2013-01-03 11:35:53

gauthma
Member
Registered: 2010-02-16
Posts: 209
Website

Re: ["solved"] cryptsetup fails to unlock passphrase

Just a quick reply: I've had a similar issue, and it was because the last time the initramfs was generated, it complained about not knowing the keyboard layout, but I missed that warning. Fixing /etc/locale.conf and re-generating the initramfs (and rebooting) solved the issue.

Offline

Board footer

Powered by FluxBB