Can not update-grub

I accidently deleted EFI partition and I can not boot anymore. I tried to recover with this topic (Deleted efi partition - #3 by Bitmap), but when I want to run update-grub, I get an error

[manjaro ~]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda4]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# grub-install --recheck --no-rs-codes
Installing for x86_64-efi platform.
Installation finished. No error reported.
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

Any idea?

I think:

You deleted the EFI partition, reformated it and now it has a different UUID.
blkid and then put the new UUID to etc/fstab.

1 Like

I think I did. Here is the full flow:

Create partition with KDE Partition Manager like

run:

sudo su -                                                                                      ✔ 
[manjaro ~]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda4]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# nano /etc/fstab

run

[manjaro /]# grub-install --recheck --no-rs-codes
Installing for x86_64-efi platform.
Installation finished. No error reported.
[manjaro /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# 

I realized that what I wrote was largely incorrect and rubbish - not good advice
so I deleted it - sorry for having wasted your time.

You did run it.
TBH, to me that all looks like this all worked. Despite the errors displayed.

Perhaps one of these, booted from USB-Stick can help?

Google for them:

boot-repair-disk-64bit.iso
systemrescue-9.04-amd64.iso

I use ventoy that you can find with pamac to have all these on my rescue USB-Stick.

Not really a solution, but I ended up installing Manjaro fresh with GUI. But thanks anyway for your effort.