After doing an update and reboot today, I got the following error after entering the disk decryption password:
ERROR: device 'UUID=0aa78..." not found. Skipping fsck.
mount: /new_root: can't find UUID=0aa78...
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
Also noticed the manjaro boot menu is not graphical like it was before, but text only.
I tried the steps here: wiki.manjaro org/index.php/GRUB/Restore_the_GRUB_Bootloader
but after “grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck” I get
“grub-install: error: failed to get canonical path of `/dev/nvme0n1p1’.”
Edit your post - instead of quotes, use preformatted text, ie. </>
When dropped in emergency shell, try:
mount /dev/mapper/luks-36f2b38a-6588-487f-9719-6fc8177937f3 /new_root
exit
Does that boot your system? If not, what is the error?
EDIT: Disregard above.
Just for anyone else; we were troubleshooting this on irc, but it’s hard to pull complete errors and info out of him.
[…]
<zbe> Show ‘cat /etc/default/grub’
<void09> https://termbin.com/2kf1
<void09> looks wrecked
<void09> there was a long line there with the cryptsetup
<zbe> Why don’t i see it then
<void09> cause it’s not there
<void09> something happened, sometime
[…]
There is no /dev/mapper/luks-36f… in the emergency shell, but doing cryptsetup /dev/nvme0n1p2 whatever and then mount /dev/mapper/whatever /new_root, then exit, got me back in my system.
But after mounting the new_root and typing exit, i can see
“failed to start Cryptography setup for luks-36…”
and
“Dependency failed for local encrypted volumes”
errors before plasma starts.
It’s fully updated, and I have tried like 4 kernels. I do not need to chroot now that I can get in my own system, with manual cryptsetup and mount /new_root
This is /etc/default/grub: termbin. com/2kf1
@zbe stop being an asshat, you say it’s hard to get complete info from me, then proceed to show the exact opposite, me providing exactly what you asked. You then ask why is not the crypsetup line there, but then if I knew, like I’m supposed to know what happened. I wouldn’t be here if I knew.
I appreciate your help attempts, but saying it’s hard to get info out of me is untrue, I provided the results of every command you asked for. Not sure why you keep repeating that, and why you had to mention it yet again here, potentially disincetivizing others to help (otherwise I wouldn’t really care).
As I said, there is no need to chroot as I can access the system normally.
Please tell me exactly what reinstalling grub in efi mode would be. pacman -S grub?
same for 2 and 3.
I already installed/reinstalled kernels, and ran sudo update-grub, it didn’t fix it.
Not the package. The actual installation of the Grub bootloader using grub-install
You might be able to get away with simply issuing grub-install without any parameters or options, as long as your mounts are available (/boot/ is accessible, and you have your EFI system partition mounted) and everything is autodetected properly.
To rebuild the initramfs, you use the mkinitcpio command with the -P parameter to use all existing kernel presets, so basically mkinitcpio -P
To update the grub config, it’s simply a matter of issuing update-grub without any parameters.
EDIT: While you’re at it, the following contents can help:
I ran all the commands suggested, no fix. I believe /etc/default/grub is not updated properly, as I think it contained a kernel paramter for luks, which is now missing (as well as the other stuff that was there).
Make sure to run update-grub once again for the changes to take effect.
Just a heads up, when this type of thing happens I seriously consider a fresh installation of the operating system, since there’s no telling what else is missing / broken.
Did the update back in early July complete successfully? There’s no reason it would randomly reset your boot/grub configurations.