Home > FAQ & Tip > Restore GRUB menu after Windows installation

Restore GRUB menu after Windows installation

November 2nd, 2007 Leave a comment Go to comments

[ This post is duplicated to updated version at 2008/06/06/restore-grub-after-installing-windows ]

From my experience, when I format my Windows I lost my Grub boot menu at the same time. Before I have this solution, I usually reinstall everything all over again. Now that I want to keep things running for a long term, even my windows need to be formatted I still have my Linux OS bootable without losing anything. Below is the solution.

If you have similar scenario follow the rest of this post, I will show you trick and tools will be the solution for you

Tool

  • Linux Live CD

Restore Grub

  • Reboot your computer with Linux Live CD
  • After Live session user has started
  • Go to Applications > Accessories > Terminal
  • On command line type

    grub

  • At the grub prompt, type

    find /boot/grub/stage2

  • This will return something like
    (hd0,2)

    the number could be different with different PC. user the same number in the next step

  • To setup the boot partition boot type
    root (hd0,2)

    this is the hard drive and the partition your Linux is installed

  • To configure grub type

    setup (hd0)

  • Done. You can exit with command

    quit

Categories: FAQ & Tip
  1. No comments yet.