I bought a HP laptop with windows 7. After I installed Ubuntu 15.04 desktop. But after restarting only it boot with windows 7 only. How can I get both Windows 7 and Ubuntu after booting the laptop.
Asked
Active
Viewed 24 times
0
-
1possible duplicate of Ubuntu won't boot with Windows7 – karel Jun 01 '15 at 08:51
-
Use the boot-repair tool. see http://askubuntu.com/questions/153986/ubuntu-wont-boot-with-windows7 – Ron Jun 01 '15 at 09:21
1 Answers
1
You can do this rescuing grub with live USB of ubuntu.
Just make a live usb/CD of your ubuntu version and run it in 'Try Now' mode. Then open the terminal and insert these commands in sudo mode :
Get appropriate sda of your ubuntu partition and then :
sudo mount /dev/sdXY /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub
exit
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt
This should work, I guess.

Ben
- 623
- 5
- 14

shreyans800755
- 41
- 6