After installing Fedora 37, I no longer have the option to boot Windows 10 in the bios. And when I boot to Fedora, there is no step by grub (I mean Fedora is booted directly).
I tried boot-repair without success.
bash-5.2$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 931,5G 0 disk
├─nvme0n1p1 259:1 0 600M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
├─nvme0n1p3 259:3 0 93,1G 0 part /
├─nvme0n1p4 259:4 0 372,5G 0 part /home
├─nvme0n1p5 259:5 0 16M 0 part
└─nvme0n1p6 259:6 0 464,3G 0 part
I saw some people modify /etc/grub.d/40_custom, but I don’t know what to put in it. And I don’t know if this can fix the fact that even the bios don’t recognize it anymore.
It seems the Microsoft files in EFI is not there - one possibility is the EFI created by Windows is not preserved when installing Fedora. (By default, MS EFI partition is 100MB, while Fedora is 600MB).
It seems that the fedora install wiped out the windows install.
Normally when dual boot installing partitions 1- 4 are kept as the windows partitions
p1 – EFI
p2 – hidden
p3 – windows os
p4 – recovery.
Then the user shrinks p3 (from within the windows disk manager) to allow enough space for the linux install and does not overwrite anything during the install.
The fact that the Microsoft data is missing from /boot/efi/EFI indicates the install may have been done while overwriting the entire disk (or at least while formatting and overwriting the efi partition)
At this point you probably need to reinstall windows. After that has been done do a new install of fedora making sure to not wipe out windows. Recovery may be possible by booting to windows media and attempting a repair.
I had also tried with windows media but it needs to boot on the os to work.
I didn’t know Windows had a UEFI partition too, and every time I installed Linux I formatted a new /boot/efi partition, so it must be because of that. But usually I don’t have a problem. Maybe this time I accidentally deleted the Windows boot partition.
So if I understand correctly, if I reinstall Windows, I will have 3 partitions:
EFI
Microsoft reserved partition
Windows os
And if I want to install linux, I can format a new partition for /boot/efi, being careful not to delete these 3 ?
After you reinstall Windows, you need to shrink your Windows partition to make room for the Fedora install. That could be done in Disk Manager. I personally use Paragon Partition Manager CE. It’s freeware. I find it easier. After you shrink the partition, don’t touch the unallocated space.
After you’ve done that, just go ahead and and install Fedora like normal. Do the automatic install – don’t manually format or partition anything. The Fedora Anaconda installer will take care of it for you.
Once you’ve completed the install – reboot and you should be presented with a GRUB menu with the option to choose either booting Fedora or Windows.
Actually 4. A recovery partition will be at the very end of the drive in my experience.
As suggested, do an automatic install.
Just an FYI. Any OS that boots with UEFI must have an efi partition to boot from. When you formatted the efi partition you wiped out the windows boot loader.
Linux shares an efi partition very readily with other OSes, so formatting it is seldom a good idea unless you are only booting one OS on that hardware.