I just installed Windows 8.1 on my system. After installing windows as always grub was replaced with windows bootloader. So I booted my fedora live USB and tried to restore the grub. The installation was sucessfull and it detected all my currently installed systems(Windows,Fedora24,Ubuntu16.04). After rebooting I was dropped into grub rescue. So I typed the following.
After that I was given access to grub again but this time with all the OS in the list including the newly installed Windows8.1. Is there any way to fix this,cause everything is working fine just at every boot I need to type the above commands.
UPDATE : I kind of screwed up I generated
grub2-mkconfig -o /boot/grub2/grub.cfg
the grub now loads fine but cannot detect Ubuntu.