Friday, November 04, 2011

REPAIRING GRUB IN UBUNTU 10.04 +++





How to repair GRUB in ubuntu 11.10 using a live CD.

  1.  Boot in your computer using a live ubuntu 11.10 cd.
  2. 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: