I have a system with dual boot for Windows 7 and Ubuntu 12.04.
The system uses Grub
as its boot loader.
But, today by mistake, i shrank the Windows Volume and created a new Volume and all worked fine, except when i restarted to discover that boot-loader has gone wrong.
It displays:
error: no such partition
grub rescue>
I ran through google and several forums to finally discover many things.
Such as:
grub rescue> ls
(hd0) (hd0,msdos5) (hd0,msdos4) (hd0,msdos3) (hd0,msdos1)
Now, i can load back to grub-menu and boot into Ubuntu as well as Windows normally, but by fighting with grub-rescue as:
grub rescue> set root=(hd0,3)/boot/grub
grub rescue> set prefix=(hd0,3)/boot/grub
grub rescue> insmod normal
grub rescue> normal
Although, this takes to Grub-menu for choosing OS, but i want to get away with this.
How, can i fix the Grub to get back the screen as earlier? Probably, it requires some resetting in grub, which i can't figure out.
Please provide any method.
PS: try to suggest a method, that uses normal user account, as i have to go more for getting sudo
password.
Thanks.