Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to reinstall the Bootloader  (Read 3992 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
How to reinstall the Bootloader
« on: October 27, 2013, 02:14:32 pm »

In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or replaced. The following steps detail the process on how GRUB is reinstalled on the master boot record:

  • Boot the system from an installation boot medium.
  • 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.