I have fedora and windows 10 installed on 2 seperate hard drives and for some reason os-prober won’t detect my windows 10 partition. running grub2-mkconfig -o /boot/grub2/grub.cfg doesn’t do anything either. i’m new to fedora and have never had this problem on other linux distro’s.
Does os-prober output anything all on when you run it?
You have a similar setup as me, Fedora 29 and Windows 10 on two separate disks. I get the following when I run os-prober: -
[shecks@red-dwarf ~]$ sudo os-prober
/dev/sdb2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
[shecks@red-dwarf ~]
Fedora is on sda
Also, do you have an EFI BIOS? If so, when updating grub you need to update the EFI configuration files as follows: -
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
I think /boot.grub2/grub.cfg is for the older legacy BIOS boot configuration.
yes fedora is on sda and running os prober comes up blank
and grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg doesn’t detect windows
Is your Fedora install booting in EFI mode? I’ve read some reports about os-prober and grub not detecting EFI OS installations if run from a non EFI booted OS
You can check on Fedora for the presence of /sys/firmware/efi/
[christopher@Xerneas ~]$ cd /sys/firmware/efi/
bash: cd: /sys/firmware/efi/: No such file or directory
Looks like your Fedora install is booting using legacy BIOS rather than EFI, so this might be why os-prober doesn’t detect the Windows 10 install (which I would assume is on an EFI partition on your second drive).
Unfortunately, I don’t know if there is an easy way to change the Fedora install to boot using EFI without a re-install. Hopefully someone with better Linux knowledge than me will add to the thread and might be able to suggest an easy solution.
im willing to reinstall it as i have nothing on it ive done it twice and it wont detect windows so i think im just going to reinstall majaro since that was working
If you are going to give Fedora another, just check when you’re booting from the installation USB, because the last couple of times I’ve installed Fedora I was given two options when booting the USB, something like:
“Toshiba: Fedora”
“UEFI Toshiba: Fedora”
Or something like this:
So you have to make sure you choose the UEFI boot loader option.
Also, if you wanted to test to see if it is an issue with the different boots modes, you could always just run the UEFI Fedora Live USB again and try os-prober at the command prompts to see if it finds Windows 10 when booting from EFI.
did that and it worked
@silentbirdie Please have this marked as solved.
This can also help many people down the line with dual booting.
