How can I repair grub? (How to get Ubuntu back after installing Windows?)
I recently installed Ubuntu 12.04 LTS alongside Windows 7 using Ubuntu's Startup disk creator and installation completed without any difficulties or errors.
Now when I try to boot, it directly boots with Windows and shows no option to choice as to which Operating System to load. But when I boot using that same pen drive with which I installed Ubuntu, it shows an OS selection screen.
I also tried the command
sudo gedit /etc/default/grub &
sudo update-grub and I see "Found windows 7(loader) on /dev/sda2" and "Found windows 7(loader) on /dev/sda3" messages while running the later command, but still the same problem persists.
What should I do in order to get the OS selection screen. Please help me.