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

grub
grub > setup (hd0)

now how could i install GRUB2 on harddisk?

link|improve this question

62% accept rate
feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.