Reinstalar GRUB en sistemas CENTOS (tambien para smart array de HP)

Publicado: agosto 10, 2011 en Uncategorized

Fuente: http://wiki.centos.org/TipsAndTricks/ReinstallGRUB

 

How to re-install bootstrap code (GRUB)

If you have repaired your system from a backup tape (by dump or tar for example), or have installed another OS such as one from Redmond that may have overwritten the master boot record (MBR), you will need to repair the bootstrap area.

 

Re-install bootstrap code (GRUB)

Please perform the following steps:

  1. Boot from CentOS installation disc (for example, CD #1 or DVD).
  2. Type “linux rescue” at the “boot:” prompt.
  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
    • If you wish to re-install GRUB to the PBR of Partition #2 on a SCSI or SATA disk (/dev/sda2):
      # grub-install /dev/sda2
    • If you wish to re-install GRUB to the MBR on an IDE disk (/dev/hda):
      # grub-install /dev/hda
    • If you wish to re-install GRUB to the MBR on a HP Smart Array disk (/dev/c0d0):
      # grub-install /dev/cciss/c0d0

 

Alternative Recovery from GRUB Issues – Super Grub Disk

Super Grub Disk has a variety of open source boot recovery tools. For CentOS legacy GRUB SuperGRUB works well.

Anuncios
comentarios
  1. […] Reinstalar GRUB en sistemas CENTOS (tambien para smart array de HP) (elfragmx.wordpress.com) […]

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s