After updating my UEFI through windows, it can’t detect my Linux boot partition and instead boots directly into windows. However, I can boot to my existing Linux installation through the live USB.
The KDE Partition Tool shows a mounted /boot/efi partition called SYSTEM_DRV formatted in Fat32 with a size of 260 MiB with bootable and esp flags. Secure boot was enabled after the update, so I disabled it again.
I’m using Manjaro KDE with dual boot, everything worked as expected before the update.
I get an error at grub-install ... that says /boot/efi doesn't look like an EFI partition. I booted directly from USB, and not via USB into the existing installation. Was that correct?
Sure, because you were using a chroot. But your error…
… might have been because the EFI partition wasn’t mounted. So try those commands again, but now just before typing the manjaro-chroot command, issue the following command too…
check if the efi partition for manjaro [fat32] is same as that of windows. twodifferent efi partition is not advisable. [that is… /boot/efi of manjaro should point to this partition]
if they are same, then all you had to do after windows update/upgrade is the boot of usb-manjaro and use chroot to install grub and update-grub. [obviously to follow the steps as mentioned in previous posts on how to]
i have broke windows and went for fresh install atleast 3/4 times and i do just this. [i happily triple boot my desktop with win10 / MX and Manjaro, where Manjaro grub is given charge to handle boot options and MX grub is installed it its root partition. /dev/sda1 is the efi]
I just want to be sure we are talking about the same. I’m not talking about grub menu, I mean your UEFI’s boot options (or BIOS’s boot options in the old language)
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Detected systems:
--> 0) ManjaroLinux
==> Select system to mount [0-0] :
1
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
# /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=A2EE-E4CA /boot/efi vfat umask=0077 0 2
UUID=fc4e7640-fc57-4c51-a7c7-a34f63c6d1cd / ext4 defaults,noatime 0 1
sudo manjaro-chroot -a ( type 1 if only one line 0 )
efibootmgr -c -d /dev/nvme0n1 -p 1 -L "Manjaro" -l "\EFI\Manjaro\grubx64.efi"
efibootmgr -v
exit ( for end chroot )
I made the UEFI update through an application from Lenovo, I think this was where the entry got deleted. I never had any issue doing Windows updates, but who knows…