grub rescue with Windows 8.1 dualboot
Hi,
I was running Windows 8.1 (sda) and Ubuntu (sdb) as dualboot (one physical disc, splitted when the Ubuntu was installed). Now I have erased the Ubuntu and installed the Fedora instead.
And I'm getting:
> error: no such device: 58ABF29C...
grub rescue>
grub rescue> ls
returns this:
(hd0) Filesystem is unknown
(hd0,msdos5) ext2
(hd0,msdos2) Filesystem is unknown
(hd0,msdos1) Filesystem is unknown
(hd1) Filesystem is unknown
(hd1,msdos3) ext2
(hd1,msdos2) Filesystem is unknown
(hd1,msdos1) ext2
If I understood correctly, the problem is that the disc partitions are "renamed/renumbered" when I have erased the Ubuntu.
How can I restore the grub?
Thank you
PS: and of course I need to keep the partition with Windows, which I'm not able to boot in now.