Hi there.
I had an issue in windows 10 and I had to re-install it. Not a big deal.
After reinstalling it, I boot into a live usb and follow the proper procedure to reinstall grub back to /dev/sda. Everything is fine here too.
Now grub menu properly boots on 'opensuse tumbleweed' (sda4) and on 'Windows 10 (on /dev/sda2)', as expected.
What bothers me is there is now 2 entries for windows 10, and this another one didn't work, really. If selected it brings a windows fix mode or something.
This extra wrong menu entry is related to the boot windows auxiliary partition (/dev/sda1) which is needed to windows to boot, but it shouldn't be in the grub menu.
Before windows re-install, grub used to have only one windows 10 menu entry (/dev/sda2).
How can I rid of this extra menu entry ?
I guess (just a guess) some left over file from previous installation is confusing os_prober somehow. But I have no idea what it is or how to fix.
Code:
kimera:/home/miguel # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-5.7.7-1-default
Found initrd image: /boot/initrd-5.7.7-1-default
Found linux image: /boot/vmlinuz-5.7.5-1-default
Found initrd image: /boot/initrd-5.7.5-1-default
Found Windows 10 on /dev/sda1
Found Windows 10 on /dev/sda2
done
kimera:/home/miguel #
section of /boot/grub/grub.cfg created above only showing the os_prober_section
Code:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CEFE7B31FE7B1147' {
savedefault
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' CEFE7B31FE7B1147
else
search --no-floppy --fs-uuid --set=root CEFE7B31FE7B1147
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows 10 (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-0A1CA2CC1CA2B1DD' {
savedefault
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 0A1CA2CC1CA2B1DD
else
search --no-floppy --fs-uuid --set=root 0A1CA2CC1CA2B1DD
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
PS: I've added
Code:
GRUB_OS_PROBER_SKIP_LIST="CEFE7B31FE7B1147@/dev/sda1"
to /etc/default/grub and it works. grub2-mkconfig now ignores /dev/sda1.