Tuesday, January 22, 2013

Repairing Corrupted GRUB in Linux

1. Insert the dvd(or 1st cd ) of RHEL5.
2. when your linux cd boot your pc and you have a prompt like this 

boot:_

Write linux rescue command here

boot: linux rescue 

3. Now select the language and other appropriate options

4. Then select continue to mount your partition in read and write mode.

5. After mounting your partition in read and write mode type the command given below when you have sh shell prompt 

chroot /mnt/sysimage 

6. Now type this command 

grub-install /dev/hda (if you have sata hard disk then use sda in place of hda)

7. Type exit 

8. Type exit again 

9. System will Reboot !!! enjoy

No comments:

Post a Comment