Monday, June 21, 2010

How To Repair Corrupted Grub of RHEL 5

Hi students,

As you are bit in touch with linux and you want to install linux but some times when you install linux and you get some Bootmanager is corrupted or grub > error when you dual boot your linux with any other windows os .So today i will let you know how you can remove this error and boot your both the OSes.


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

4 comments:

  1. Its ok buddy if u want more help post here your question.

    ReplyDelete
  2. Dear sir
    Give me step to format my pen drive in rhel5.


    Nirmal Singh

    ReplyDelete
  3. As your pen drive is fat supported so use mkfs.vfat command.

    ReplyDelete