Lately I bought a new laptop – Lenovo Yoga 2 Pro 13" – Intel i5-4210U, 256 SSD.
I have tried to install Ubuntu 14.04 using these guides:
Ubuntu on Lenovo Yoga 2 Pro
http://peaceplantsandpushups.com/2014/03/12/22/
After I did step 7 in the second guide, I haven't succeeded to save, so I restarted my computer in order to do it again.
From this point, I couldn't boot into Ubuntu, and every time I try to reinstall Ubuntu I get this annoying error:
Unable to install GRUB in /dev/sda
Executing 'grub-install /dev/sda' failed.
This is a fatal error.
I tried to follow this guide:
"Unable to install GRUB in /dev/sda" when installing GRUB
But it isn't working. I have no idea how to proceed.
How do I fix this?
Best Answer
Solving 'grub-install /dev/sda' failed error.
sudo mount /dev/sdaX /mnt
# Make "X" the partition that has Ubuntu installed (i.e. /dev/sda2).for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt/$i"; done
sudo chroot /mnt
update-grub
grub-install /dev/sdX
(x is the hard drive that has linux installed (i.e. /dev/sda)update-grub
Reboot the system