How to restore Grub after installing windows (Linux Forms)




This page documents how to restore or recover the boot-loader (GRUB) after installing Windows. Some reasons to repair your boot-loader might include installing Microsoft Windows after you have installed Ubuntu, adding or removing a hard drive, or changing hard drive settings.
Note: this tutorial does not apply if you had installed Ubuntu inside Windows (via the Wubi installer). 


  1. Boot from an Ubuntu Live CD or Live USB


  1. Once up and running, Open a Terminal 


  1. Type sudo su (press enter after typing each command)
  2. Type fdisk -l 


  1. Note which device contains your Linux partition (IE: /dev/sda1) 


  1. Type sudo mount /dev/sdx# /mnt 
(replacing x# with your actual device and partition number)
  1. Type sudo grub-install --root-directory=/mnt/ /dev/sda



  1. After the above operation terminal shows "no error reported".
  2. Type reboot (to reboot your PC)

Make sure to remove your Live USB or CD. Upon reboot you should be 

presented with a GRUB menu with windows tabs.



N'joy.. 


Comments

Popular posts from this blog

Clonebot Technical Documentation

Run your apps in the system background

Self-Regulating Battery Charger Circuit