Hi!
First of all sorry if this something that has been asked countless times, it is most probably related and already solved in some way somewhere, but i could not figure it out so please bear with me.
Short intro: I installed a new system lately, basically following the EOS installer. Then I messed up something with the partitions by resizing/moving them around. Also, it’s not critical for me to get this back up running, but i would kind of like to understand what went wrong or how i would fix it (in case i do have similar smart ideas on a more important system in the future).
So what I did:
Installed EndeavourOS and ticked “add fallback lts kernel”, because i thought it can’t hurt?
Slighlty later i wanted to install toolbox , which complained with about “no space left” on the efi partition. Okay i was wondering why that’s the case in the first place but also thought: “whatever, it’s a new system, how hard can it be”. So I:
- Shrunk my main partition (it was [efi, main, swap] on a 1TB disk)
- Moved my main partition 1GB forward, so there is space between efi and main
- Backed up efi content
- Deleted efi partition
- Re-created efi partition as fat32 with 2GB and restored content
- Edited fstab to fix the UUID of the now changed efi partition, the main partition UUID seemed fine.
Now that did not work, after trying to boot into the main system i am stuck in grub.
After this i tried following this guide, which already once fixed grub boot issues for me.
So I mounted the btrfs subvolumes, mount /efi, arch-chroot /mnt, make-grub, grub-mkconfig -o /boot/grub/grub.cfg. okay seemed fine, but still does not work.
Then i read about dracult and tried sudo reinstall-kernels and sudo dracut-rebuild buuuut still does not work.
So…what else would i do to fix this? I found entries in efibootmgr pointing to old entries and removed them, now i just have the EndeavourOs one left which i just created and a few others i am not sure about and thus not touch.
Thanks for all the great guides in this forum, if there is one that fits for my issue and i missed it, please just point me to it!
Edit:
Summary for the solution:
It seems like i created a mixup with systemd-boot and grub.
Installing latest kernels, followed by grub-makeconfig made the system boot again.
Essentially mount the partitions and chroot (as in the guide ) and then:
pacman -S linux linux-lts linux-headers linux-lts-headers
grub-mkconfig -o /boot/grub/grub.cfg