A few days ago I realized that I was no longer able to boot into my endeavouros install. (Let me just append that this occured after I stupidly updated my BIOS after going to Windows for the first time since I installed linux on this computer) The systemd-boot option was not available in my BIOS to change BootOrder. I search it up on google and found some stuff about efibootmgr and I created a new entry which successfully got me to the systemd-boot menu but I only had Windows as an option. I stumbled upon other people with seemingly similar problems namely Âżcorrupt kernel? and someone with the opposite problem.
So far I have tried chroot-ing after mouting my file system partition and trying to figure out which ESP is the correct one. I seem to have two, which I have a vague memory of configuring or if that was the default when I setup endeavour.
sudo fdisk -l result:
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System
/dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
/dev/nvme0n1p3 567296 262115327 261548032 124.7G Microsoft basic data
/dev/nvme0n1p4 996118528 1000214527 4096000 2G Windows recovery environment
/dev/nvme0n1p5 264212480 314544127 50331648 24G Linux swap
/dev/nvme0n1p6 314544128 996118527 681574400 325G Linux filesystem
/dev/nvme0n1p7 262115328 264212479 2097152 1G EFI System
Then ones I am confused about are 1 and 7. I have tried mounting either with 6 and then running bootctl install and then reinstall-kernels to no avail. Something that might be important is that when I run bootctl it gives a warning about random-seed and now when I tried to run bootctl it gave me an input/output error for â/boot/loader/keysâ like the post that I refered to as âÂżcorrupt kernel?â got and when I ls the file I get questionmarks.
Please feel free to ask about anything, I am not very proficient so I apologize if I got any vocabulary wrong or am just misunderstanding parts of the system. Thank you in advance!
Not sure this will help you at all but as far as i know the systemd boot partition is 1G (in this case nvmeon1p7) and the other one is from windows. I guess you followed the wiki about chrooting ?
I see, well I have mostly tried things on the 1G partition because when I try to run reinstall-kernels on the other I get an error saying that there is not enough space on the disk.
I should perhaps also mention, if it points to anything, that my /boot/EFI/Linux/ directory is empty. It was stated in the âopposite problemâ topic I linked to that systemd looks for bootable efi files there
Thank you, I will try that again to make sure but it feels like Iâve done exactly those steps:
Mount fs partition at /mnt and boot partition /mnt/boot
Run bootctl install
Run reinstall-kernels
Restart
However, now when I read arch-chroot it says that I should mount ESP at /efi or /boot/efi and not just /boot so this might be the issue. Give me a minute, thanks!
[root@EndeavourOS /]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=EE28-7B9D /efi vfat fmask=0137,dmask=0027 0 2
UUID=a2ed8b85-6f1d-4f43-90de-a68230a0ce0e swap swap defaults 0 0
UUID=2cdce447-6d2e-4472-baf5-0b092c7a09e9 / ext4 noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
Okay, i see. What would that entail? I did try to create a new one so I guess thatâs why. Do you think this could be fixed by linking a efibootmgr entry to the systemd-boot bootloader that is on nvme partition 1?
It may be corrupted and therefore preventing write operation.
This should also show vfat under FSTYPE. It doesnât.
You can do this. Inside chroot, unmount /efi
Now, in the live session, open the partitionmanager or gparted and run a filesystem check on /dev/nvme0n1p7
Now from your terminal inside chroot: mount /efi and bootctl install
If it doesnât work, I donât know if there is other way to fix it than recreating your whole ESP from ground up. Maybe there are but I donât know of them.