Home > Linux > Reinstalling the Boot Loader on Linux Red Hat server

Reinstalling the Boot Loader on Linux Red Hat server

April 16th, 2009 Leave a comment Go to comments

I had server that rebooted and then was hanging at the GRUB line and was not booting, so I did decide to reinstall grub which seems like it did help. Here is the procedure that I did to get it boot again:

Reinstalling the Boot Loader
In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or replaced by other operating systems.
The following steps detail the process on how GRUB is reinstalled on the master boot record:
* Boot the system from an installation boot medium (CDROM or DVD)
* Type linux rescue at the installation boot prompt to enter the rescue environment.
* Type chroot /mnt/sysimage to mount the root partition.
* Type /sbin/grub-install /dev/sda to reinstall the GRUB boot loader, where /dev/sda is the boot partition.
* Review the /boot/grub/grub.conf file, as additional entries may be needed for GRUB to control additional operating systems.
* Reboot the system.

Done, system working again.

Categories: Linux Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.
*
Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 3,198 bad guys.

Powered by WP Robot

Stop SOPAPowered by Yahoo! Answers