Hi everyone,
I dual boot windows and manjaro on my computer which both are in the same hard disk. After some update on manjaro or windows, grub couldn’t find windows anymore. I did GRUB_DISABLE_OS_PROBER=false but still it can’t find. When I run sudo os-prober it returns nothing. I can boot into Windows by changing the boot order in the bios. Also when I run efibootmgr it sees the Windows. Below is the output of efibootmgr
Found initrd fallback image: /boot/initramfs-5.9-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
It's output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
finished
sudo grub-mkconfig didn’t worked so I tried the 2nd method and after doing that I got an error saying:
Generating Grub configuration file...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
I solved this problem by undoing sudo mv /etc/grub.d /etc/grub.d.old command. I reinstalled grub using grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck maybe this command was faulty and caused that problem. But in the end neither the first and second method solved the problem and grub still doesn’t see Windows
Okey I solved the problem by deleting grub and moving to rEFInd and it’s working properly. For the ones who have this problem and want to continue using grub I don’t know the solution.