Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

during moving my root partition, i used the old grub and installed the old grub on harddisk:

grub > setup (hd0)

now how could i install GRUB2 on harddisk?

share|improve this question
up vote 1 down vote accepted

The easiest way is to boot to a Linux installation that has Grub2, and run its grub-install command, probably as grub-install /dev/sda.

If you're having trouble booting your existing installation, try a rescue/live Linux on CD or USB. Many distributions' install disk are capable of restoring the bootloader. An OS-agnostic rescue disk for Grub2 is SuperGRUB2Disk.

The Ubuntu wiki has some information on reinstalling Grub2 which may be useful even if you're not running Ubuntu. There is now an official Grub2 manual, as well.

share|improve this answer
many thanks. the reference to GRUB2 and using live CD helped me. – Alexar Aug 29 '10 at 18:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .