How to restore grub in Ubuntu 10.10
Ubuntu 10.10 makes use of the Grub2 which is considered to be the default boot loader for Ubuntu 10.10. Grub2 is the latest upgraded version compared to the previous Grub version. The new version comes with a lot of increased performance and substantial improvements. The normal functions that Grub takes care of are the transfer of user inputs to the operating system kernel and also the representation of the menu. The software is provided for free.
One of the significant advantages of the Grub2 is the introduction of a renewed file structure. It also comes with latest new generation themes. The menu customization is also possible in Grub2. It also arrives with advanced graphical boot menu assistance as well as a much improvised splash capability. It also makes use of Non-x86 platform support.
The restoration of Grub in the Ubuntu 10.10 has to be done by following a number of steps.
Boot the system with Ubuntu 10.10 Linux after reinstallation since the mbr has been rewritten. So for renewing the grub2 boot list the following command has to be typed. The command is;
In the grub menu, select the boot up Ubuntu. For installing the Grub in mbr type the following command as
sudo grub-install /dev/ sda
Boot up Ubuntu 10.10 with a LiveCD.
Open Terminal page which is present under the accessories option in the Applications category.
In the terminal page, type the command as
sudo –i mount/ dev /sda7 /mnt mount/ dev/ sda6/ mnt/ boot grub-install –root-directory=/mnt/ / dev/ sda
The command specifies the boot partition that is represented by sda6 and the Ubuntu partition is represented by sda7.
Incase the most important grub.cfg file seems to be missing, we can retrieve it by giving the following command;
mount –bind /proc/ mnt/ proc mount –bind/ dev/mnt/ dev mount –bind/ sys/ mnt/ sys chroot /mnt update-grub
Further type the following command as
umount/ mnt/ sys umount/mnt/ dev umount/ mnt/ proc
The cd or USB has to undergo booting by typing the following commands in the Grub menu by selecting C from the grub menu. The command is given by;
grub>find /boot/grub/core.img grub>root (hdx, y)
This command enables the displaying of the previous command as the specified output.
grub>kernel /boot/grub/core.img grub>boot
These commands enables by taking you to the Grub2 menu function where you will have to select to boot up Ubuntu 10.10.
Finally for the restoration of the Grub in Ubuntu 10.10, the following command has to be typed which is;
sudo grub-install / dev/ sda.
The grub has been successfully restored in Ubuntu 10.10.