Linux boot loader corruption
Posted: Wed Aug 12, 2020 5:36 pm
The Bootloader seems to be corrupted and this did not passed the control from BIOS to bootloader where the system was stuck.
The following steps were taken to fix the issue.
1] Boot the system from rescue mode.
[ How to boot Red Hat Enterprise Linux to Rescue Mode for Data Collection (sosreport, vmcore, etc.) ](https://urldefense.com/v3/__https://acc ... XbzU7_7VAQ$ )
2] Backup the MBR and the grub files and MBR.
~~~
# mkdir /test
# dd if=/dev/sda of=/test/MBR.out bs=512 count=1 # cp -avR /boot/* /test ~~~
3] Install the bootloadloader.
~~~
# grub-install /dev/sda
Check the boot device.
# grep boot=/dev /boot/grub/grub.conf
~~~
4] Post reboot the system was up and running.
The following steps were taken to fix the issue.
1] Boot the system from rescue mode.
[ How to boot Red Hat Enterprise Linux to Rescue Mode for Data Collection (sosreport, vmcore, etc.) ](https://urldefense.com/v3/__https://acc ... XbzU7_7VAQ$ )
2] Backup the MBR and the grub files and MBR.
~~~
# mkdir /test
# dd if=/dev/sda of=/test/MBR.out bs=512 count=1 # cp -avR /boot/* /test ~~~
3] Install the bootloadloader.
~~~
# grub-install /dev/sda
Check the boot device.
# grep boot=/dev /boot/grub/grub.conf
~~~
4] Post reboot the system was up and running.