Kernel + Grub 2

Guido Ignacio guidoignacio en gmail.com
Lun Ene 18 23:39:02 GMT 2010


El 18 de enero de 2010 20:02, Guido Ignacio <guidoignacio en gmail.com>escribió:

> Esto de la nueva versión de Grub me complica la vida ja!
>
> Voy con mi problema, tuve una actualización entre ellas el kernel
> (2.6.31-17):
>
> $ dpkg --get-selections | grep linux-image
> linux-image-2.6.31-16-generic install
> linux-image-2.6.31-17-generic install
> linux-image-generic install
>
>
> Ahora bien, cuando inicia el grub no me muestra el nuevo
> kernel (2.6.31-17).
> Les muestro la parte del menu.lst:
>
> 133 title           Ubuntu 9.10, kernel 2.6.31-17-generic
> 134 uuid            f1662bba-976e-40d8-acb2-2de433a9a688
> 135 kernel          /boot/vmlinuz-2.6.31-17-generic
> root=UUID=f1662bba-976e-40d8-acb2-2de433a9a688 ro quiet splash
> 136 initrd          /boot/initrd.img-2.6.31-17-generic
> 137
> 138 title           Ubuntu 9.10, kernel 2.6.31-17-generic (recovery mode)
> 139 uuid            f1662bba-976e-40d8-acb2-2de433a9a688
> 140 kernel          /boot/vmlinuz-2.6.31-17-generic
> root=UUID=f1662bba-976e-40d8-acb2-2de433a9a688 ro  single
> 141 initrd          /boot/initrd.img-2.6.31-17-generic
> 142
> 143 title           Ubuntu 9.10, kernel 2.6.31-16-generic
> 144 uuid            f1662bba-976e-40d8-acb2-2de433a9a688
> 145 kernel          /boot/vmlinuz-2.6.31-16-generic
> root=UUID=f1662bba-976e-40d8-acb2-2de433a9a688 ro quiet splash
> 146 initrd          /boot/initrd.img-2.6.31-16-generic
> 147
> 148 title           Ubuntu 9.10, kernel 2.6.31-16-generic (recovery mode)
> 149 uuid            f1662bba-976e-40d8-acb2-2de433a9a688
> 150 kernel          /boot/vmlinuz-2.6.31-16-generic
> root=UUID=f1662bba-976e-40d8-acb2-2de433a9a688 ro  single
> 151 initrd          /boot/initrd.img-2.6.31-16-generic
> 152
> 153 title           Chainload into GRUB 2
> 154 root            f1662bba-976e-40d8-acb2-2de433a9a688
> 155 kernel          /boot/grub/core.img
> 156
> 157 title           Ubuntu 9.10, memtest86+
> 158 uuid            f1662bba-976e-40d8-acb2-2de433a9a688
> 159 kernel          /boot/memtest86+.bin
>
>
> Intenté hacer un update-grub:
>
> $ sudo update-grub
> Searching for GRUB installation directory ... found: /boot/grub
> Searching for default file ... found: /boot/grub/default
> Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
> Searching for splash image ... none found, skipping ...
> Found kernel: /boot/vmlinuz-2.6.31-17-generic
> Found kernel: /boot/vmlinuz-2.6.31-16-generic
> Found GRUB 2: /boot/grub/core.img
> Found kernel: /boot/memtest86+.bin
> Updating /boot/grub/menu.lst ... done
>
> Voy al menu.lst y está igual. Booteo y todo igual, el 2.6.31-17 brilla por
> su ausencia, alguna idea?
>
> Gracias!
>
> Guido
>
>
>
> ---
> Este mensaje no contiene virus, porque ha sido creado con GNU/Linux,
> utilizando Software Libre y auditable.
>
> This message doesn't contain viruses, because it has been created with
> GNU/Linux, using auditable Free Software.
>



Corrijo, este es el /boot/grub/grub.cfg (el menu.lst no corre más):

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set f1662bba-976e-40d8-acb2-2de433a9a688
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set f1662bba-976e-40d8-acb2-2de433a9a688
linux /boot/vmlinuz-2.6.31-16-generic
root=UUID=f1662bba-976e-40d8-acb2-2de433a9a688 ro   quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set f1662bba-976e-40d8-acb2-2de433a9a688
linux /boot/vmlinuz-2.6.31-16-generic
root=UUID=f1662bba-976e-40d8-acb2-2de433a9a688 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set b8c081d6c0819b70
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type
the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

---
Este mensaje no contiene virus, porque ha sido creado con GNU/Linux,
utilizando Software Libre y auditable.

This message doesn't contain viruses, because it has been created with
GNU/Linux, using auditable Free Software.
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://lists.ubuntu.com/archives/ubuntu-es/attachments/20100118/51d4138d/attachment.htm 


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