[Risolto] Kernel aggiornato ma non in esecuzione

Problemi riscontrati in Ubuntu 10.04 Lucid Lynx in fase di sviluppo.
Avatar utente
auanagana
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1008
Iscrizione: mercoledì 27 maggio 2009, 19:39
Località: Trieste
Contatti:

[Risolto] Kernel aggiornato ma non in esecuzione

Messaggio da auanagana »

Premetto che tutto funziona perfettamente. L'unica cosa che non riesco a capire è che nonostante gli ultimi aggiornamenti, il kernel in uso è il 2.6.32-16-generic-pae, mentre nella sezione di boot è presente il 2.6.32-19-generic-pae oltre a versioni precedenti compresa quella citata.

Codice: Seleziona tutto

2.6.32-16-generic-pae #25-Ubuntu SMP Tue Mar 9 18:03:39 UTC 2010 i686 GNU/Linux
Da synaptic risultano installati tutti. Non saprei da dove iniziare con il nuovo grub per caricare l'ultimo kernel. Ad abundantiam, la macchina in uso non è virtuale.
Ringrazio per eventuali suggerimenti.
Ultima modifica di auanagana il domenica 4 aprile 2010, 4:51, modificato 1 volta in totale.
La torre di Pisa... E se avesse ragione lei? (Walter Valdi)
Jack_ut
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1698
Iscrizione: giovedì 6 novembre 2008, 15:29

Re: [LL Kernel] Aggiornato ma non in esecuzione

Messaggio da Jack_ut »

Potresti iniziare aprendo un terminale e

Codice: Seleziona tutto

sudo update-grub
Avatar utente
auanagana
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1008
Iscrizione: mercoledì 27 maggio 2009, 19:39
Località: Trieste
Contatti:

Re: [LL Kernel] Aggiornato ma non in esecuzione

Messaggio da auanagana »

Jack_ut ha scritto: Potresti iniziare aprendo un terminale e

Codice: Seleziona tutto

sudo update-grub
Fatto come da indicazione ma rimade sempre il .16 anche dopo un prudenziale riavvio. Se ci riesco provo a postare per maggior chiarezza la configurazione di grub
da boot:

Codice: Seleziona tutto

#
# 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 $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
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
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
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/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, con Linux 2.6.32-16-generic-pae" --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	linux	/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro   quiet splash
	initrd	/boot/initrd.img-2.6.32-16-generic-pae
}
menuentry "Ubuntu, con Linux 2.6.32-16-generic-pae (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	echo	Loading Linux 2.6.32-16-generic-pae ...
	linux	/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro single 
	echo	Loading initial ramdisk ...
	initrd	/boot/initrd.img-2.6.32-16-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	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 823ce34a3ce33835
	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 ###
Ho anche questo:

Codice: Seleziona tutto

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=f2986899-3395-4ae6-b4e6-a7abe11b2f93

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu lucid (development branch), kernel 2.6.32-19-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-19-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-19-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-19-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-19-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-19-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-18-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-18-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-18-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-18-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-18-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-18-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-17-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-17-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-17-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-17-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-17-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-17-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-16-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-16-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-16-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-16-generic-pae

title		Chainload into GRUB 2
root		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/grub/core.img

title		Ubuntu lucid (development branch), memtest86+
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST
Poi, non veoorei essere prolisso, questo:

Codice: Seleziona tutto

#! /bin/sh -e

# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

transform="s,x,x,"

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
grub_prefix=`echo /boot/grub | sed ${transform}`
locale_dir=`echo /boot/grub/locale | sed ${transform}`
grub_lang=`echo $LANG | cut -d _ -f 1`

. ${libdir}/grub/grub-mkconfig_lib

# Do this as early as possible, since other commands might depend on it.
# (e.g. the `loadfont' command might need lvm or raid modules)
for i in ${GRUB_PRELOAD_MODULES} ; do
  echo "insmod $i"
done

if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi
if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi

cat << EOF
if [ -s \$prefix/grubenv ]; then
  load_env
fi
set default="${GRUB_DEFAULT}"
if [ \${prev_saved_entry} ]; then
  set saved_entry=\${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z \${boot_once} ]; then
    saved_entry=\${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n \${have_grubenv} ]; then if [ -z \${boot_once} ]; then save_env recordfail; fi; fi
}
EOF

case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in
  serial:* | *:serial)
    if ! test -e ${grub_prefix}/serial.mod ; then
      echo "Serial terminal not available on this platform." >&2 ; exit 1
    fi

    if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
      grub_warn "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used."
      GRUB_SERIAL_COMMAND=serial
    fi
    echo "${GRUB_SERIAL_COMMAND}"
  ;;
esac

case x${GRUB_TERMINAL_INPUT} in
  x)
    # Just use the native terminal
  ;;
  x*)
    cat << EOF
if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal ${GRUB_TERMINAL_INPUT}
fi
EOF
  ;;
esac

case x${GRUB_TERMINAL_OUTPUT} in
 xgfxterm)
    # Make the font accessible
    prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`

    cat << EOF
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
  set gfxmode=${GRUB_GFXMODE}
  insmod gfxterm
  insmod ${GRUB_VIDEO_BACKEND}
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
EOF
if [ x$GRUB_THEME != x ] && [ -f $GRUB_THEME ] \
	&& is_path_readable_by_grub $GRUB_THEME; then
    echo "Found theme: $GRUB_THEME" >&2
    prepare_grub_to_access_device `${grub_probe} --target=device $GRUB_THEME` | sed -e "s/^/  /"
    cat << EOF
  insmod gfxmenu
  set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
  set menuviewer=gfxmenu
EOF
fi
    cat << EOF
fi
EOF
  ;;
  x)
    # Just use the native terminal
  ;;
  x*)
    cat << EOF
if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal ${GRUB_TERMINAL_OUTPUT}
fi
EOF
  ;;
esac

# Gettext variables and module
if [ "x${LANG}" != "xC" ] ; then
    prepare_grub_to_access_device $(${grub_probe} --target=device ${locale_dir})
  cat << EOF
set locale_dir=(\$root)$(make_system_path_relative_to_its_root ${locale_dir})
set lang=${grub_lang}
insmod gettext
EOF
fi

cat << EOF
if [ \${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=${GRUB_TIMEOUT}
fi
EOF

# Play an initial tune
if [ "x${GRUB_INIT_TUNE}" != "x" ] ; then
  cat << EOF
insmod play
play ${GRUB_INIT_TUNE}
EOF
fi
Quest'ultimo è riferito a /etc/grub.d/10_linux

Confermo che tutto funziona perfettamente.
Grazie
La torre di Pisa... E se avesse ragione lei? (Walter Valdi)
Avatar utente
Superpiffer
Prode Principiante
Messaggi: 160
Iscrizione: mercoledì 10 gennaio 2007, 17:52
Località: Montemesola (TA)

Re: [LL Kernel] Aggiornato ma non in esecuzione

Messaggio da Superpiffer »

il comando che devi dare è

Codice: Seleziona tutto

sudo update-grub2
  ;)
Jack_ut
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1698
Iscrizione: giovedì 6 novembre 2008, 15:29

Re: [LL Kernel] Aggiornato ma non in esecuzione

Messaggio da Jack_ut »

Dal menu.lst il .19 appare... ...per capire meglio, il tuo problema è che pur selezionandolo all'avvio ti ritrovi sempre col .16 (ma parrebbe alquanto strano) o che non ti appare proprio nella schermata di Grub?
^alessio^
Rampante Reduce
Rampante Reduce
Messaggi: 5384
Iscrizione: giovedì 15 maggio 2008, 22:00
Sesso: Maschile
Località: como

Re: [LL Kernel] Aggiornato ma non in esecuzione

Messaggio da ^alessio^ »

auanagana ha scritto:
Jack_ut ha scritto: Potresti iniziare aprendo un terminale e

Codice: Seleziona tutto

sudo update-grub
Fatto come da indicazione ma rimade sempre il .16 anche dopo un prudenziale riavvio. Se ci riesco provo a postare per maggior chiarezza la configurazione di grub
da boot:

Codice: Seleziona tutto

#
# 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 $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
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
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
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/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, con Linux 2.6.32-16-generic-pae" --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	linux	/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro   quiet splash
	initrd	/boot/initrd.img-2.6.32-16-generic-pae
}
menuentry "Ubuntu, con Linux 2.6.32-16-generic-pae (modalità ripristino)" --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	echo	Loading Linux 2.6.32-16-generic-pae ...
	linux	/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro single 
	echo	Loading initial ramdisk ...
	initrd	/boot/initrd.img-2.6.32-16-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root='(hd1,1)'
	search --no-floppy --fs-uuid --set f2986899-3395-4ae6-b4e6-a7abe11b2f93
	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 823ce34a3ce33835
	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 ###
Ho anche questo:

Codice: Seleziona tutto

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=f2986899-3395-4ae6-b4e6-a7abe11b2f93

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu lucid (development branch), kernel 2.6.32-19-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-19-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-19-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-19-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-19-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-19-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-18-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-18-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-18-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-18-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-18-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-18-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-17-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-17-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-17-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-17-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-17-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-17-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-16-generic-pae
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro quiet splash 
initrd		/boot/initrd.img-2.6.32-16-generic-pae

title		Ubuntu lucid (development branch), kernel 2.6.32-16-generic-pae (recovery mode)
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/vmlinuz-2.6.32-16-generic-pae root=UUID=f2986899-3395-4ae6-b4e6-a7abe11b2f93 ro  single
initrd		/boot/initrd.img-2.6.32-16-generic-pae

title		Chainload into GRUB 2
root		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/grub/core.img

title		Ubuntu lucid (development branch), memtest86+
uuid		f2986899-3395-4ae6-b4e6-a7abe11b2f93
kernel		/boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST
Poi, non veoorei essere prolisso, questo:

Codice: Seleziona tutto

#! /bin/sh -e

# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

transform="s,x,x,"

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
grub_prefix=`echo /boot/grub | sed ${transform}`
locale_dir=`echo /boot/grub/locale | sed ${transform}`
grub_lang=`echo $LANG | cut -d _ -f 1`

. ${libdir}/grub/grub-mkconfig_lib

# Do this as early as possible, since other commands might depend on it.
# (e.g. the `loadfont' command might need lvm or raid modules)
for i in ${GRUB_PRELOAD_MODULES} ; do
  echo "insmod $i"
done

if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi
if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi

cat << EOF
if [ -s \$prefix/grubenv ]; then
  load_env
fi
set default="${GRUB_DEFAULT}"
if [ \${prev_saved_entry} ]; then
  set saved_entry=\${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z \${boot_once} ]; then
    saved_entry=\${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n \${have_grubenv} ]; then if [ -z \${boot_once} ]; then save_env recordfail; fi; fi
}
EOF

case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in
  serial:* | *:serial)
    if ! test -e ${grub_prefix}/serial.mod ; then
      echo "Serial terminal not available on this platform." >&2 ; exit 1
    fi

    if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
      grub_warn "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used."
      GRUB_SERIAL_COMMAND=serial
    fi
    echo "${GRUB_SERIAL_COMMAND}"
  ;;
esac

case x${GRUB_TERMINAL_INPUT} in
  x)
    # Just use the native terminal
  ;;
  x*)
    cat << EOF
if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal ${GRUB_TERMINAL_INPUT}
fi
EOF
  ;;
esac

case x${GRUB_TERMINAL_OUTPUT} in
 xgfxterm)
    # Make the font accessible
    prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`

    cat << EOF
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
  set gfxmode=${GRUB_GFXMODE}
  insmod gfxterm
  insmod ${GRUB_VIDEO_BACKEND}
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
EOF
if [ x$GRUB_THEME != x ] && [ -f $GRUB_THEME ] \
	&& is_path_readable_by_grub $GRUB_THEME; then
    echo "Found theme: $GRUB_THEME" >&2
    prepare_grub_to_access_device `${grub_probe} --target=device $GRUB_THEME` | sed -e "s/^/  /"
    cat << EOF
  insmod gfxmenu
  set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
  set menuviewer=gfxmenu
EOF
fi
    cat << EOF
fi
EOF
  ;;
  x)
    # Just use the native terminal
  ;;
  x*)
    cat << EOF
if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal ${GRUB_TERMINAL_OUTPUT}
fi
EOF
  ;;
esac

# Gettext variables and module
if [ "x${LANG}" != "xC" ] ; then
    prepare_grub_to_access_device $(${grub_probe} --target=device ${locale_dir})
  cat << EOF
set locale_dir=(\$root)$(make_system_path_relative_to_its_root ${locale_dir})
set lang=${grub_lang}
insmod gettext
EOF
fi

cat << EOF
if [ \${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=${GRUB_TIMEOUT}
fi
EOF

# Play an initial tune
if [ "x${GRUB_INIT_TUNE}" != "x" ] ; then
  cat << EOF
insmod play
play ${GRUB_INIT_TUNE}
EOF
fi
Quest'ultimo è riferito a /etc/grub.d/10_linux

Confermo che tutto funziona perfettamente.
Grazie
Ciao,da quello che vedo hai sia Grub-legacy che Grub2, e in pratica il sistema si avvia con Grub2 ma mette i kernel che aggiorni in Grub-legacy,prova in questo modo,dai nel terminale

Codice: Seleziona tutto

sudo apt-get --purge remove grub
poi sempre nel terminale per sicurezza dai

Codice: Seleziona tutto

sudo apt-get install grub-pc
e

Codice: Seleziona tutto

sudo apt-get install grub-common
per questi ultimi due comandi è probabile che ti risponda che sono già installati,comunque come ho già detto per sicurezza falli ugualmente,quando hai finito sempre nel terminale dai

Codice: Seleziona tutto

sudo update-grub
e riavvia il pc.
 
Avatar utente
auanagana
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1008
Iscrizione: mercoledì 27 maggio 2009, 19:39
Località: Trieste
Contatti:

Re: [LL Kernel] Aggiornato ma non in esecuzione

Messaggio da auanagana »

Perfetto, ho eseguito pedissequamente quanto mi hai suggerito ed ora si avvia con il kernel corretto.
Grazie ^alessio^ e Buona Pasqua. Ovviamente gli auguri sono estesi a tutti gli amici del Forum, in particolare a coloro che si sono prodigati nel risolvere questo problema.
Ultima modifica di auanagana il domenica 4 aprile 2010, 4:57, modificato 1 volta in totale.
La torre di Pisa... E se avesse ragione lei? (Walter Valdi)
Scrivi risposta

Ritorna a “Lucid 10.04”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti