On Fri, Nov 4, 2016 at 6:31 PM, Carlos E. R.
On 2016-11-04 23:17, Greg Freemyer wrote:
I've got a PC that used to dual boot with openSUSE and Windows.
The current user of the PC decided they only wanted Windows so they blew away the openSUSE partition. Not surprisingly, it no longer boots in Windows via the menu. And openSUSE is no longer and option.
It now boots up to grub-rescue.
Then this series of commands works:
set root=(hd0,5) set prefix=(hd0,5)/boot/grub2 insmod normal normal
What command can I run inside grub-rescue to save that root and prefix?
Presumably that partition contained grub.
I would instead find out the partition layout. For instance, "fdisk -l". I would consider installing a generic mbr code and mark the windows partition as bootable. You can do that from a Linux rescue disk. MsDos has/had a program that does it. "fdisk /fixmbr" perhaps.
I think it still does, The problem is it used to be partition 6, so grub starts up with: root=(hd0,6) etc. So, I've still got a valid grub partition, the only problem is the partition number changed from 6 to 5. Once the normal grub menu shows up, I can select Windows and boot on up. I can experiment with fdisk /fixmbr, but I'd prefer to just repair the grub setup. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org