[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.
If you provide more info we can probably better determine what's going on. We don't know if the Fedora installation changed the partitioning, which may be why the BIOS shows Fedora twice.
Code:
sudo parted -l
sudo efibootmgr -v
I am not certain he has an issue with fedora being shown twice in bios. On my system bios shows each bootable partition twice, once as uefi and once without uefi. Even though I have never used anything but UEFI on this system.
When I boot the live image I see the USB stick twice, once as UEFI and once without UEFI since it can be booted for either UEFI install or MBR install.
On my system bios shows each bootable partition twice, once as uefi and once without uefi.
What I see is more or less as you describe, but depends on motherboard firmware, no two varieties of which seem to match in behavior. Mostly what I see in BBS menu is:
UEFI built-in shell
UEFI OS (<disk>, e.g. "P0: SPCCSolidSta")
AHCI (<disk>, e.g. "P0: SPCCSolidStateDisk)
distroname (from /etc/default/grub's GRUB_DISTRIBUTOR= and /boot/efi/EFI/) "P0: SPCCSolidSta"
When I boot the live image I see the USB stick twice, once as UEFI and once without UEFI since it can be booted for either UEFI install or MBR install.
As I.
I question why only Fedora has two entries while Ubuntu has only one.
I avoid boot confusion by allowing only the OS I wish to be in control by keeping other entries out of the BIOS using efibootmgr and/or BIOS setup, and very purposely not allowing the ESP partition to be mounted to /boot/efi/ except by the OS I wish to be in control.
The ? will be the partition number of fedora boot partition, (hd0,5) is what it was originally.
you may be able to look at fedora /etc/fstab to see which partition is fedora /boot.
Code:
sudo update-grub
I ran the commands from your post and now it looks like this:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'fedora config file'{
configfile (hd0,?)/grub2/grub.cfg
}
A new grub entry appeared, called "fedora config file". When I click on it, nothing happens, I get sent back to the grub menu
If you provide more info we can probably better determine what's going on. We don't know if the Fedora installation changed the partitioning, which may be why the BIOS shows Fedora twice.
Code:
sudo parted -l
sudo efibootmgr -v
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo parted -l
Model: ATA WDC WD10JPCX-24U (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
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
5 331GB 332GB 1074MB ext4
4 332GB 333GB 1074MB ext4
10 333GB 650GB 317GB 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:~$ sudo efibootmgr -v
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0006,0002,0000,0005,2003,2001,2002
Boot0000* Windows Boot Manager HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0002* Fedora HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\fedora\shimx64.efi)
Boot0003* EFI Network 0 for IPv4 (54-E1-AD-0B-AF-B6) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1ad0bafb6,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0004* EFI Network 0 for IPv6 (54-E1-AD-0B-AF-B6) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1ad0bafb6,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0005* Fedora HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\fedora\shim.efi)RC
Boot0006* ubuntu HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0007* EFI Network 0 for IPv4 (54-E1-AD-0B-AF-B6) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1ad0bafb6,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0008* EFI Network 0 for IPv6 (54-E1-AD-0B-AF-B6) PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(54e1ad0bafb6,0)/IPv6([::]:<->[::]:,0,0)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
user@Lenovo-ideapad-110-17IKB:~$
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'fedora config file'{
insmod btrfs
configfile (hd0,4)/grub2/grub.cfg
}
There is a grub entry called "fedora config file" and when I click on it, nothing happens.
do "sudo ls /mnt/efi/fedora"
if it fails then you need to mount your efi partition at /mnt/efi with "sudo mount /dev/sda1 /mnt/efi"
then "sudo ls /mnt/efi/fedora" to verify you see the grub.cfg file there.
Then the previous code from post #39 would be changed as
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'fedora config file'{
insmod btrfs
configfile (hd0,1)/EFI/fedora/grub.cfg
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.