GRUB not finding 2nd instance of Fedora for multi-boot
I have two separate instances of Fedora 40 installed (Xfce and KDE) on a drive with several partitions. The reason why is, it's a low-spec laptop, and I wanted to minimize any additional "fluff" on each installation. I was trying not to have multiple DEs installed on the same OS installation.
Xfce was installed first, and worked great. Then I altered the partition sizes, created new ones and installed the KDE spin of F40. Now, there are no GRUB entries for the Xfce spin--only three for KDE (latest and previous kernel + recovery). I've tried running os-prober, which does find the Xfce version: Code:
$ sudo os-prober Code:
$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Code:
$ sudo cat /boot/efi/EFI/fedora/grub.cfg Code:
### BEGIN /etc/grub.d/30_os-prober ### What am I doing wrong here? Thanks in advance... |
Have you tried running update grub?
|
Quote:
The article you linked lists: Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg Code:
$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg |
set GRUB_ENABLE_BLSCFG=false in /etc/default/grub and rerun grub2-mkconfig
|
Quote:
Code:
$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg Code:
Generating grub configuration file ... Booting now looks a bit different. My GRUB options are Fedora, Advanced options and UEFI. Advanced Options lists the same two kernels and a recovery, but all three entries now have a separate recovery option. But still no Xfce option. :scratch: |
have this in /etc/default/grub, and rerun grub2-mkconfig
Code:
GRUB_DISABLE_OS_PROBER=false |
Quote:
I've always run os-prober beforehand. When I run 'cat' on either file and examine the contents, the Xfce option isn't listed. |
Code:
$ sudo grep menuentry /boot/grub2/grub.cfg Code:
menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-c20285c1-ed0d-4e74-992e-1f703981f455' { |
Was the installation of the XFCE version of Fedora an EFI install? If it was a Legacy install and is on the same drive it probably won't boot from an EFI Grub.
What happens when you run: sudo grub2-mkconfig /boot/grub2/grub.cfg The grub.cfg file generally used on most Linux systems with this command is the one in the /boot/grub2 directory and the grub.cfg file on the EFI partition generally points to this main grub.cfg file which contains the menuentries. You might take a look at the link below to the FedoraProject. I don't use Fedora so don't know what changes they make to Grub. https://fedoraproject.org/wiki/GRUB_2 |
Assuming /dev/sda2 is the boot partition for the xfce fedora add this to /etc/grub.d/40_custom:
Code:
menuentry 'fedora xfce' { rerun grub2-mkconfig |
Quote:
I'm just curious as to why the Xfce wouldn't appear otherwise. |
Grub has problems picking up other distros kernels that have a btrfs file system. I think it has something to do with how the files are organized on a btrfs partition. The sub menu listing is the grub.cfg of the other installed fedora system.
|
Quote:
|
Quote:
before running grub-customizer so grub-customizer will pick up the other fedora mount it with a command similar to this: Code:
mount /dev/sda3 -t btrfs -o subvol=root00,compress=zstd /mnt Code:
rootflags=subvol=root00 |
All times are GMT -5. The time now is 07:52 PM. |