Hello again kind people,
First of all, sorry in advance for wrong terminology, I am after all still a Linux newbie. As suggested by @Gamall in Steam games will suddenly not launch - #7 by Gamall (and thank you again!), I slightly hesitated to create a new topic
Sorry for wall of text once again, you will find a tl;dr: at the bottom.
I learned that I dual booted despite using different hard drives, I am now almost positive Windows deleted my boot partition on my EOS-install after simply adding an old HDD containing an old Windows installation (!) Naturally, that happened. Thanks, Windows. You git. Please refer to the old post regarding how and what not. I would like to state I am now in the process of backup’ing Windows-drives to reformat and -partition. However, I would still like to own Windows one last time so I am trying to rescue the bootloader/boot partition while keeping the Windows partitions. And then nuke it from Linux within.
Thanks to the community, it seems it should not be difficult to get the boot partition up and running again - but I do face a few issues. Thus, I kindly ask for help again.
I will write “in brief” what I have done, please let me know if you want outputs or commands.
Prelude
- I managed to Arch-chroot as per this fine article
- I then tried to repair GRUB
This is where my n00bshow shows, but I did not have any grub commands available:
[liveuser@eos-2025.03.19 ~]$ sudo mount /dev/sda2 /mnt
[liveuser@eos-2025.03.19 ~]$ sudo mount /dev/sda1 /mnt/efi
[liveuser@eos-2025.03.19 ~]$ arch-chroot /mnt
[root@EndeavourOS /]# grub-install
bash: grub-install: command not found
This is because I have a systemd install, right? I managed to find a topic which I followed. Basically bootctl install instead of grub-install if I understand correctly.
[root@EndeavourOS /]# bootctl install
Running in a chroot, enabling --graceful.
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
⚠ Mount point '/efi' which backs the random seed file is world accessible, which is a security hole! ⚠
⚠ Random seed file '/efi/loader/random-seed' is world accessible, which is a security hole! ⚠
Random seed file /efi/loader/random-seed successfully refreshed (32 bytes).
Not booted with EFI or running in a container, skipping EFI variable modifications.
Still, no cigar. As also mentioned here, another try was to reinstall-kernels. Basically, it ends up with this after a while:
dracut[I]: *** Hardlinking files done ***
cp: error writing '/efi/8e5afcf6eb4b49da9aa9b2dcd3c2a002/6.17.7-arch1-1/initrd-fallback.tmp': No space left on device
dracut[F]: Creation of /efi/8e5afcf6eb4b49da9aa9b2dcd3c2a002/6.17.7-arch1-1/initrd-fallback.tmp failed
/usr/lib/kernel/install.d/50-dracut-fallback.install failed with exit status 1.
Here I am not sure at all what happens, because I would expect it tries to write on my already-existing partition which should have enough space?
Anyways, I also came across this post where it is discussed whether or not OP booted in UEFI mode or not. As you might have noted, I already got “Not booted with EFI”. This reply instructs to disable any legacy/CSM in BIOS.
Now to my predicament and current issue(s)
So, in my BIOS I do have CSM enabled. I cannot recall why I enabled it in the first place - perhaps to detect USB when first installing Linux?! Anyhow, I would like to disable CSM and ensure it is a UEFI boot because I suspect it will solve some of the above mentioned erros?
HOWEVER, right now I am in this weird state where I cannot boot to BIOS from turned off state.
Right now, if I turn on my PC it boots Windows (BOO!) just fine.
If I F2/DEL to enter BIOS before Windows is booting, nothing happens. Refer to my hardware, I have Asrock Extreme4 B550 with a handy postcode display showing “A9” whatever that means (a lot of results, most seem to involve SATA somehow - did not dig into that).
Furthermore, I cannot F11 to get a boot menu. So right now, to boot from EOS Live USB I am entering BIOS to change boot order.
Only way to access my BIOS right now and change boot order is to boot Windows and from there Troubleshoot > Advanced options > UEFI Firmware Settings > Reboot.
I am afraid to change that UEFI mode to CSM because I frankly do not know what happens - will Windows still boot just fine which is my only way to enter BIOS currently? I am afraid I end up somehow not being able to boot from Live USB at all to chroot.
tl;dr:
- Windows (most likely) deleted boot partition.
- I am trying to reinstall systemd, it does not quite work (perhaps due to not being in EFI mode (?) - although it worked before all this mess).
- Would like to disable CSM, but I am afraid it will somehow mess up Windows boot since it is currently my ONLY way to enter BIOS where I can select to boot from USB
- halp
THANK you again in advance for any help, it is much appreciated. Sorry for n00bshow in advance. Have a great day!