I installed Leap 15.1 with the gnome desktop on my laptop which had Windows 10 on it. 10 was an “upgrade” from Windows 7 which is no longer on my system. I specifically wanted to have the system dual boot between 10 and Leap 15.1. This is not a UEFI system if that makes a difference.
I have three entries in the Grub2 boot menu:
Leap 15.1
Windows 10
Windows 7
If I select the 7 entry, it fails - which it should since 7 is no longer on the PC. The other two entries work without problems as I wanted.
I have searched around and I have not found anything recent that seems to describe how to delete unwanted or bad Grub2 boot menu entries. The boot screen itself has the edit option, however, it does not appear that I can delete an entry using that menu - and I really don’t know the emacs commands to do so. In the past, it appears that I could have gone into YaST to delete entries, but I have tried that and that method appears to be gone.
What is the preferred procedure to delete unwanted/bad entries from the Grub2 boot menu?
Yast-boot loader should allow removal I believe, but the reason Win7 is there is probably that there are still entries in the EFI boot partition (mounted at /bootEFI in Linux) Also there may be entries still hanging around in the UEFI flash memory, read **man efibootmgr **for detail on viewing adding and removing entries. Once the offending entries are removed in Yast-boot loader make a null edit ie change something and then change it back accept and it should drop the nonexistent OS. Be sure the prob foreign OS box is check. should be by default
I agree! been there, tried some of that on a ‘converted to WIn10’ Windows 7 laptop. Too much trouble,and then when I did have what I thought was a success. next boot, Grub2 still had Windows 7 in the menu.
I currently get two entries for Windows 7 – one for “/dev/sda2” and one for “/dev/sda3”. They both boot the same Windows 7. Maybe I should try that trick.