Upgrade to Trisquel 12, error unlocking LUKS-encrpyted hard disk, password and passphrase fail

4 respuestas [Último envío]
sengcan
Desconectado/a
se unió: 12/23/2013

Hello:

Just upgraded to Trisquel 12 from within Trisquel 11 on a LUKS-encrypted hard disk.

After rebotting the system, I start a session with my old user password with no problem.

Next, being asked for the LUKS-encrypted unit password, I get a wrong password warning each time I try it.

--

I reboot the system via a live-USB.

Then I try to access the LUKS-encrypted disk from the file manager.

I enter the passphrase, but get the warning:

"Unable to mount 748 GB encryted. Error unlocking /dev/sda4. Failed to activate device: Incorrect passphrase".

I try again a few times to no avail.

I try the next command via terminal: sudo cryptsetup luksOpen /dev/sda4 decrypted_name

I get the same "Incorrect passphrase" warning.

--

Any help would be much appreciated. Thank you very much in advance.

eric23
Desconectado/a
se unió: 06/30/2017

I've noticed that some keymaps can require pressing space after a special character like '^' and '~' to complete the character. This is the case for English International keymap. I doubt this is the case for you since you even tried to do this in the Live USB which probably has the default keymap.

sengcan
Desconectado/a
se unió: 12/23/2013

No success so far. Thank you for your tip anyway.

On second thought, though, maybe I described the access steps wrongly. I thus correct myself:

When I restart the system after having upgraded, the first thing that appears is a password field with a padlock icon. (I suppose this is the step for unlocking the LUKS-encrypted hard drive).

I enter the password. Some glitch screen but it seems to pass.

Next appears the session login field with the Trisquel icon and my username.

I enter the password (which happens to be the same as the previous one).

A warning message reads: Wrong password, try again.

Everything else as for trying to access the LUKS-encrypted hard drive via a live-USB is as described in my first post.

This time, what fails is the attempt to unlock the LUKS-encrypted hard drive by means of the passphrase.

I have checked up the keyboard language settings, etc. Everything seems to be OK. Don't know what's going on.

IN SUMMARY:

How is it possible that, on the one hand, I can apparently get access to the LUKS-encrypted hard drive (but can't start session) and then, on the other hand, I cannot get access to the LUKS-encrypted hard drive via a live-USB session?

Any other suggestion? Thanks.

Avron

I am a translator!

Desconectado/a
se unió: 08/18/2020

When you boot from your system, the first input box with padlock icon is indeed to access the LUKS-encrypted volume, so what fails is the password for your session, while the password for LUKS decryption worked. I suggest that, after you have entered the password for the LUKS-encrypted volume, instead of trying to open a graphical session, you go into a console (Ctrl+Alt+F1) and from there, instead of your username, you type the password (but not enter) so that you can see what is typed exactly, to see whether there is any issue of the keyboard layout not being what you expect.

If that is what you expect, erase the password, type your user name and enter, then your password and enter, and tell us if you can log in that way.

sengcan
Desconectado/a
se unió: 12/23/2013

Thank you very much, Avron.

Followed your indications and finally was able to log into the console that way!

Upon accessing the GUI via the "startx" command, a warning message like this appeared:

> Your configured input method xkb:es:mac:spa does not exist within the ibus input methods, so the "US" distribution was configured instead of your input method. Run the `ibus-setup` command to open the "Input Method" tab and configure your input method again.

So, as you correctly guessed, it was a keyboard layout issue on the login screen.

So I first run the `ibus-setup` from the System > Preferences > Other > IBus Preferences menu, and set up the Input Method as "Español - Español". I also deleted the English one.

Then via the System > Preferences > Hardware > Keyboard menu, I set up the keyboard distribution as "Español" and the keyboard model as "MacBook/MacBook Pro". I also deleted the English keyboard.

After restarting the system, I still was unable to log into the GUI because tha login keyboard layout was still "US". (The language info at the top panel bar read "es-es" though!)

I made sure to type the correct keys on the US keyboard and accessed the GUI that way, where the keyboard layout is now "Spanish".

I opened the /etc/default/keyboard file and checked the XKB variables, whose values are indeed:

XKBMODEL="macbook79"
XKBLAYOUT="es"
XKBVARIANT="mac"
XKBOPTIONS=""

Then I tried to change the login keyboard layout via terminal with the next command:

sudo dpkg-reconfigure keyboard-configuration

I follow the on-screen prompts to select the keyboard layout, model, and other settings.

I restarted the system for changes to take effect at login.

Unfortunately, the login keyboard layout still is "US" although the language info at the top panel bar reads "es-es".

I don't know if I'm doing something wrong or if it might be a bug, but so far so good. Just have to recall the login keyboard layout is "US", and then type the correct keys. Actually only one differs from the Spanish keyboard layout.

Very happy I have regained access both to the LUKS-encrypted volume and Trisquel OS 12.

Thanks a lot!