Restore Grub2 from LiveCD / USB.

This week he installed Backtrack 4 en un Netbook Acer Aspire One ZG5, as I have to take advantage of the swap partition I made a partition with Gparted and then I did a manual installation by specifying the / Root and SWAP systems installed unspecified error on my part but problem solved, the consequence is that only came out at boot Backtrack 4 console solution within Backtrack 4,but the other option for it can not come in any other system with a LiveCD or USB.

1- Boot the LiveCD with USB

2- Open the console and type:
sudo fdisk-l (sample partitions)

2- Mount the partition with Ubuntu Linux installed (replace X by the number corresponding to the partition, for example if sda1, 1 would be the number to change by X):
sudo mount /dev/sdax /mnt (in / mnt mounting the partition where your Linux)

3- We proceed to mount the other devices:
sudo mount --bind /dev /mnt/dev

4- Root access to everything mounted
sudo chroot /mnt

5- This is the penultimate step and there's no need to change anything, as sda leave this without adding more:
grub-install --recheck / dev / sda

6- Reboot normally, since LiveCD.

7- Already in on your Ubuntu and seeing that everything is correct, open a console and update the Grub:
sudo update-grub2

If does not work then install:
sudo aptitude install grub

That's all for today.

2 Commentsto Restore Grub2 from LiveCD / USB.

  1. Wiward_X says:

    I'm interested in you to put some howto on adding a new kernel in Grub v2 thanks

  2. Tyree Munoz says:

    Many thanks for taking the time to examine this, I sense strongly about it and enjoy learning more on this matter. If possible, while you obtain knowledge, would you head updating your blog with far more details? It is extremely helpful for me.