How to re-install GRUB bootloader on the Master Boot Record(MBR) in rescue mode

Solution Verified - Updated -

Issue

  • I had to restore my system and data partitions from tape after a crash. Why does my Red Hat Enterprise Linux system only shows a black screen after POST?
  • Why does my Red Hat Enterprise Linux 6 system drops to GRUB rescue prompt on boot?
  • How to reinstall grub2 into the MBR on Red Hat Enterprise Linux 7
  • I re-installed Windows on my server and now I can no longer boot to Red Hat Enterprise Linux.
  • On attempting to re-install grub I get the following error "Error 5: Partition table invalid or corrupt"
  • When I do grub-install I get error as "Error 12: Invalid device requested"

Environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In