Is there a way to stop os-prober from detecting extra windows partition?
I had just 1 windows partition in grub menu, now I have 2, after recovering the thing from booting error
I need to make os-prober stop detecting the extra partition. Is there a way to do that, permanently? (So it won’t appear again after every grub update)
open grub file located in /boot/grub/grub.cfg
then search for menuentry, and remove the ones you want
update grub: sudo update-grub
reboot and dont mess it up
Generating grub configuration file …
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.
Found Windows 8 on /dev/sda1
Found Windows 8 on /dev/sda2
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Yes, it seems to be the case. I’m not sure what triggers os-prober to detect a partition as Windows or not. I have to read a little bit to clarify that. I will come back later to you with some answer
In the meantime, do both entries work? How did you fix the booting error, with Windows utilities?
if you have 2 boot windows partitions, then deleting one should fix it?
whats the output from, and use formatting, click this icon in editor: </> sudo parted -l && lsblk