Remove Win7 reference in GRUB after update to Win 8.1 on dual boot machine

Greetings!

I have a laptop that I dualboot 13.2 and Windows 7. The windows 7 side has been giving me a lot of trouble, so I decided to upgrade it to Windows 8.1. I know that Microsoft wipes out the MBR, so I was prepared to not be able to log into the Linux side.

The DVD drive on the laptop is dying, so I was unable to run the boot repair ISO that I usually run. I found a thread that shows you how to repair the GRUB using the command line from within the rescue side of the 13.2 ISO, and I got it to work.

Upon the computer starting, the familiar OpenSUSE Grub menu appears, but it lists the 13.2 and Windows 7. When I select Windows 7, it flashes an error that it can’t find it, and after about 10 seconds, automatically loads the windows 8.1 and continues on.

My question is how can I update GRUB to drop the Win7 reference and instead have it load Win8?

Thanks!

Run this:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Or just enter YaST->System->Boot Loader and click on OK.

Btw, it is preferable (and the default) to have generic boot code in the MBR and install grub to the root partition.
Then a Windows upgrade cannot overwrite your grub.

That fixed it! Thanks…