How to fix my bootmgr/EFI partition?

Hi,
I was dual booting Windows 10 & Manjaro, but I switched to EndeavourOS (+ Windows) few months ago.

But since the recent grub bug that I fixed with the solution here, my computer still try to boot into the old grub version/path (I think).
grub rescue
Also I see two perfecly working Windows Boot Manager.
double windows
Finally I can still see remain of Manjaro in grub.
manjaro remain

Edit :

Boot into your EnOS and post the output of:

efibootmgr -v

sudo parted -l

ls /boot/efi/EFI

Copy the terminal output as text, paste it into your reply, highlight it and press Ctrl-E to format.

efibootmgr -v :

BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001,0004,0002,0005
Boot0000* endeavouros	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\ENDEAVOUROS\GRUBX64.EFI)
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 3e 00 5c 00 45 00 46 00 49 00 5c 00 45 00 4e 00 44 00 45 00 41 00 56 00 4f 00 55 00 52 00 4f 00 53 00 5c 00 47 00 52 00 55 00 42 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
Boot0001* Windows Boot Manager	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\ENDEAVOUROS/GRUBX64.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000061000100000010000000040000007fff0400
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 3e 00 5c 00 45 00 46 00 49 00 5c 00 45 00 4e 00 44 00 45 00 41 00 56 00 4f 00 55 00 52 00 4f 00 53 00 2f 00 47 00 52 00 55 00 42 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
    data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 61 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
Boot0002  Hard Drive	BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)0000474f00004e4fad0000000800000081004300540031003000300030005000310053005300440038000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a00000000010106000101010106000000031710000100000000a07519e21bcd097fff040001042e00ef47642dc93ba041ac194d51d01b4ce643005400310030003000300050003100530053004400380000007fff04000000424f00004e4fcb000000080000008500530061006d00730075006e006700200053005300440020003800350030002000450056004f002000350030003000470042000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a0000000001010600021f03120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce6320053004200520042004e004a00300031003300390033003200390020004200200020002000200000007fff04000000424f00004e4fb700000008000000850054004f0053004800490042004100200048004400570045003100340030000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a0000000001010600021f03120a000300ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000360059003600450054004b0050004b00350046004400380000007fff04000000424f
      dp: 05 01 09 00 02 00 00 00 00 / 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 / 7f ff 04 00
    data: 00 00 47 4f 00 00 4e 4f ad 00 00 00 08 00 00 00 81 00 43 00 54 00 31 00 30 00 30 00 30 00 50 00 31 00 53 00 53 00 44 00 38 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 01 01 01 01 06 00 00 00 03 17 10 00 01 00 00 00 00 a0 75 19 e2 1b cd 09 7f ff 04 00 01 04 2e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 43 00 54 00 31 00 30 00 30 00 30 00 50 00 31 00 53 00 53 00 44 00 38 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f cb 00 00 00 08 00 00 00 85 00 53 00 61 00 6d 00 73 00 75 00 6e 00 67 00 20 00 53 00 53 00 44 00 20 00 38 00 35 00 30 00 20 00 45 00 56 00 4f 00 20 00 35 00 30 00 30 00 47 00 42 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 1f 03 12 0a 00 05 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 32 00 53 00 42 00 52 00 42 00 4e 00 4a 00 30 00 31 00 33 00 39 00 33 00 32 00 39 00 20 00 42 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f b7 00 00 00 08 00 00 00 85 00 54 00 4f 00 53 00 48 00 49 00 42 00 41 00 20 00 48 00 44 00 57 00 45 00 31 00 34 00 30 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 1f 03 12 0a 00 03 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 36 00 59 00 36 00 45 00 54 00 4b 00 50 00 4b 00 35 00 46 00 44 00 38 00 00 00 7f ff 04 00 00 00 42 4f
Boot0004* Windows Boot Manager	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)0000424f
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 49 00 43 00 52 00 4f 00 53 00 4f 00 46 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 4d 00 47 00 46 00 57 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
    data: 00 00 42 4f
Boot0005  USB HDD	BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0900)0000474f00004e4fe1000000080000009b005700440043002000570044003200300045005a00520058002d003000300044004300300042003000200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d0305060000000305060000007fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f00004e4fe200000008000000a00053005400320030003000300044004d003000300036002d00320044004d00310036003400200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d03050600000003050600000003110500017fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f00004e4fe200000008000000a00053005400320030003000300044004d003000300036002d00320044004d00310036003400200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d03050600000003050600000003110500027fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f00004e4fe200000008000000a00053005400340030003000300044004d003000300034002d00320043005600310030003400200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d03050600000003050600000003110500037fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f
      dp: 05 01 09 00 02 00 00 00 00 / 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 / 7f ff 04 00
    data: 00 00 47 4f 00 00 4e 4f e1 00 00 00 08 00 00 00 9b 00 57 00 44 00 43 00 20 00 57 00 44 00 32 00 30 00 45 00 5a 00 52 00 58 00 2d 00 30 00 30 00 44 00 43 00 30 00 42 00 30 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f e2 00 00 00 08 00 00 00 a0 00 53 00 54 00 32 00 30 00 30 00 30 00 44 00 4d 00 30 00 30 00 36 00 2d 00 32 00 44 00 4d 00 31 00 36 00 34 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 03 11 05 00 01 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f e2 00 00 00 08 00 00 00 a0 00 53 00 54 00 32 00 30 00 30 00 30 00 44 00 4d 00 30 00 30 00 36 00 2d 00 32 00 44 00 4d 00 31 00 36 00 34 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 03 11 05 00 02 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f e2 00 00 00 08 00 00 00 a0 00 53 00 54 00 34 00 30 00 30 00 30 00 44 00 4d 00 30 00 30 00 34 00 2d 00 32 00 43 00 56 00 31 00 30 00 34 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 03 11 05 00 03 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f

sudo parted -l :

Model: ATA TOSHIBA HDWE140 (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      17,4kB  134MB   134MB                Mi    msftres
 2      135MB   4001GB  4001GB  ntfs         Ba    msftdata


Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  285GB  285GB  ntfs         Basic data partition  msftdata
 2      285GB   286GB  524MB  fat32                              boot, esp


Error: Can't have a partition outside the disk!                                                         
Ignore/Cancel? Ignore                                                     
Error: Can't have a partition outside the disk!
Ignore/Cancel? Ignore                                                     
Model: WDC WD20 EZRX-00DC0B0 (scsi)
Disk /dev/sdc: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  2000GB  2000GB  primary  ntfs


Model: ST2000DM 006-2DM164 (scsi)
Disk /dev/sdd: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      17,4kB  134MB   134MB                Microsoft reserved partition  msftres
 2      135MB   2000GB  2000GB  ntfs         Basic data partition          msftdata


Model: ST4000DM 004-2CV104 (scsi)
Disk /dev/sde: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      17,4kB  16,8MB  16,8MB               Microsoft reserved partition  msftres
 2      16,8MB  4001GB  4001GB  ntfs         Basic data partition          msftdata


Model: ST2000DM 006-2DM164 (scsi)
Disk /dev/sdf: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      17,4kB  134MB   134MB                Microsoft reserved partition  msftres
 2      135MB   2000GB  2000GB  ntfs         Basic data partition          msftdata


Model: CT1000P1SSD8 (nvme)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  17,8MB  16,8MB               Microsoft reserved partition  msftres
 2      17,8MB  500GB   500GB   ntfs         Basic data partition          msftdata
 4      500GB   1000GB  500GB   ext4         Endeavour

ls /boot/efi/EFI

 ξˆ€ $USER on Monday,13:08:34                                                                                                                              17.286s  CPU: 15.13% ο›œ RAM: 8/33GB 
 { ξ—Ώ home } ξŠ… ls /boot/efi/EFI
ls: cannot access '/boot/efi/EFI': No such file or directory

sudo find / -iname "efi"

/sys/firmware/efi
find: β€˜/run/user/1000/doc’: Permission denied
find: β€˜/run/user/1000/gvfs’: Permission denied
/efi
/usr/share/efitools/efi
/usr/lib/os-probes/mounted/efi
/usr/lib/modules/6.1.1-arch1-1/kernel/drivers/firmware/efi
/usr/lib/modules/6.1.1-arch1-1/build/drivers/firmware/efi
/usr/lib/modules/6.1.1-arch1-1/build/include/config/EFI
/usr/lib/systemd/boot/efi
/boot/efi
  ξˆ€ $USER on Monday,13:16:38                                                                                                                              0.003s  CPU: 15.19% ο›œ RAM: 10/33GB 
 { ξ—Ώ home } ξŠ… ls /boot/efi/

 ξˆ€ $USER on Monday,13:17:11                                                                                                                              0.002s  CPU: 15.67% ο›œ RAM: 10/33GB 
 { ξ—Ώ home } ξŠ… ls /efi/

 ξˆ€ $USER on Monday,13:17:14                                                                                                                              0.002s  CPU: 15.62% ο›œ RAM: 10/33GB 
 { ξ—Ώ home } ξŠ…

:melting_face: Thank you !

Boot0000* endeavouros	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\ENDEAVOUROS\GRUBX64.EFI)

This seems ok to me.

However, what is a bit β€œodd” to my eyes is that you seem to have your linux partition on /dev/nvme0n1 while your ESP seems to reside on /dev/sdb. You could run lsblk -f to see if that is the case. I am saying this for you to be aware, if you will format that drive in the future, you would need to recreate the ESP ad restore your both systems’ bootloaders.

From within your EnOS, you could try to set the next boot to be 0004:

sudo efibootmgr --bootnext 0004

If that boot entry will successfully boot up your Windows, then you could delete 0001 if you choose to.

Yes, I think I bought a new ssd while Windows was on /dev/sdb and didn’t want to clone/format windows to the new drive or to go deep in dual-booting efi thing. I think Windows don’t like it when we edit the bootmgr.

Successfully booted with 0004 so I deleted 0001 as mentioned.

Then the main problem is that my computer randomly boot between nothingness (ie: img : 1) and the correct grub (ie: img : 3). And nothingness has better odds :face_with_monocle:

Look into /boot/efi/EFI.
You migt have remnants of old bootloaders in there.

 ξˆ€ $USER on Monday,14:50:53                                                                                                                                  0s  CPU: 31.65% ο›œ RAM: 16/33GB 
 { ξ—Ώ home } ξŠ… ls /boot/efi/

 ξˆ€ $USER on Monday,14:51:00                                                                                                                              0.003s  CPU: 31.58% ο›œ RAM: 16/33GB 
 { ξ—Ώ home } ξŠ… ls /boot/efi/EFI
ls: cannot access '/boot/efi/EFI': No such file or directory

 ξˆ€ $USER on Monday,14:51:03                                                                                                                              0.003s  CPU: 31.55% ο›œ RAM: 16/33GB 
 { ξ—Ώ home } ξŠ… sudo ls /boot/efi/EFI
[sudo] password for $USER: 
ls: cannot access '/boot/efi/EFI': No such file or directory

There is nothing in /boot/efi/. :melting_face:

:thinking:

Could you post:

lsblk -f

and

cat /etc/fstab

?

lsblk -f

NAME        FSTYPE FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                  
β”œβ”€sda1                                                                               
└─sda2      ntfs         Other   06B483DCB483CC9D                        3,1T    15% /home/$USER/media/Other
sdb                                                                                  
β”œβ”€sdb1      ntfs         SSD     01D5DC44A173DEF0                                    
└─sdb2      vfat   FAT32         D6E8-2E3E                                           
...
nvme0n1                                                                              
β”œβ”€nvme0n1p1                                                                          
β”œβ”€nvme0n1p2 ntfs         Windows BCC0944CC0940EB0                                    
└─nvme0n1p4 ext4   1.0           cfef7577-7291-4eed-8ad5-62bd6403d441  314,1G    26% /

cat /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=cfef7577-7291-4eed-8ad5-62bd6403d441 /              ext4    defaults,noatime 0 1
...

Edit :
:open_mouth: This cfef7577-7291-4eed-8ad5-62bd6403d441 is in img 1 I probably should delete it, but isn’t this like my root folder ?
Edit 2:
And it seems that windows is in nvme0n1p2 and the bootmgr/efi thing is definitely alone in another drive :face_with_monocle:

That is you root partition.

The question is: where is your ESP?
I thought it was on /dev/sdb2. But I can’t see that being mounted nor do I see an entry for it in fstab.
Color me confused :confused:

Could you mount /dev/sdb2 on /mnt and check its content?

sudo mount /dev/sdb2 /mnt

For me it is in /dev/sdb2 :

Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  285GB  285GB  ntfs         Basic data partition  msftdata
 2      285GB   286GB  524MB  fat32                              boot, esp <-- Here !

But not mounted, should I mount it ?


And seeing your reply I should mount it :

 ξˆ€ $USER on Monday,15:21:54                                                                                                                              0.005s  CPU: 30.87% ο›œ RAM: 15/33GB 
 { ξ—Ώ home } ξŠ… ls /mnt/EFI/
BOOT/  endeavouros/  EndeavourOS-grub/  Microsoft/  systemd/

The answer should be here :face_holding_back_tears:

Edit :
ll /mnt/EFI/ --tree

drwxr-xr-x     - root root  16 oct.   2022 /mnt/EFI
drwxr-xr-x     - root root  15 aoΓ»t   2021 β”œβ”€β”€ BOOT
.rwxr-xr-x  143k root root  11 mars   2022 β”‚  └── BOOTX64.EFI
drwxr-xr-x     - root root  16 oct.   2022 β”œβ”€β”€ endeavouros
.rwxr-xr-x  156k root root  16 oct.   2022 β”‚  └── grubx64.efi
drwxr-xr-x     - root root  26 aoΓ»t   2022 β”œβ”€β”€ EndeavourOS-grub
.rwxr-xr-x  156k root root  26 aoΓ»t   2022 β”‚  └── grubx64.efi
drwxr-xr-x     - root root  15 aoΓ»t   2021 β”œβ”€β”€ Microsoft
drwxr-xr-x     - root root  15 aoΓ»t   2021 β”‚  β”œβ”€β”€ Boot
drwxr-xr-x     - root root  15 aoΓ»t   2021 β”‚  β”‚  β”œβ”€β”€ en-GB
.rwxr-xr-x   77k root root   3 avril  2022 β”‚  β”‚  β”‚  β”œβ”€β”€ bootmgfw.efi.mui
.rwxr-xr-x   77k root root   3 avril  2022 β”‚  β”‚  β”‚  └── bootmgr.efi.mui
drwxr-xr-x     - root root  15 aoΓ»t   2021 β”‚  β”‚  β”œβ”€β”€ en-US
.rwxr-xr-x   77k root root   7 dΓ©c.   2019 β”‚  β”‚  β”‚  β”œβ”€β”€ bootmgfw.efi.mui
.rwxr-xr-x   77k root root   7 dΓ©c.   2019 β”‚  β”‚  β”‚  β”œβ”€β”€ bootmgr.efi.mui
.rwxr-xr-x   45k root root   7 dΓ©c.   2019 β”‚  β”‚  β”‚  └── memtest.efi.mui
...
.rwxr-xr-x   57k root root   2 janv. 14:05 β”‚  β”‚  β”œβ”€β”€ BCD
.rwxr-xr-x   66k root root  15 aoΓ»t   2021 β”‚  β”‚  β”œβ”€β”€ BCD.LOG
.rwxr-xr-x     0 root root  15 aoΓ»t   2021 β”‚  β”‚  β”œβ”€β”€ BCD.LOG1
.rwxr-xr-x     0 root root  15 aoΓ»t   2021 β”‚  β”‚  β”œβ”€β”€ BCD.LOG2
.rwxr-xr-x  4,9k root root   3 avril  2022 β”‚  β”‚  β”œβ”€β”€ boot.stl
.rwxr-xr-x  1,6M root root  13 nov.   2022 β”‚  β”‚  β”œβ”€β”€ bootmgfw.efi
.rwxr-xr-x  1,6M root root  13 nov.   2022 β”‚  β”‚  β”œβ”€β”€ bootmgr.efi
.rwxr-xr-x   66k root root  21 dΓ©c.   2022 β”‚  β”‚  β”œβ”€β”€ BOOTSTAT.DAT
.rwxr-xr-x   50k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_0C_8086.dll
.rwxr-xr-x   21k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_1af4.dll
.rwxr-xr-x   33k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_10df.dll
.rwxr-xr-x  380k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_10ec.dll
.rwxr-xr-x  241k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_14e4.dll
.rwxr-xr-x   45k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_15b3.dll
.rwxr-xr-x   33k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_19a2.dll
.rwxr-xr-x   27k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_1137.dll
.rwxr-xr-x   45k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_1969.dll
.rwxr-xr-x  299k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_02_8086.dll
.rwxr-xr-x   20k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kd_07_1415.dll
.rwxr-xr-x   19k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kdnet_uart16550.dll
.rwxr-xr-x   29k root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ kdstub.dll
.rwxr-xr-x  1,4M root root  18 sept.  2022 β”‚  β”‚  β”œβ”€β”€ memtest.efi
.rwxr-xr-x  9,8k root root   7 dΓ©c.   2019 β”‚  β”‚  └── winsipolicy.p7b
drwxr-xr-x     - root root  15 aoΓ»t   2021 β”‚  └── Recovery
.rwxr-xr-x   20k root root  11 mars   2022 β”‚     β”œβ”€β”€ BCD
.rwxr-xr-x   33k root root  15 aoΓ»t   2021 β”‚     β”œβ”€β”€ BCD.LOG
.rwxr-xr-x     0 root root  15 aoΓ»t   2021 β”‚     β”œβ”€β”€ BCD.LOG1
.rwxr-xr-x     0 root root  15 aoΓ»t   2021 β”‚     └── BCD.LOG2
drwxr-xr-x     - root root  15 aoΓ»t   2021 └── systemd
.rwxr-xr-x   92k root root  16 juin   2021    └── systemd-bootx64.efi

:warning:
Make sure to have a Live EnOS usb at hand in case something goes wrong and needs repairing from the live session.

Let’s try this and see if we can tidy up things and make it work. Hopefully :wink:

  1. Mount /dev/sdb2 under /boot/efi

  2. Reinstall the bootloader:

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EnOS-grub

  1. Check with efibootmgr -v to see if a new entry with ID EnOS-grub has been created and it is first in the boot order.

  2. Add an entry for ESP (/dev/sdb2) in /etc/fstab:

sudo nano /etc/fstab

UUID=D6E8-2E3E /boot/efi vfat defaults 0 2

Press Ctrl-O, Enter and Ctrl-X to save the file and exit nano.

  1. Regenerate grub.cfg

sudo grub-mkconfig -o /boot/grub/grub.cfg

In case of doubt about anything, please ask before going ahead with the above.

If you get any errors at any stage post it here. If not, cross your fingers and reboot.

1 Like

Done. No errors. Reboot was successful. (But still hitting img : 1 after 2nd reboot)
efibootmgr -v

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0000,0001,0004,0005,0006
Boot0000* endeavouros	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\ENDEAVOUROS\GRUBX64.EFI)
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 3e 00 5c 00 45 00 46 00 49 00 5c 00 45 00 4e 00 44 00 45 00 41 00 56 00 4f 00 55 00 52 00 4f 00 53 00 5c 00 47 00 52 00 55 00 42 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
Boot0001* EnOS-grub	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\ENOS-GRUB\GRUBX64.EFI)
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 3a 00 5c 00 45 00 46 00 49 00 5c 00 45 00 4e 00 4f 00 53 00 2d 00 47 00 52 00 55 00 42 00 5c 00 47 00 52 00 55 00 42 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
Boot0004* Windows Boot Manager	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)0000424f
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 49 00 43 00 52 00 4f 00 53 00 4f 00 46 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 4d 00 47 00 46 00 57 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
    data: 00 00 42 4f
Boot0005  Hard Drive	BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)0000474f00004e4fad0000000800000081004300540031003000300030005000310053005300440038000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a00000000010106000101010106000000031710000100000000a07519e21bcd097fff040001042e00ef47642dc93ba041ac194d51d01b4ce643005400310030003000300050003100530053004400380000007fff04000000424f00004e4fb700000008000000850054004f0053004800490042004100200048004400570045003100340030000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a0000000001010600021f03120a000300ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce620002000200020002000200020002000360059003600450054004b0050004b00350046004400380000007fff04000000424f00004e4fcb000000080000008500530061006d00730075006e006700200053005300440020003800350030002000450056004f002000350030003000470042000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a0000000001010600021f03120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce6320053004200520042004e004a00300031003300390033003200390020004200200020002000200000007fff04000000424f
      dp: 05 01 09 00 02 00 00 00 00 / 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 / 7f ff 04 00
    data: 00 00 47 4f 00 00 4e 4f ad 00 00 00 08 00 00 00 81 00 43 00 54 00 31 00 30 00 30 00 30 00 50 00 31 00 53 00 53 00 44 00 38 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 01 01 01 01 06 00 00 00 03 17 10 00 01 00 00 00 00 a0 75 19 e2 1b cd 09 7f ff 04 00 01 04 2e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 43 00 54 00 31 00 30 00 30 00 30 00 50 00 31 00 53 00 53 00 44 00 38 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f b7 00 00 00 08 00 00 00 85 00 54 00 4f 00 53 00 48 00 49 00 42 00 41 00 20 00 48 00 44 00 57 00 45 00 31 00 34 00 30 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 1f 03 12 0a 00 03 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 36 00 59 00 36 00 45 00 54 00 4b 00 50 00 4b 00 35 00 46 00 44 00 38 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f cb 00 00 00 08 00 00 00 85 00 53 00 61 00 6d 00 73 00 75 00 6e 00 67 00 20 00 53 00 53 00 44 00 20 00 38 00 35 00 30 00 20 00 45 00 56 00 4f 00 20 00 35 00 30 00 30 00 47 00 42 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 1f 03 12 0a 00 05 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 32 00 53 00 42 00 52 00 42 00 4e 00 4a 00 30 00 31 00 33 00 39 00 33 00 32 00 39 00 20 00 42 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 00 00 42 4f
Boot0006  USB HDD	BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0900)0000474f00004e4fe1000000080000009b005700440043002000570044003200300045005a00520058002d003000300044004300300042003000200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d0305060000000305060000007fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f00004e4fe200000008000000a00053005400320030003000300044004d003000300036002d00320044004d00310036003400200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d03050600000003050600000003110500017fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f00004e4fe200000008000000a00053005400320030003000300044004d003000300036002d00320044004d00310036003400200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d03050600000003050600000003110500027fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f00004e4fe200000008000000a00053005400340030003000300044004d003000300034002d00320043005600310030003400200030003100300033000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a0000000001010600001d03050600000003050600000003110500037fff040001045200ef47642dc93ba041ac194d51d01b4ce630003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300030003000300000007fff04000000424f
      dp: 05 01 09 00 02 00 00 00 00 / 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 / 7f ff 04 00
    data: 00 00 47 4f 00 00 4e 4f e1 00 00 00 08 00 00 00 9b 00 57 00 44 00 43 00 20 00 57 00 44 00 32 00 30 00 45 00 5a 00 52 00 58 00 2d 00 30 00 30 00 44 00 43 00 30 00 42 00 30 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f e2 00 00 00 08 00 00 00 a0 00 53 00 54 00 32 00 30 00 30 00 30 00 44 00 4d 00 30 00 30 00 36 00 2d 00 32 00 44 00 4d 00 31 00 36 00 34 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 03 11 05 00 01 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f e2 00 00 00 08 00 00 00 a0 00 53 00 54 00 32 00 30 00 30 00 30 00 44 00 4d 00 30 00 30 00 36 00 2d 00 32 00 44 00 4d 00 31 00 36 00 34 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 03 11 05 00 02 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f e2 00 00 00 08 00 00 00 a0 00 53 00 54 00 34 00 30 00 30 00 30 00 44 00 4d 00 30 00 30 00 34 00 2d 00 32 00 43 00 56 00 31 00 30 00 34 00 20 00 30 00 31 00 30 00 33 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 1d 03 05 06 00 00 00 03 05 06 00 00 00 03 11 05 00 03 7f ff 04 00 01 04 52 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 00 00 7f ff 04 00 00 00 42 4f

ls /boot/efi/EFI

 ξˆ€ $USER on Monday,16:24:08                                                                                                                               8.023s  CPU: 12.82% ο›œ RAM: 7/33GB 
 { ξ—Ώ home } ξŠ… ls /boot/efi/EFI
BOOT/  endeavouros/  EndeavourOS-grub/  EnOS-grub/  Microsoft/  systemd/

lsblk -f

sdb                                                                                  
β”œβ”€sdb1      ntfs         SSD     01D5DC44A173DEF0                                    
└─sdb2      vfat   FAT32         D6E8-2E3E                             472,9M     5% /boot/efi
1 Like

Remove these directories: endeavouros and EndeavourOS-grub in /boot/efi/EFI

Remove 0000 boot entry:

sudo efibootmgr -b 0000 -B

Reboot and check.

Directories removed.

 ξˆ€ $USER on Monday,16:56:04                                                                                                                                0.01s  CPU: 12.55% ο›œ RAM: 7/33GB 
 { ξ—Ώ bootο§ efiο§ EFI } ξŠ… ls
BOOT/  EnOS-grub/  Microsoft/  systemd/

Boot entry removed.
efibootmgr -v

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0004,0005,0006
Boot0001* EnOS-grub	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\ENOS-GRUB\GRUBX64.EFI)
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 3a 00 5c 00 45 00 46 00 49 00 5c 00 45 00 4e 00 4f 00 53 00 2d 00 47 00 52 00 55 00 42 00 5c 00 47 00 52 00 55 00 42 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
Boot0004* Windows Boot Manager	HD(2,GPT,1f808c1a-c85d-47fa-aa32-9e226f740296,0x21386000,0xf9fff)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)0000424f
      dp: 04 01 2a 00 02 00 00 00 00 60 38 21 00 00 00 00 ff 9f 0f 00 00 00 00 00 1a 8c 80 1f 5d c8 fa 47 aa 32 9e 22 6f 74 02 96 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 49 00 43 00 52 00 4f 00 53 00 4f 00 46 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 4d 00 47 00 46 00 57 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
    data: 00 00 42 4f
...

Basically theres is no changes for img:1 (still hitting it at random) and img:3 (still Two Windows + manjaro)
So far only img:2 has observable changes with now only two options : ENOS-GRUB & Windows Boot Manager :face_with_monocle:

I am sorry. I am running out of ideas.

Some last suggestions:

Go into UEFI settings and make sure CSM/Legacy boot mode is disabled
Double check if EnOS-grub is at the top of boot priority (which should be).

Boot up the system and post the output from the following. Perhaps it would give someone some clue:

sudo grub-mkconfig -o /boot/grub.grub.cfg

and post the URL you get from:

cat /boot/grub/grub.cfg | eos-sendlog

1 Like