You are not logged in.
My system is suddenly not booting and I am not sure why this has happened or how to fix it.
I expect it to do cryptsetup on /dev/sda2 to open cryptroot. Instead, grub tries to boot into /dev/mapper/cryptroot directly. The UUID in the error is the UUID of /dev/mapper/cryptroot, not the UUID of /dev/sda2.
I have reinstalled grub:
mount /dev/sda1 /boot/efi grub-mkconfig -o /boot/grub/grub.cfgblkid*Get UUID of cryptroot*
vim /etc/default/grub*Add cryptdevice=UUID=[UUID of /dev/sda2]:cryptroot root=/dev/mapper/cryptroot to the GRUB_CMDLINE_LINUX line
grub-install /boot/efi Reboot. Grub error: No such device. UUID of /dev/sda2.
Why does it keep trying to boot the wrong device and how can I fix it?
Appreciate any guidance
Edit 1: I was having a different error before the grub thing, but I don't remember what I did to try to redress it. If it helps, it was
"failed to start load kernel modules"
"Failed to mount mount unit for [thing]
Failed to mount mount unit for [other thing]
Failed to mount mount unit for..."
Etc.
It started after I activated AMD virtualization in my bios.
Edit 2: I looked in the /boot/grub/grub.cfg and took a picture, seems correct to me. Here is the picture. the root UUID is the UUID in the grub rescue error.
I also did a grub-mkconfig to /boot/efi to see if maybe it was because it needed a config file in the boot partition, but that didn't work either.
SOLUTION: the solution was to uncomment the os-prober line in /etc/default/grub, then run grub-mkconfig -o /boot/grub/grub.cfg, then grub-install /boot
But now I have other problems for another post I think.
Last edited by pasturegliding (2022-04-24 05:55:08)
Offline
Did this work after installation?
I have installed grub to efi partition (I think it is mandatory when using LUKS or EFI is present)
I also change hooks in mkinitcpio as it is written here https://wiki.archlinux.org/title/Dm-cry … mkinitcpio
about bootloader it is here https://wiki.archlinux.org/title/Dm-cry … oot_loader
So my bootloader is here
boot/grub/grub.cfgI do not know if it is correct as I have it however it works
Last edited by VoDo (2022-04-23 15:28:39)
Archi3
Offline
Yeah, it worked without issue for months.
It just stopped with that kernel issue in my first edit
I have put it in /boot/efi now and it didn't work. I wonder if I should delete the other grub.cfg
Last edited by pasturegliding (2022-04-23 16:29:03)
Offline
What is the error you're getting, exactly? I'm still not clear if the error is coming from grub or from the initramfs.
Offline
What is the error you're getting, exactly? I'm still not clear if the error is coming from grub or from the initramfs.
This is the entire error:
Welcome to GRUB!
error: no such device: 1ffa06fe-3540-4806-9303-57f428edf107.
error: unknown filesystem.
Entering rescue mode...
grub rescue>
Last edited by pasturegliding (2022-04-24 00:59:51)
Offline
So you're not getting to the initramfs at all. Everything with GRUB_CMDLINE_LINUX and mkinitcpio hooks is irrelevant.
The section of the wiki you need to pay attention to is https://wiki.archlinux.org/title/GRUB#Encrypted_/boot . Make sure you have things set up in GRUB according to that.
Offline
So you're not getting to the initramfs at all. Everything with GRUB_CMDLINE_LINUX and mkinitcpio hooks is irrelevant.
The section of the wiki you need to pay attention to is https://wiki.archlinux.org/title/GRUB#Encrypted_/boot . Make sure you have things set up in GRUB according to that.
I have a new problem now. What solved it was that I had to uncomment the os-prober line (which grub warned me about at install but I didn't heed it lol).
The new problem is that, after putting in my password, it says
/dev/mapper/cryptroot: clean, 1494562/61038592 files, 175673749/244135089 blocks
_This is what it usually says, but now it's not loading. The screen is just vaguely flashing, and arch never boots.
When I rebooted, it said "recovering journal" first and then froze/started flashing again.
I checked journalctl -b -1 in a live USB by arch-chroot.
There's a lot here. The first thing that looks like an error in the loop causing it to flash is this:
Gdm: GdmDisplay: Session never registered, failingThen things failing because that session never started, then it repeating.
Edit 1: I have deleted gnome and installed KDE (I wanted to try it anyway lol) and now it gets stuck there, but I can go to the other TTYs, it just doesn't boot KDE. This is weird
Edit 2: this is apparently a separate issue (I hope) so I am going to make a different thread on this if I can't find anything in the forum.
Last edited by pasturegliding (2022-04-24 05:56:32)
Offline