You are not logged in.

#1 2012-11-22 14:54:18

harriman
Member
Registered: 2012-11-22
Posts: 7

[SOLVED] cryptsetup luksOpen /dev/sda2 not working

Hi,

I've been running arch for a while now; I have 2 HDDs (one of which contains my /, which is encrypted) and want to repartition them. The problem is that I am unable to unlock my crypted filesystem. I can boot the system, so the password is accepted at boot. But as soon as I try opening it via a OS that runs from a live disk it isn't. I have tried different keyboard layouts (I'm from Germany so that might be an issue, though I'm convinced I used the US keymap to encrypt the partition.) I tried all sort of US keymaps and also all sort of German ones. Then I thought, that there might be a character in the password that causes some sort of trouble, so I decided to add an additional password via my regular arch. But when I try sudo cryptsetup luksAddKey /dev/sda2 and enter the password it also says that the password is wrong. Of course I tried all different keyboard layouts, again with no success.
Does anybody have an idea what the problem could be?

Thanks in advance.

harriman

Last edited by harriman (2012-11-23 16:35:10)

Offline

#2 2012-11-22 22:35:12

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: [SOLVED] cryptsetup luksOpen /dev/sda2 not working

Have you tried toggling numlock?

Offline

#3 2012-11-23 12:35:10

harriman
Member
Registered: 2012-11-22
Posts: 7

Re: [SOLVED] cryptsetup luksOpen /dev/sda2 not working

Not before you mentioned it, as there is no character I enter with the numpad. I still tried, no success either.
Any other ideas?

harriman

Offline

#4 2012-11-23 13:18:58

aesiris
Member
Registered: 2012-02-25
Posts: 97

Re: [SOLVED] cryptsetup luksOpen /dev/sda2 not working

I notice that  you are running "sudo cryptsetup ...".
Are you sure that it is failing on the cryptsetup password and not on sudo?

If this is not the problem:
boot with the "break" boot option, this will drop to a shell in the initramfs.
From there you will have the same environment which opens your LUKS volume at boot: run cryptsetup luksAddKey from there

Offline

#5 2012-11-23 13:43:00

harriman
Member
Registered: 2012-11-22
Posts: 7

Re: [SOLVED] cryptsetup luksOpen /dev/sda2 not working

Your second suggestion worked great! Thanks a lot!

harriman

Offline

#6 2012-11-23 15:36:19

aesiris
Member
Registered: 2012-02-25
Posts: 97

Re: [SOLVED] cryptsetup luksOpen /dev/sda2 not working

Good!
For the future it is better if you understand which was the right keymap.
Try again from the initramfs and see what it writes when you type your old password.

And don't forget to mark this thread as [SOLVED]

Offline

Board footer

Powered by FluxBB