This post has already been read 693 times!

Re-install bootstrap code (GRUB)

Please perform the following steps:

  1. Boot from CentOS installation disc (for example, CD #1 or DVD).
  2. For CentOS-4 or CentOS-5 type "linux rescue" at the "boot:" prompt. For CentOS-6 pick "Rescue installed system" from the boot menu.

  3. Mount all filesystems in read-write mode.
  4. Change root to real root ('/') on your hard disk:

    # chroot /mnt/sysimage
    

  5. Re-install bootstrap code (GRUB).
    • If you wish to re-install GRUB to the MBR on a SCSI or SATA disk (/dev/sda):

      # grub-install /dev/sda
      
  6. If you will have the following message  GRUB error: sda does not have any corresponding BIOS drive - then you must try with grub-install --recheck /dev/sda
  7. the system will probing devices in BIOS drivers. The contents of the devive map /boot/grub/device.map.
  8. after this remake #grub-install /dev/sda

Comments are closed.

Post Navigation