Perhaps you are correct, but Grub2 from Fedora still expects to see the shim at /boot/efi
, not /EFI/Boot
, besides arguing with me is not going to help the user get through this.
Grub2 does not care about shim at all, let alone where it is. It is the other way around, shim is looking for grub2 in the same directory as itself. Once grub2 is loaded it looks for grub.cfg in the same directory. And it still doesn’t care about the mount point. This only becomes relevant once Linux is up and running.
How does your efibootmgr output look like?
Boot0001* Fedora HD(1,GPT,4c4142d9-4e81-476a-93b5-dbdad8bb5f5a,0x800,0x400000)/File(\EFI\FEDORA\SHIMX64.EFI)0000424f
Note that upper and lower case letters are equivalent, os you can spell all uppercase or all lower case, or a mixed case.
That is not recomended. It is recommended, and in some cases necessary, to use the same ESP as windows is using, making sure NOT to re-format it.
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0001,0000,0002,2001,2002,2003
Boot0000* Fedora HD(4,GPT,2b4d4fc9-8b8b-4566-baac-c80ebc956c17,0x74337800,0x2c0000)/File(\EFI\fedora\shim.efi) File(.䍒)
Boot0001* Windows Boot Manager HD(5,GPT,2b4d4fc9-8b8b-4566-baac-c80ebc956c17,0x74337800,0x2c0000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000026000100000010000000040000007fff0400
Boot0002* Linpus lite HD(2,GPT,596bfe18-6cfc-4880-ba96-298703c7c362,0x3e31d0,0x5d24)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
That seems to indicate that you are attempting to boot from the Linpus lite EFI partition.
Probably you could boot normally from fedora if you were to use efibootmgr to set the next boot to fedora (Boot0000) with sudo efibootmgr -n 0000
then reboot which should then boot the fedora entry. You could also explicitly set the boot order with sudo efibootmgr -o 0000,0001,....
so the order chosen is already set by your entry.
efibootmgr -h
(the help screen) shows all the options available.
efibootmgr -n 0000 gives Could not set BootNext: Interrupted system call
and efibootmgr -o … gives
Skipping unreadable variable "Boot0000": Input/output error
Skipping unreadable variable "Boot0001": Input/output error
Skipping unreadable variable "Boot0002": Input/output error
Skipping unreadable variable "Boot2001": Input/output error
Skipping unreadable variable "Boot2002": Input/output error
Skipping unreadable variable "Boot2003": Input/output error
Malformed BootOrder order0000,
^
I am not sure what you are seeing or may be doing wrong.
This is what I see when run on my dual boot system
$ sudo efibootmgr -n 0001
BootNext: 0001
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0002,0006,0001,0003,0004
Boot0000* Fedora HD(1,GPT,5d6a36e2-fe99-4228-9f22-5ce85ed07a2b,0x800,0x82000)/File(\EFI\FEDORA\SHIMX64.EFI)
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* Windows Boot Manager HD(1,GPT,5d6a36e2-fe99-4228-9f22-5ce85ed07a2b,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0003* UEFI:Removable Device BBS(130,,0x0)
Boot0004* UEFI:Network Device BBS(131,,0x0)
Boot0006* Fedora HD(1,GPT,5d6a36e2-fe99-4228-9f22-5ce85ed07a2b,0x800,0x82000)/File(\EFI\FEDORA\SHIM.EFI)0000424f
and
$ sudo efibootmgr -o 0000,0002,0006,0001,0003,0004
BootNext: 0001
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0002,0006,0001,0003,0004
Boot0000* Fedora HD(1,GPT,5d6a36e2-fe99-4228-9f22-5ce85ed07a2b,0x800,0x82000)/File(\EFI\FEDORA\SHIMX64.EFI)
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* Windows Boot Manager HD(1,GPT,5d6a36e2-fe99-4228-9f22-5ce85ed07a2b,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0003* UEFI:Removable Device BBS(130,,0x0)
Boot0004* UEFI:Network Device BBS(131,,0x0)
Boot0006* Fedora HD(1,GPT,5d6a36e2-fe99-4228-9f22-5ce85ed07a2b,0x800,0x82000)/File(\EFI\FEDORA\SHIM.EFI)0000424f
Maybe include the actual command and the result in what you post for us to look at.
Created this using Boot Repair tool:
https://pastebin.ubuntu.com/p/2q5VrWDRkk/plain/
I think this would be useful
It might be, but the site requires an account for access which is not what I wish to do.
Please either post the details here as preformatted text or put it somewhere that does not force a reader to have an account on that site.
‘’'boot-repair-4ppa203 [20230601_1730]
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub2/grub.cfg
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda5: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Boot/fbia32.efi
/efi/Boot/fbx64.efi /efi/fedora/gcdia32.efi
/efi/fedora/gcdx64.efi /efi/fedora/grubia32.efi
/efi/fedora/grubx64.efi /efi/fedora/mmia32.efi
/efi/fedora/mmx64.efi /efi/fedora/shim.efi
/efi/fedora/shimia32.efi /efi/fedora/shimx64.efi
/efi/fedora/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi /bootmgr /boot/bcd
sda6: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub2/grub.cfg
sda8: __________________________________________________________________________
File system: btrfs
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb: ___________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 1 OS detected =================================
OS#1: Windows 10 or 11 on sda2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 5RCN32WW from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0000,0001,0002,2001,2002,2003
Boot0000* Fedora HD(4,GPT,2b4d4fc9-8b8b-4566-baac-c80ebc956c17,0x74337800,0x2c0000)/File(\EFI\fedora\shim.efi)RC
Boot0001* Windows Boot Manager HD(5,GPT,2b4d4fc9-8b8b-4566-baac-c80ebc956c17,0x74337800,0x2c0000)/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* Linpus lite HD(1,MBR,0x2c534026,0x3c4,0x1340)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
88a7b0e2436865122255f78aa52edaec sda5/Boot/bootx64.efi
b023680fdcebf4a4b32618450f63fdd3 sda5/Boot/fbia32.efi
9d035bba35672038e084af85e1b8d1df sda5/Boot/fbx64.efi
8a4b93dfff9214edcc5c88f4d47fdb86 sda5/fedora/gcdia32.efi
1d9bf4ec074aef822e07cad13cde63d1 sda5/fedora/gcdx64.efi
d5ef9dcff24828ff5292b0898d0a0707 sda5/fedora/grubia32.efi
ce5b81e848d9cfe1c0df0907c28b5aeb sda5/fedora/grubx64.efi
7010d05a34cbf0c3e696df6a62f56015 sda5/fedora/mmia32.efi
bd6eccfe55c5ec7e206500ac01cb0cd4 sda5/fedora/mmx64.efi
88a7b0e2436865122255f78aa52edaec sda5/fedora/shim.efi
b6410a7309a1aa9a05df02ea1954c02d sda5/fedora/shimia32.efi
88a7b0e2436865122255f78aa52edaec sda5/fedora/shimx64.efi
23de89ec237345413d864c8a619d6109 sda5/Microsoft/Boot/bootmgfw.efi
2c5164e838a35dc04aab81860f41e838 sda5/Microsoft/Boot/bootmgr.efi
b6410a7309a1aa9a05df02ea1954c02d sda5/Boot/BOOTIA32.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has—ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda2 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda3 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda6 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda7 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda8 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda2 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda5 : is—ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot
sda6 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda7 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda8 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda2 : not–sepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
sda3 : is—sepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
sda4 : not–sepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
sda5 : not–sepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
sda6 : not–sepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
sda7 : is—sepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
sda8 : maybesepboot, no—boot, part-has-no-fstab, not-sep-usr, no—usr, part-has-no-fstab, no–grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 864FEBD0-A799-4514-AC1D-AFAAD3F75762
Start End Sectors Size Type
sda1 206848 239615 32768 16M Microsoft reserved
sda2 239616 1277782591 1277542976 609.2G Microsoft basic data
sda3 1277784064 1279881215 2097152 1G Linux filesystem
sda4 1687386112 1949530111 262144000 125G Microsoft basic data
sda5 1949530112 1952413695 2883584 1.4G EFI System
sda6 1952413696 1953521663 1107968 541M Windows recovery environment
sda7 1279881216 1281978367 2097152 1G Linux filesystem
sda8 1281978368 1687386111 405407744 193.3G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 7.5 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: 0x2c534026
Boot Start End Sectors Size Id Type
sdb1 * 0 1802239 1802240 880M 0 Empty
sdb2 964 5891 4928 2.4M ef EFI (FAT-12/16/32)
Disk zram0: 940 MiB, 985677824 bytes, 240644 sectors
Disk zram1: 940 MiB, 985677824 bytes, 240644 sectors
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA WDC WD10SPZX-24Z:;
1:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
2:123MB:654GB:654GB:ntfs:Basic data partition:msftdata;
3:654GB:655GB:1074MB:ext4::;
7:655GB:656GB:1074MB:ext4::;
8:656GB:864GB:208GB:btrfs::;
4:864GB:998GB:134GB:ntfs:Basic data partition:msftdata;
5:998GB:1000GB:1476MB:fat32:EFI System Partition:boot, esp;
6:1000GB:1000GB:567MB:ntfs::hidden, diag;
sdb:8053MB:scsi:512:512:msdos:General UDisk:;
2:494kB:3017kB:2523kB:::esp;
Free space >10MiB: ______________________________________________________________
sda: 0.02MiB:101MiB:101MiB
sdb: 2.88MiB:7680MiB:7677MiB
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 3cbd8acf-3bee-4cbb-8237-43f2d09f1b8d Microsoft reserved partition
├─sda2 ntfs 1CC42F9FC42F79E2 c207ee9b-99d5-4dc7-a265-f8e609fe9566 Basic data partition
├─sda3 ext4 55cf2df2-931c-405d-b447-2b038afe35d1 c65c83e1-dbd2-43a4-bee3-c332a121bfda
├─sda4 ntfs 069E27449E272B9D 7ad5c1a1-30d6-4d91-a4ce-ec9a85af8855 Files Basic data partition
├─sda5 vfat FCF5-8F6F 2b4d4fc9-8b8b-4566-baac-c80ebc956c17 EFI System Partition
├─sda6 ntfs 1CD03091D03072DE 1989d6c8-abd3-48c4-919a-6dbee956bcc2
├─sda7 ext4 8c72070c-ecdf-460b-8423-9e1ee5995f51 b85a8130-5464-4cd8-b28b-6bdf128a541d
└─sda8 btrfs e779b3e0-41bc-4e7c-ad4a-8cddd43466ca 120459d5-a85d-41aa-99da-77dd5e602c1a fedora_localhost-live
sdb iso9660 2020-06-13-00-42-55-00 Boot-Repair-Disk 64bit
├─sdb1 iso9660 2020-06-13-00-42-55-00 2c534026-01 Boot-Repair-Disk 64bit
└─sdb2 vfat D055-8513 2c534026-02 Boot-Repair-Disk 64bit
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda2 512.1G 16% /mnt/boot-sav/sda2
/dev/sda3 844.7M 6% /mnt/boot-sav/sda3
/dev/sda4 124.9G 0% /mnt/boot-sav/sda4
/dev/sda5 1.3G 4% /mnt/boot-sav/sda5
/dev/sda6 85.9M 84% /mnt/boot-sav/sda6
/dev/sda7 844.7M 6% /mnt/boot-sav/sda7
/dev/sda8 188.6G 2% /mnt/boot-sav/sda8
/dev/sdb 0 100% /cdrom
Mount options (filtered): ______________________________________________________
======================== sda3/grub2/grub.cfg (filtered) ========================
Windows Boot Manager (on sda4) osprober-efi-FCF5-8F6F
END /etc/grub.d/30_os-prober
UEFI Firmware Settings uefi-firmware
END /etc/grub.d/30_uefi-firmware
==================== sda3: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
609.544956207 = 654.493913088 grub2/grub.cfg 1
609.599605560 = 654.552592384 vmlinuz-6.2.9-300.fc38.x86_64 2
609.643859863 = 654.600110080 initramfs-6.2.9-300.fc38.x86_64.img 1
===================== sda5/efi/fedora/grub.cfg (filtered) ======================
search --no-floppy --fs-uuid --set=dev 8c72070c-ecdf-460b-8423-9e1ee5995f51
set prefix=($dev)/grub2
export $prefix
configfile $prefix/grub.cfg
======================== sda7/grub2/grub.cfg (filtered) ========================
Windows Boot Manager (on sda5) osprober-efi-FCF5-8F6F
END /etc/grub.d/30_os-prober
UEFI Firmware Settings uefi-firmware
END /etc/grub.d/30_uefi-firmware
==================== sda7: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
610.544956207 = 655.567654912 grub2/grub.cfg 1
610.591793060 = 655.617945600 vmlinuz-6.2.9-300.fc38.x86_64 2
610.643859863 = 655.673851904 initramfs-6.2.9-300.fc38.x86_64.img 1
====================== sdb/boot/grub/grub.cfg (filtered) =======================
Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)
==================== sdb: Location of files loaded by Grub =====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
======================== Unknown MBRs/Boot Sectors/etc =========================
/dev/sda5: unknown GPT attributes
8000000000000000
Unknown BootLoader on sdb
BTRFS detected on sda8
ls sda8:
mount /dev/sda8 /mnt/boot-sav/sda8/
MOUNTCODE=0
os-prober before @ subvol mount:
/dev/sda5@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would not act on the MBR.
Additional repair would be performed: win-legacy-basic-fix
‘’’