Wednesday, August 17, 2011

Reinstall missing Grub after install Windows


When you are install windows after installing ubuntu linux version on your pc, no need to install ubuntu linux version again. Follow below instructions to recover grub easily.


1. Boot your computer from Ubuntu live CD


2. Go Places->My Computer


3. Click on the partition you installed ubuntu operating system. Then it will mount.


4. Get the terminal


5. Type this commands in the terminal


    $mount | tail -1


6. You will get result like below


    /dev/sda6 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=dev


7. Then type this


    $sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda


(bold texts must be the same)


8. Then Reboot the machine. Here is the command "sudo shutdown -r now" without quotes.


9. Now you can see the grub, but sometime your windows entry may not work. Then go to ubuntu, get the terminal, type this command. You have to provide your password here.


$sudo update-grub


10. End of Task...


Sinhala version

No comments :

Post a Comment