Tips for Recover Grub Bootloader Ubuntu 9.10
The way to restore grub bootloader for Ubuntu 9.10, first you have to boot up ubuntu using the live CD then open a terminal and type,
sudo -i
This will make you as super user (root). If you think logging in as root is risky then don’t. What you have to change in the following commands is, you have to add “sudo” in front of each command
Now you have to identify the mounted partitions of your computer, to do that you have to enter the following command,
Type:
fdisk -l (or type sudo fdisk -l )
Then from that result you have to find out in which partition ubuntu is installed. (it could be /dev/sda1 , /dev/sda2 etc.)
And you mas remember if you have partitioned your HDD as root(/), home, boot etc. separately then you have to select the partition which is used as boot if not, that means you if you have just root(/) and home then select the partition which is used as root. For now I’ll take /dev/sda1 as my root partition.
Now you have to mount that partition, type:
mount /dev/sda1 /mnt (we are working as root)
Now its time to install the grub for that the command is:
grub-install -–root-directory=/mnt/ /dev/sda
You must check the above command carefully it says /dev/sda and not /dev/sda1. “sda” means the full hard disk where ubuntu is installed
and then you have to reboot the computer. Now its time for the final step, that is updating the grub and the command is :
sudo update-grub
Recover grub was finish, and you can used the computer normally.
Related posts:

