How to repair GRUB in ubuntu 11.10 using a live CD.
- Boot in your computer using a live ubuntu 11.10 cd.
- Fire up the terminal and type:
sudo su
This ensures that you are the root user while making this changes.
3.Type fdisk -l and note the partition containing Ubuntu.It should be something like " /dev/sdaXXX" with an ext4 extension.
4.The type mount /dev/sdaXX /mnt
This mounts the ubuntu partition
5.Type the following commands noting the spaces.
a)mount --bind /dev /mnt/dev
followed by.
b)mount --bind /proc /mnt/proc
6.copy the resolv.conf file by typing in the following command.
cp /etc/resolv.conf /mnt/etc/resolv.conf
7.Then
chroot /mnt
8.Install grub by
grub-install --recheck /dev/sdY(Replace Y with your actual hard disk)
9.Update grub
update-grub
10.Re start your computer
reboot
11.You can now enjoy using your computer if everything went correctly.
No comments:
Post a Comment