Foros del Web » Administración de Sistemas » Unix / Linux »

Nuevo kernel no aparece en lilo

Estas en el tema de Nuevo kernel no aparece en lilo en el foro de Unix / Linux en Foros del Web. Hola Por error me instalé en Debian el kernel linux-image-2.6.26-2-486. He estado trabajando con él por algún tiempo y ayer me di cuenta que tenía ...
  #1 (permalink)  
Antiguo 21/03/2010, 15:39
 
Fecha de Ingreso: agosto-2003
Mensajes: 174
Antigüedad: 20 años, 7 meses
Puntos: 3
Nuevo kernel no aparece en lilo

Hola

Por error me instalé en Debian el kernel linux-image-2.6.26-2-486. He estado trabajando con él por algún tiempo y ayer me di cuenta que tenía instalado el 486 en vez de el 686 así que instalé el mas correcto linux-image-2.6.26-2-686 junto con sus headers.

apt-get install linux-image-2.6.26-2-686 linux-headers-2.6.26-2-686

Y luego naturalmente actualizar lilo
lilo -v

Y me encuentro con que no aparece la entrada nueva en lilo. El ordenador funciona bien, pero sigue con el 486 y no aparece opción para el 686 aunque compruebo que están debidamente instalados
dpkg -l linux-image*
y obtengo
Cita:
||/ Nombre Versión Descripción
+++-===================================-===================================-================================================== ====================================
un linux-image <ninguna> (no hay ninguna descripción disponible)
un linux-image-2.6 <ninguna> (no hay ninguna descripción
ii linux-image-2.6.26-2-486 2.6.26-21 Linux 2.6.26 image on x86
ii linux-image-2.6.26-2-686 2.6.26-21lenny4 Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4
Así que no entiendo cual es la causa por la que no puedo usar el kernel que me he instalado. Por mucho lilo que haga no sale la opción en el menú.

¿alguna idea?
  #2 (permalink)  
Antiguo 22/03/2010, 13:47
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Nuevo kernel no aparece en lilo

¿cat /etc/lilo.conf?
  #3 (permalink)  
Antiguo 22/03/2010, 16:16
 
Fecha de Ingreso: agosto-2003
Mensajes: 174
Antigüedad: 20 años, 7 meses
Puntos: 3
Respuesta: Nuevo kernel no aparece en lilo

Cita:
# Automatically added by lilo postinst script
large-memory

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt' (if you have created it), or |
# | install a new kernel. The computer will most likely fail to |
# | boot if a kernel-image post-install script or you don't |
# | remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/sda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/sda2

# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#


# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# If you used a serial console to install Debian, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Windows

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

initrd=/initrd.img

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

initrd=/initrd.img.old


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3
other=/dev/sda1
label=Windows
# restricted
# alias=2
  #4 (permalink)  
Antiguo 22/03/2010, 19:15
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Nuevo kernel no aparece en lilo

Muy bien, todo parece correcto.
Parece que al instalar el nuevo linux el proceso de instalación no lo puso como reemplazo del otro.

Veamos, el archivo menciona dos archivos: /vmlinuz y /vmlinuz.old
Estos archivos se corresponden a las opciones "Linux" y "LinuxOLD" del menú de LILO.
Ahora, ¿cuál es el que querés y cuál es el otro? Para averiguarlo te sugiero escribir esto en una consola:
Código:
file /vmlinuz /vmlinuz.old
file puede obtener mucha información sobre el archivo, seguramente puedas saber cuál es cuál a partir de eso.


Saludos.
  #5 (permalink)  
Antiguo 23/03/2010, 15:13
 
Fecha de Ingreso: agosto-2003
Mensajes: 174
Antigüedad: 20 años, 7 meses
Puntos: 3
Respuesta: Nuevo kernel no aparece en lilo

Muchas gracias AlvaroG. No había caído en sacar información de los ficheros vmlinuz y vmlinuz .old porque dí por supuesto que eran los mismos que tenía antes.

Osea que antes de instalar ese kernel yo ya tenía esas dos entradas y como despues de instalar y pasar lilo vi las dos entradas pensé que eran las mismas; sin embargo al hacer file /vmlinuz y /Ivmlinuz.old me dice que son enlaces a linux-image-2.26-2-486 y a linux-image-2.26-2-686.

Osea que no se bien como pero linux.old contiene el kernel instalado 2.6.26-2.686 y al arrancar desde ese ciertamente veo que ya estoy trabajando con los dos núcleos
cat /proc/cpuinfo | grep processor | wc -l

Que es lo que en esencia me preocupaba pues sin saberlo estaba trabajando con un solo procesador por tener instalado por error el 486 en vez de el 686.

¡Muchas gracias!
  #6 (permalink)  
Antiguo 23/03/2010, 18:42
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Nuevo kernel no aparece en lilo

Excelente
Nada más quería agregar que la funcionalidad que te permite trabajar con dos (o más) núcleos se llama SMP (Simmetric Multi-Processing o algo así), y no tiene que ver con el procesador para el cual el kernel esté optimizado. Se puede tener un linux optimizado para 486 que utilice SMP.


Saludos.
  #7 (permalink)  
Antiguo 24/03/2010, 07:36
 
Fecha de Ingreso: agosto-2003
Mensajes: 174
Antigüedad: 20 años, 7 meses
Puntos: 3
Respuesta: Nuevo kernel no aparece en lilo

Bueno, esta es una duda que tengo.

Cuando tengo el kernel 486 si yo hago cat /proc/cpuinfo | grep processor | wc -l me dice que solo ve un procesador. Si hago eso mismo con el kernel 686 ya ve los dos procesadores.

Entiendo que si los está usando aunque no eficientemente. Obviamente SMP hace que trabajen de forma simétrica, pero no acabo de ver la ventaja o desventaja. Quiero decir que no me importa recompilar el kernel si hace falta para añadirle algún módulo adicional si me compensa, pero no tengo claro que voy a ganar realmente con lo que tengo ahora. Una cosa es que el kernel solo vea un procesador como ocurría antes y otra que esté sacando el máximo provecho de los dos nucleos.

Este es un tema del que no conozco nada.

Un saludo
  #8 (permalink)  
Antiguo 24/03/2010, 09:54
AlvaroG
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Nuevo kernel no aparece en lilo

Solamente quería mencionar que lo que te determina que el kernel vea un núcleo o todos los que tengas no es que sea 486 o 686, sino que tenga soporte para SMP.

Seguramente en Debian se cumpla que el kernel para 486 no soporta SMP, y el 686 sí
  #9 (permalink)  
Antiguo 24/03/2010, 18:58
 
Fecha de Ingreso: agosto-2003
Mensajes: 174
Antigüedad: 20 años, 7 meses
Puntos: 3
Respuesta: Nuevo kernel no aparece en lilo

ah ya entiendo.

¡Muchas gracias!

Etiquetas: kernel, lilo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:57.