[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.
@ mrmazda, attempting to create a menuentry to load fedora grub.cfg within ubuntu grub menu.
Grub.cfg won't be found looking in a grub2 directory on a Ubuntu installation, just like grub.cfg won't be found looking in a grub directory on a Fedora installation.
I'm running lots of Fedoras on lots of PCs. The one currently booted to Rawhide has 32 and 33 as well, where neither have grub.cfg in /boot/efi/EFI/fedora/.
Regardless, it's not necessary for OP to find Fedora's grub.cfg. OP wants Ubuntu to have priority, so Fedora need not have grub* installed. He only needs UEFI to give priority to Ubuntu's installation and as a result its Grub, while Ubuntu's os-prober ought to be able to find Fedora's kernels and initrds as long as lsmod shows the BTRFS kernel module is loaded when Ubuntu's grub-mkconfig (normally as update-grub on Ubuntu) is run.
while Ubuntu's os-prober ought to be able to find Fedora's kernels and initrds as long as lsmod shows the BTRFS kernel module is loaded when Ubuntu's grub-mkconfig (normally as update-grub on Ubuntu) is run.
That is the problem ubuntu's grub isn't picking up fedora's kernels off the boot partition. My ubuntu doesn't pick it up either, even if I mount fedora filesystem along with fedora boot partition, ubuntu grub still doesn't pick it up.
exit out boot into ubuntu, If you edited /etc/40_custom as per computersavvy in post 44, I think fedora grub menu will come up allowing you to boot fedora from ubuntu.
exit out boot into ubuntu, If you edited /etc/40_custom as per computersavvy in post 44, I think fedora grub menu will come up allowing you to boot fedora from ubuntu.
It didn't work.
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
}
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
}
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo nano /etc/grub.d/40_custom
[sudo] password for user:
user@Lenovo-ideapad-110-17IKB:~$ sudo ls /mnt/efi/fedora
ls: cannot access '/mnt/efi/fedora': No such file or directory
user@Lenovo-ideapad-110-17IKB:~$ sudo mount /dev/sda1 /mnt/efi
mount: /mnt/efi: mount point does not exist.
user@Lenovo-ideapad-110-17IKB:~$ sudo ls /mnt/efi/fedora
ls: cannot access '/mnt/efi/fedora': No such file or directory
user@Lenovo-ideapad-110-17IKB:~$
post the contents of fedora /etc/default/grub
post the contents of EFI/fedora/grub.cfg on the efi partition.
post the contents of ubuntu /etc/grub.d/40_custom
Last edited by colorpurple21859; 11-06-2020 at 06:27 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.