How to re-install GRUB bootloader on the Master Boot Record(MBR) in rescue mode
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
- Red Hat Enterprise Linux 3
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- GRUB
- Grub2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.