I was forced to install Windows on my laptop. I installed it on different SSD but somehow EFI partition on my Linux SSD. efibootmgr didn’t list Linux anymore. only windows and few USB devices.
Thing is I installed CachyOS with particular type of instalation in mind. I mostly clicked Next, Next and Finish. Now I want to get this system to boot and I don’t even know where to start.
I’ve tried booting in LiveCD and “fix it”. Here are the steps and “forensics” I’ve tried and I don’t even know how system works and even if EFI was installed.
mount -o subvol=@ /dev/nvme0p2 /mnt
mount /dev/nvm0p1 /mnt/boot
Then I’ve tried reinstalling GRUB
grub-install --target=x86_64-efi --efi-directory=/mnt/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
But output doesn’t even find Linux OS only UEFI Firmware. If I add os-prober it finds only Windows EFI and UEFI.
If I check /mnt/boot now there is only EFI and two other directories. No sign of vmlinuz etc.
If I check unmounted Boot of @ subvolume there are bunch of kernels in there so it must be something I’m missing or mounting EFI partition to a wrong place. Cause after tinkering and googling I’m not even sure if Cachy was installed with EFI
Can you help me make sense or how to restart boot stuff from scratch so I can boot into CachyOS and Windows.
Thanks for the help.