I went back and deleted the entry I had made before (apparently you can not edit an existing menu item), and then recreated it being very careful to place strings within apostrophes. I was then able to boot that entry. It did a selinux relabel during the boot, but I have now booted back into Fedora 33.
On 5/14/21 3:21 PM, Lester Petrie wrote:
On 5/14/2021 2:39 PM, stan wrote:
On Thu, 13 May 2021 15:55:14 -0400 Lester Petrie lmpetrie@bellsouth.net wrote:
Hi all,
The subject says what I want to do. The why is as follows. About a year and a half ago I bought a new machine with a 2 Tb SSD and a 2 Tb hard drive. It came with Windows on it, which I wanted to keep, so I found a Windows program that let me shrink the Windows partitions on both the SSD and the HD to 1 Tb, and tried to install Fedora on the free 1Tb SSD. But at the time the installer would not recognize the SSD, so I ended up installing on the HD, with a new EFI partition there. I was then able to select between Windows and Fedora from the boot menu. About the time F33 came out, I learned I needed to disable Raid in the Bios, and then I installed F33 on the free 1Tb SSD. This added Fedora to the Windows EFI partition, and replaced Fedora in the boot menu with the new version, so I was still able to select either Windows or Fedora 33 when I booted. And grub conveniently found my old HD installation and included it in the grub menu. Then something happened about a week ago, and the Fedora entry in the boot menu reverted to the HD entry (which is F31). I can do a rescue boot and chroot to F33, and then run efibootmgr, but I can't figure out how to create a legitimate, bootable entry for F33. The files all seem to still be in the right place, and I can create an entry in the menu, but it is not a valid entry. Any help will be greatly appreciated.
When I encountered this issue a few years ago, the answer was that it is only possible to have a single Fedora instance at a time using grub. What you describe above, two UEFI boots for Fedora showed up in the menu, is an anomaly. It should not be possible. When I want to boot a different EFI partition, I have to go into the bios boot menu and select the different efi partition. That is, only one efi partition can be active at any one time. There is an exception to this, systemd-boot, which finesses the issue by putting all efi candidates in a single partition, as I understand it. But it doesn't sound like you are using that if you are getting a grub menu.
Since your system seems to be exceptional, you could try running grub2-mkconfig, which runs a discovery program, and maybe it will add the entries correctly to your grub menu. For F33, I think that is still grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg for efi.
In F34, the grub.cfg file is now in /boot/grub2/grub.cfg for both bios and efi.
I think the answer to your question is to use the bios boot menu to select the SSD version as the default Fedora boot. Or at least move it above the HD version.
Obviously, my subject line was not adequate. The menu I need to create an entry in is the bios boot menu. I have a UEFI system, so I think I will have to use efibootmgr. So far I have only succeeded in getting into the F33 system using rescue mode and a chroot. My attempt at creating an entry from there using efibootmgr actually put an entry in the menu, but when I tried to select it, a not valid entry error was reported, and I had to reboot. What I need is more guidance than what is available in the man page for efibootmgr.