Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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