My system:
Mainboard: ASrock B850M Pro-A
CPU: Ryzen 5 7600X (with iGPU)
RAM: DDR5 32 GB
no overclocking
AMI-BIOS, latest
Virtualization in BIOS: active and locked
OS: Linux 6.12.39-1-MANJARO (x86_64) on BTRFS
BTRFS parameters: defaults,noatime,space_cache=v2,compress=zstd:6 0 0
Yesterday I had finished some experiments with KVM/Qemu and then wanted to go back to VirtualBox. I could deinstall the KMV/Quemu components by Pamac. But there were so many packages, that I thought, it would be better, to use a Timeshift snapshot, to get the system back with VirtualBox already installed.
First I tried to recover by Grub, pressing Esc at boot time and then selecting the right snapshot. But strange, it did not boot into the snapshot. Instead I get the message:
ERROR: Failed to mount 'UUID=d89e1484-027......' on real root
You are now being dropped nto an emergency shell.
sh: can't access tty: job control turned off
[rootfs ~]#
I remembered, that I could do the recovery of snapshots within Timeshift itself. I rebooted successfully started Timeshift and did select the snapshot and pressed “proceed…”.
After a short while, I got the success message and I thought, I should reboot now so that the recovery would be finished.
But then I got:
ERROR: Symbol >grub_is_shim_lock_enabled< not found.
Press any key to proceed...
After some seconds, an additional message appeared:
The main definition as well as the alternative definitions could not be booted. (translated from German)
Press any key to proceed...
After waiting several seconds, the Grub bootloader menu appeared so that I could also choose snapshots again. But each try, to boot from such a snapshot will lead to the message above:
ERROR: Symbol >grub_is_shim_lock_enabled< not found.
Press any key to proceed...
After doing intensive web search, I have found this source:
https://bbs.archlinux.org/viewtopic.php?pid=2157953#p2157953
When I check the not starting system by a live-stick, and do su efibootmgr,
I get two different ways to boot the system: One is EFI/BOOT/BOOTX64.EFI and the other is EFI/BOOT/Manjaro/grubx64.efi (or similar)
In the BIOS, both can be chosen as if it were two different Manjaro installations on the same drive. This is similar to that, what is discussed in the forum above.
It seems, that this could be a solution for my case too. But I don’t understand the single steps, I have to go. Their solution is, to completely clean the bootloader and efi and after that reinstall Grub again. But how to reinstall Grub on a system, which cannot be started up???
Further I don’t understand the single steps, for example, how I can get access to the different directories and partitions and what to do there in detail step by step.
I also have a solution in my mind:
As I am on a BTRFS system, I have several Timeshift snapshots available. At least the latest could be the source to get my system up and running again. As the snapshots do contain /boot/efi/ and grub configurations, it should be possible to gain the necessary files from there and insert them into the actual not booting system.
But I cannot do this because of lack of knowledge, which files should be copied and how get I access to these files and how get I access to the right locations in the not booting system.
What I could do myself, is done. Any help welcome!