You are not logged in.

#1 2022-11-20 11:36:04

cx
Member
Registered: 2019-08-17
Posts: 107

Grub can't find LUKS partition any more

And yet the next shit happened....

Booting my fde starts fine as usually:

Starting systemd-udevd version 252.1-1.1-arch
...

until at some point the encrypted partition is said not being found and I get dropped into emergency shell... wtf..?

Now I wanted to try to edit the command line with a root delay like so:
https://bbs.archlinux.org/viewtopic.php … 7#p1369607

So when do I have press "e" – before or after entering the password?
But either way I cannot get into it!
And I do not have a boot menu displayed, Grub is booting directly after password input.


Idk
yet I don't think this is caused by the former "libunistring" issue.
Rather maybe after resolving the latter and updating the system, I simply forgot to update grub.

What do you guys think?

Last edited by cx (2022-11-20 12:27:58)

Offline

#2 2022-11-20 23:24:09

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: Grub can't find LUKS partition any more

I assume the e is meant as an input to grub's menu, which should come well before any password to unlock partitions, but as you say you've disabled that menu screen.  I don't know what runes you need to input to make that menu screen appear again,.

I've also never succeeded in doing anything useful in an emergency prompt, for me that's the hint to boot an install iso and fix usually just my fstab there.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2022-11-21 09:42:54

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,033
Website

Re: Grub can't find LUKS partition any more

The emergency shell comes from the initram disk, so whatever hardware or software you want to use in there you have to put into /etc/mkinitcpio.conf.
Usually this means things like the keyboard module are not added there per default, so you don't have a keyboard in the emergency shell. I found that you have
to fine tune mkinitcpio after installation, add keyboard, pata_ide modules and a pacman-static and test the emergency shell before the first emergency happens.. :-)

Offline

#4 2022-11-21 11:21:25

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,033
Website

Re: Grub can't find LUKS partition any more

ldd /usr/bin/cryptsetup
        linux-gate.so.1 (0xf7fab000)
        libcryptsetup.so.12 => /usr/lib/libcryptsetup.so.12 (0xf7ed4000)
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0xf7ec5000)
        libuuid.so.1 => /usr/lib/libuuid.so.1 (0xf7ebd000)
        libblkid.so.1 => /usr/lib/libblkid.so.1 (0xf7e81000)
        libc.so.6 => /usr/lib/libc.so.6 (0xf7c87000)
        libdevmapper.so.1.02 => /usr/lib/libdevmapper.so.1.02 (0xf7c1d000)
        libcrypto.so.1.1 => not found
        libargon2.so.1 => /usr/lib/libargon2.so.1 (0xf7c0f000)
        libjson-c.so.5 => /usr/lib/libjson-c.so.5 (0xf7bfc000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0xf7bf5000)
        /lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xf7fad000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0xf7bf0000)
        libudev.so.1 => /usr/lib/libudev.so.1 (0xf7bbf000)
        libm.so.6 => /usr/lib/libm.so.6 (0xf7aea000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xf7ac5000)

Could be cryptsetup still linked against OpenSSL 1.1, I pushed the new version now to stable..

Offline

#5 2022-11-21 13:54:07

cx
Member
Registered: 2019-08-17
Posts: 107

Re: Grub can't find LUKS partition any more

Well yeah, by "disabling grub menu" I rather mean there is a countdown of 0 seconds, bec. usually I have no use for it. – I just remember it's possible to press "e" or "shift" or something to get into it and try something with the command line.

Anyway, I can't boot from USB, and CD Rom is broken. The only way for accessing the disk at all then would be to plug it to my PC. – But I can't find that damn external disk case with IDE connector. grr~

Offline

#6 2022-11-21 14:37:42

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,033
Website

Re: Grub can't find LUKS partition any more

I'm really sorry for all that trouble, but the openssl move really caught me between my holidays and the VCF Zurich..

Offline

#7 2022-11-21 14:45:10

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,033
Website

Re: Grub can't find LUKS partition any more

Ah, and the openssl-1.1 package only helps for a booted system. I don't think it gets added to initial ramdisk per default (and I doubt you
can specify it to be added anywhere, maybe if added to BINARIES the libssl.so.1.1 and libcrypt.so.1.1 get sucked into the ramdisk too)..

Offline

#8 2022-11-21 20:00:39

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: Grub can't find LUKS partition any more

I don't know how it works at that level, but I have an encypted home partition on my bedroom server that runs Arch64.  I can investigate that if needed tonight.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

Board footer

Powered by FluxBB