Recovering Grub (menu.lst) after Windows Re-install

Reference: link

  • Boot the Desktop/Live CD. (Use Ubuntu 8.04 or later)
  • Open a terminal (Applications -> Accessories -> Terminal)
  • Start grub as root with the following command
    • sudo grub
  • You will get a grub prompt which we will use to find the root partition and install grub to the MBR (hd0)
    grub>
  • Type the following and press enter:
    find /boot/grub/stage1
  • If you get "Error 15: File not found", try the following:
    find /grub/stage1
  • Using this information, set the root device (fill in X,Y with whatever the find command returned):
    grub> root (hdX,Y)
  • Install Grub:
    grub> setup (hd0)
  • (In case you want to install GRUB to another drive (like hdX) use the above command as 'setup (hdX)' and then continue)
  • Exit Grub:
    grub> quit
  • Reboot (to hard drive). Grub should be installed and both Ubuntu and Windows should have been automatically detected.
  • 6. If, after installing grub, Windows will not boot you may need to edit /boot/grub/menu.lst

Leave a Reply