[CentOS-es] Borré /boot ¿Podría reinstalarlo?

Miguel A. Velasco miguel.suscripcion en gmail.com
Vie Mar 18 10:24:08 EDT 2011


Hola Oscar y gracias por tu ayuda. Creo que con yum reinstall no es 
posible reinstalar un Kernel. El man dice así:

reinstall   "Will  reinstall  the  identically  versioned  package as is 
currently installed.  This does not work for "installonly" packages, 
like Kernels. reinstall operates on groups, files, provides and 
filelists  just like the "install" command"

De hecho he probado el comando:

(15:19:40)[root-boot]#> yum reinstall kernel-PAE-2.6.18-194.32.1.el5
Loaded plugins: fastestmirror
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
  * addons: centos.mirror.xtratelecom.es
  * base: centos.mirror.xtratelecom.es
  * extras: centos.mirror.xtratelecom.es
  * rpmforge: ftp-stud.fht-esslingen.de
  * updates: centos.mirror.xtratelecom.es
Package kernel-PAE-2.6.18-194.32.1.el5.i686 is allowed multiple 
installs, skipping
Nothing to do

En cualquier caso, gracias por tu ayuda y saludos,

Miguel A. Velasco
Ing de Sistemas

El 18/03/2011 15:05, Oscar Osta Pueyo escribió:
> Hola,
>
> 2011/3/18 Miguel A. Velasco<miguel.suscripcion en gmail.com>:
>> Buenos días a todos, en un grave error esta mañana borré el directorio
>> /boot y con él la configuración del GRUP y los kernel instalados.
>> Conretamente borré esto:
>> removed `/boot/symvers-2.6.18-194.32.1.el5PAE.gz'
>> removed `/boot/symvers-2.6.18-53.1.21.el5.gz'
>> removed `/boot/initrd-2.6.18-92.1.10.el5.img'
>> removed `/boot/config-2.6.18-53.1.21.el5'
>> removed `/boot/config-2.6.18-164.11.1.el5PAE'
>> removed `/boot/vmlinuz-2.6.18-53.1.21.el5'
>> removed `/boot/symvers-2.6.18-92.1.10.el5.gz'
>> removed `/boot/initrd-2.6.18-92.1.22.el5PAE.img'
>> removed `/boot/vmlinuz-2.6.18-92.1.22.el5PAE'
>> removed `/boot/System.map-2.6.18-92.1.22.el5PAE'
>> removed `/boot/initrd-2.6.18-164.11.1.el5PAE.img'
>> removed `/boot/vmlinuz-2.6.18-164.11.1.el5PAE'
>> removed `/boot/vmlinuz-2.6.18-194.32.1.el5PAE'
>> removed `/boot/initrd-2.6.18-92.1.22.el5PAE_old.img'
>> removed `/boot/vmlinuz-2.6.18-92.1.22.el5'
>> removed `/boot/.vmlinuz-2.6.18-194.32.1.el5PAE.hmac'
>> removed `/boot/symvers-2.6.18-92.1.22.el5PAE.gz'
>
> Y...¿no sería posible recuperar todo esto reinstalando los paquetes
> "kernel-PAE" y "grub" con "yum reinstall"? Luego sería cuestión de ver
> con otro equipo que no falta ningún fichero importante y comprobar que
> es correcto /boot/grub/menu.lst.
>



Más información sobre la lista de distribución CentOS-es