I have installed Window 7 on Ubuntu 14.04.1 pre installed Laptop. Then Windows written GRUB with it's own BOOTLOADER. Now it's only booting Windows 7.
I have done these..
Booted in live mode(try mode). Then sudo mount /dev/sda2 /mnt
(My Ubuntu partition),Then sudo chroot /mnt
Then grub-install /dev/sda
, Which was a successful grub installation, Then update-grub
.
Successfully detected all bootloader including Windows 7(Loader), But when I rebooted it's again going straight to Windows 7. What to do ?
I love boot repair but ONLY as a live CD. The one and only time I ever installed it on an installation intending to fix that installation, it rendered the installation completely unbootable, so I beg you, please do not install boot repair on the drive you are trying to fix. Always run boot repair from a live booting boot repair cd or self booting usb flash drive.
Pulled from here
2nd option : install Boot-Repair in Ubuntu
either from an Ubuntu live-session (boot your computer on a Ubuntu live-CD or live-USB then choose "Try Ubuntu") or from your installed Ubuntu session (if you can access it)
connect to the Internet
open a new Terminal, then type the following commands (press Enter after each line):
For Ubuntu 12.04
For Ubuntu 14.04 and newer
then type:
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)
After using the tool in an installed Ubuntu session, remove the PPA from your Software Sources.
Using Boot-Repair
Recommended repair launch Boot-Repair from either :
the Dash (the Ubuntu logo at the top-left of the screen)
or by typing '
boot-repair
' in a terminalThen click the "Recommended repair" button. When repair is finished, note the URL (paste.ubuntu.com/XXXXX) that appeared on a paper, then reboot and check if you recovered access to your OSs.
If the repair did not succeed, indicate the URL to people who help you by email or forum.