[SOLVED] After installing Fedora, Windows won't boot
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello. I had dual boot Windows 10 + Linux Ubuntu 18.04 LTS. I installed Fedora on an empty partition using Legacy Support. Now when I try to set UEFI as default in BIOS, I am getting an error afterwards. I can run Ubuntu, but not Windows 10. I opened GPARTED in Ubuntu and the Windwos partition isn't deleted, but it still won't boot. I uploaded screenshots
Your Legacy install of Fedora Grub will not boot an EFI install of windows but will boot an EFI install of Linux. If you want Grub to boot all systems, they must match (all UEFI or all Legacy). You show both a BIOS_grub partition which is used only on GPT drives for Legacy install as well as an EFI partition. With that setup, you will need to access the BIOS to make changes needed to boot windows.
Have you tried setting the Grub boot entry for Ubuntu in your BIOS to first priority?
AFAIK, the windows default bootloader won't boot either Linux in either mode without user intervention or 3rd party software.
Unless you are a true expert, you must have all operating systems installed in the same boot mode, either UEFI, or legacy. Windows installed in UEFI mode cannot be booted in legacy mode. Installing Fedora "using legacy support" sounds like it was installed in legacy mode.
I'm not a Gparted user, so can only surmise that the red exclamations in the screenshot are informing you of partitions that will not be bootable using the current configuration.
You're probably going to need to revert to the partitioning in place before installing Fedora to get Windows to boot again, then install Fedora in UEFI mode. But before doing anything else, boot Ubuntu, open a terminal, and paste here using code tags ( [ # ] above the input window) input and output from:
Code:
sudo parted -l
so we might suggest with more specificity how to proceed.
Unless you are a true expert, you must have all operating systems installed in the same boot mode, either UEFI, or legacy. Windows installed in UEFI mode cannot be booted in legacy mode. Installing Fedora "using legacy support" sounds like it was installed in legacy mode.
I'm not a Gparted user, so can only surmise that the red exclamations in the screenshot are informing you of partitions that will not be bootable using the current configuration.
You're probably going to need to revert to the partitioning in place before installing Fedora to get Windows to boot again, then install Fedora in UEFI mode. But before doing anything else, boot Ubuntu, open a terminal, and paste here using code tags ( [ # ] above the input window) input and output from:
Code:
sudo parted -l
so we might suggest with more specificity how to proceed.
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo parted -l
[sudo] password for user:
Model: ATA WDC WD10JPCX-24U (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: pmbr_boot
Number Start End Size File system Name Flags
1 1049kB 274MB 273MB fat32 EFI system partition boot, esp
2 274MB 290MB 16,8MB Microsoft reserved partition msftres
3 290MB 331GB 330GB ntfs Basic data partition msftdata
4 331GB 331GB 1049kB bios_grub
5 331GB 332GB 1074MB ext4
10 332GB 650GB 318GB btrfs
9 650GB 957GB 307GB ext4
6 957GB 984GB 26,8GB ntfs Basic data partition msftdata
7 984GB 985GB 1049MB ntfs Basic data partition hidden, diag
8 985GB 999GB 14,2GB ntfs Basic data partition hidden, diag
user@Lenovo-ideapad-110-17IKB:~$
Yes, but it isn't showing. Take a look at the screenshots that I posted
I think this is your problem:
Quote:
Disk Flags: pmbr_boot
open a terminal
Code:
parted /dev/sda
(parted) disk_set pmbr_boot off
(parted) quit
reboot
See if you now have the option to set ubuntu as first in boot option. Running "sudo update-grub" in ubuntu should give you options to boot fedora.
Last edited by colorpurple21859; 11-01-2020 at 08:13 AM.
parted /dev/sda
(parted) disk_set pmbr_boot off
(parted) quit
reboot
See if you now have the option to set ubuntu as first in boot option. Running "sudo update-grub" in ubuntu should give you options to boot fedora.
Hello, I ran the commands and Ubuntu and Windows Boot Manager are showing again, however, when I try to boot Windows 10 it gets stuck at "Repairing" and I can't boot into Windows.
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo update-grub
[sudo] password for user:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-52-generic
Found initrd image: /boot/initrd.img-5.4.0-52-generic
Found linux image: /boot/vmlinuz-5.4.0-51-generic
Found initrd image: /boot/initrd.img-5.4.0-51-generic
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
user@Lenovo-ideapad-110-17IKB:~$
p.s. I restored an earlier version of Windows using a Windows 10 installation CD. This could have something to do with Windows not booting
More info seems to be called for, to learn where Ubuntu is, and what Fedora did and may be trying to do:
Code:
mount | grep sda
sudo blkid
sudo efibootmgr -v
I'm thinking the bios_grub partition may be the impediment to getting Fedora to install in UEFI mode.
There was a blocking bug in the most recent release of fedora that had something to do with Ubuntu, Windows, and BIOS. IIRC it was that the latest release of Ubuntu accepted and made permanent a change by windows that blocks most other distros from booting on a machine with dual or multi boot. It seems to be something about a new signature or something that windows has not released to other distros so for the interim (until the sig is released by windows) Fedoras new release was OKed with the caveat that on machines where Ubuntu 20 had already been installed that fedora would not boot.
I am going by memory from reading the discussion and was unable to find the post on askfedora that discussed it but will keep searching.
UPDATE:
Apparently the issue was related to secure boot, and it already affected F32 so they decided that F33 could be released. There is a fedora magazine article that discusses the secure boot issue here.
On some machines turning off secure boot will allow fedora to boot, but it may also interfere with windows and/or Ubuntu since the change apparently forces secure boot on for those systems.
Ubuntu has apparently removed the dbx update that triggered the problem but that won't help already existing installs.
The full details of the fedora release meeting and about the bug can be found here for those who are interested. The gist of it is that fedora may not install or boot with secure boot on and other OSes may not boot with secure boot off.
UPDATE2
Here is the actual bug related to secure boot with fedora.
Last edited by computersavvy; 11-01-2020 at 08:20 PM.
One more, to see if it suggests what's on /dev/sda5:
Code:
cat /etc/fstab
You could find out yourself by mounting /dev/sda5 to /mnt and taking a looksee if it has the usual / directories or something else, and if it's / entries, what /mnt/etc/os-release contains.
I've never seen efibootmgr produce network entries before. Do you have any sense as to why they are there? Unless you are PXE booting, I have to guess they could and should be removed using efibootmgr -B.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.