Friday, March 13, 2015

How To install/repair grub on RHEL 6

How To install grub.
If you have corrputed grub, you can install it using the follwing instructions.

1. Access to OS boot image or CD.
2. Access to console if virtual environment.

1. Boot your system using your boot (1st cd/DVD/Image) image.
2. Boot your system and go to rescue mode

linux rescue

Note: Make sure you have same version of OS copy that of the installed OS.
3. Just follow the prompt.

The rescue environment will try to find the Linux installation and mount it under /mnt/sysimage.

Your root fs is mounted at /mnt/sysimage and cd to it.
# cd chroot /mnt/sysimage

if you know your disk, just run the grub install command.

grub-install /dev/sda

exit from the prmpt and boot the system.

9. System will Reboot !!! enjoy

No comments:

Post a Comment