Ubuntu: Install grub from live CD



Question:

I have installed my Ubuntu onto a partition on the same drive where my windows is. I would like to install GRUB, but cannot access the Ubuntu installation as Windows starts instead. I am in the USB Live Version trying to install grub but I get this:

grub-install dev\sda4

cannot create directory /boot/grub/i386-pc permission denied

Please help me install GRUB.


Solution:1

NO NEED TO RE INSTALL!

You can use what is called a chroot to access your installed partion from a live cd. http://karuppuswamy.com/wordpress/2010/06/02/how-to-chroot-to-ubuntu-using-live-cd-to-fix-grub-rescue-prompt/ Basically how it works is you boot of the live cd and mount your ubuntu install. You run chroot, and you are dropped into a command prompt for the installed ubuntu instance instead of the cd. The guide above should tells you what you need to do.


Solution:2

I thought that grub was installing automatically... Try re-installing. At the Ubuntu Set up choosing thing (where you can select dual-boot or replace windows) select the option with the gear. Now select the Ubuntu partition, remove it and re-create it. Re-install Ubuntu and grub will install automatically (I think, it did so with my installation).

The option with the gear is the bottom one (in ubuntu 12.04)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »