Error intentando reinstalar mi grub desde el rescue cd.

 

Los pasos seguidos son

 

root@ubuntu:/# vgchange -a y
2 logical volume(s) in volume group «VolGroup00» now active
root@ubuntu:/# mount /dev/VolGroup00/LogVol00 /mnt/
root@ubuntu:/# mount /dev/sda1 /mnt/boot/

root@ubuntu:/# mount –bind /dev /mnt/dev
root@ubuntu:/# mount –bind /proc /mnt/proc
root@ubuntu:/# chroot /mnt
[root@ubuntu /]#  grub-install /dev/sda

/sbin/grub: Not Found.

 

Intento saliendo del chroot e indicandole directamente el directorio.

Para salir del chroot debemos usar el Ctrl-D

 

sh-3.2# grub-install –root-directory=/mnt/sysimage /dev/sda3
/sbin/grub: Not found.

Creo un enlace simbolico aunque esto ya aviso que no era el problema 🙂

 

ln -s /usr/sbin/grub /sbin/grub

Hay un bug con este mismo error  https://bugzilla.redhat.com/show_bug.cgi?id=429785

 

En mi caso solo fue un fallo en la ruta de instalacion.

 

 

Solution

root@ubuntu:/# grub-install –root-directory=/mnt/ /dev/sda
Installation finished. No error reported.

 

Documentacion oficial de Ubuntu para hacer una reinstalacion del grub

 

Documentacion de instalar Grub en Centos

 

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

  •  

    Por admin

    Deja una respuesta

    Ads Blocker Image Powered by Code Help Pro

    Ads Blocker Detected!!!

    We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

    Powered By
    Best Wordpress Adblock Detecting Plugin | CHP Adblock