Everything was working fine for a long time (since May 2022 IIRC).
And now the problem
For an unknown reason (yet), when I am prompted for the encrypting key passphrase during boot by grub, it fails very often and eventually will work.
I may have made a typo once, but you can ensure that the following try, I type carefully
The error displayed by grub before entering in grub_rescue is something like: “Decryption failed, device ******* not found”
It is really annoying because,
sometimes (very few) it works as expected from the 1st time
sometimes I have to try a dozen of times before it “will” boot properly.
I am a complete newbie regarding disk encryption with Luks, so if someone would have the gentleness to lead me through documentation or troubleshooting things I should be doing, it will be very appreciated
It would be good to have more complete error message.
As of now, this could mean what it seems to say:
the device that is to be available for decryption is not available at the moment when the system tries to access it.
That in turn could mean that it is, for some reason, slow to respond.
Which in turn could mean that the disk is faulty, beginning to fail.
All that is pretty much speculation.
Check your system logs for signs of read/write errors, check the “health” of your disk (smartctl).
… or it is simply a loose connection … something that can not only be triggered by mechanical forces, but also by temperature changes …
Enter passphrase for hd0, gpt5 (fea4441871dd42fb8a1b76a1b3743bc7): Attempting to decrypt master key... error: access denied.
error: disk 'cryptouuid/fea4441871dd42fb8a1b76a1b3743bc7' not found. Entering rescue mode...
grub rescue>
System info
In the mean time, here are others information regarding my system, if any body else faced the same issue with the same hardware
I may be totally off here, but this name, the name of the disk that is to be decrypted and can’t be accessed,
seems … wierd to me.
To further analyze this
can you post the output of: grep -E 'GRUB_CMDLINE' /etc/default/grub
(this will filter the contents of the pretty long file and only show the few lines relevant here)
also, the output of: lsblk -f
as well as the contents of your /etc/fstab cat /etc/fstab
could shed more light on the matter
rather complete System info is obtained by: inxi -Faz
which will be largely redundant after the above commands, but could still be useful