Hi, On 09-01-19 16:10, Richard Shaw wrote:
On Wed, Jan 9, 2019 at 8:57 AM Hans de Goede <hdegoede@xxxxxxxxxx <mailto:hdegoede@xxxxxxxxxx>> wrote: Hi, On 09-01-19 15:11, Richard Shaw wrote: > Following up on Windows 10 not being detected I have a strange (to me) issue... > > Windows 10 created an EFI partition > > Fedora did a EFI install but DID NOT install the EFI data to the EFI partition that Windows created and DID NOT create one of its own. The Fedora EFI files are installed to the plain /boot partition. > > Now I will say this is a somewhat older computer and has pretty early EFI support (EFI Ready). There's no configurable EFI options in the BIOS other than for CD/DVD booting. > > Thoughts? I believe this means that Fedora did not recognize your machine as using UEFI and is using classic BIOS boot instead. When you installed Fedora and booted from a CD or USB stick, you likely got the option to either boot Fedora in classic BIOS mode (probably marked in your BIOS boot menu as just "USB storage" or some such) and to boot it in UEFI mode (marked with EFI in the name somewhere), I think you probably picked the classic option, causing Fedora to do a classic install. Ok... I thought the presence of /boot/efi/EFI meant it was booting UEFI but I checked my MythTV system which hasn't seen a fresh install since 2012 and it has those directories as well. It does have BIOS_BOOT since the main HD is gpt partitioned. Since you are getting what is most likely a classic BIOS grub version now when booting now your BIOS likely remembered that you booted in classic mode the last time and stuck with that. If Windows 10 expects to be loaded through UEFI then chainloading won't work. Take a look in your BIOS if you can turn EFI mode on, or try hitting F12 / F8 (or some such) to get your BIOS boot menu. Probably you can choose between UEFI and classic booting your harddisk. I'll double check but it treats the USB has a hard disk and I don't recall seeing a EFI option. The ONLY option related to EFI in the BIOS is for CD/DVD devices which is set, hence Win10 getting installed EFI using the disc. I may have to actually burn the ISO to disk to get it to boot in UEFI mode.
In that case it is probably easier to convert your existing install to UEFI: 1) Move /boot/efi contents to some place 2) Edit fstab mount the existing EFI system partition on /boot/efi 3) mount /boot/efi 4) move /boot/efi contents back in place 5) Run efibootmgr, doing something like: efibootmgr -c -d /dev/sda -p 1 -L Fedora -l '\EFI\fedora\grubx64.efi' This will tell your BIOS to add a "Fedora" entry to its UEFI boot menu. You may need to adjust the /dev/sda and the partition "1" to match your system. Also this assume your system and Fedora install are 64 bits, UEFI is only supported with a 64 bit install. Perhaps that is why your BIOS is not giving an EFI option for the USB disk ? For some more info on how to convert a system to UEFI see: https://oded.blog/2017/11/13/fedora-bios-to-uefi/ You may also want to use the -o option after running the -c (for create) command to make Fedora the default. Ugh I just realized that efibootmgr will only work if you are already booted in UEFI mode. If you can get Windows to boot again by trying to re-enable UEFI or some such in the BIOS you can probably find a similar tool under Windows. Sometimes UEFI BIOS also allow you to select an EFI binary to execute, in that case you can navigate to EFI\fedora\grubx64.efi and execute it directly or if you can start an EFI commandline shell you can start grubx64.efi from there. Once you've booted Fedora in UEFI mode that way you can use the efibootmgr command to permanently add Fedora to the list of OS-es the UEFI part of your BIOS knows about. If there is none of these options you may need to clear your mbr or open fdisk and re-write the existing GPT table, so that you get a dummy old style partition table (as is normally used with GPT) that may kick the BIOS back into UEFI mode and give you Windows 10 again. Note steps 1-4 are harmless (if done correct) and you will still be able to boot in legacy mode regardless. Regards, Hans _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx