Hi, I’ve been running Fedora workstation on my desktop for a year or two and have been dual booting with Windows 10. They were happily sharing the ESP, which was mounted as /boot/efi on my Fedora system. It’s a 300MB FAT 32 partition.
Today I booted to a live Fedora 36 USB and with
efibootmgr did -b 0005 -B to remove the Windows entry, then I deleted the Windows partition and grew the ext4 one next to it on the same disk. Much success, no data loss on the ext4 partition, except that after this Win10 was still present in the grub menu. (The Fedora ones worked as usual).
Since the mentioned ESP has been around for a while I decided to mount it in a live USB session and “air it out”, that is to say I did
sudo rm -rf microsoft/ at /boot/efi/EFI/ (I’ve done similar things with other Linux system remnants here without much issue) so that there remained a fedora folder and an old Solus folder among others. Then I rebooted and Windows was still present in the grub menu and now the standard Fedora options did not work with an error saying a kernel needed to be loaded. Hm.
Rebooted to the Live fedora USB again and did
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg which added a Fedora entry, it said. Upon reboot the grub menu had three Solus entries, no Windows entry, two Fedora entries (one advanced and one other) and there was a border of ‘?’ around the entire grub menu, so that the menu looked a bit like a NES game. Choosing advanced there were four identical and anonymous Fedora 36 entries and I’m now booted into one of them, the second one. (The first one yields the same result as the other Fedora entry in the main grub menu, the system doesn’t boot properly and ends up asking for a root password, if one continues it fails to find /boot/efi.)
First thing I did was refresh my backups so whatever happens next isn’t the end of the world.
The system acts a bit funny, nvidia-smi doesn’t work because “it couldn’t communicate with the NVIDIA driver”. The Konsole started as a very small Window. Firefox didn’t think I was logged in here etc.
Is there a potential way to fix this before reinstalling Fedora?
lsblk shows sda which has the ESP and the Fedora partition, sdb which had the Windows partition and now just a larger ext4 partition:
sda 8:0 0 465,8G 0 disk ├─sda1 8:1 0 300M 0 part /boot/efi └─sda2 8:2 0 465,5G 0 part / sdb 8:16 0 465,8G 0 disk └─sdb3 8:19 0 465,8G 0 part /mnt/Utrymme sdc 8:32 0 465,8G 0 disk └─sdc2 8:34 0 464,8G 0 part
sudo os-prober yields nothing
The current kernel is 5.17.5, I’m not sure if that was the latest kernel prior to the incident.