Pagina 1 di 2

[Risolto] Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 0:03
da delca85
Ciao a tutti!
Ho eseguito l'avanzamento alla versione 9.04 di Ubuntu e c'è una cosa che non mi torna tanto. Al momento dell'avvio, il testo del boot mi dice che sto per avviare la vecchia versione, cioè la 8.10, poi però entro e vedo che l'installazione è andata  a buon fine, infatti sul mi trovo davanti a Jaunty Jackalope. Guardo anche il file menu.lst in boot/grub e sembra a posto, il primo che dovrebbe essere caricato è il kernel 2.6.28-11 di 9.04.
Perchè allora al momento del boot si parla ancora di 8.10?
Altra cosa che non capisco è che se vado nel terminale e digito uname -r per vedere qual è il kernel in uso, mi dice il 2.6.27-11, sempre Ubuntu 9.04 ma non proprio l'ultimo, quello che dovrei avere io, anche secondo Start up manager, che ho installato per avere ulteriori conferme.
Cosa mi dite? Grazie a tutti!

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 0:10
da ^alessio^
ciao,se con uname -r ti viene fuori 2.6.27-11 sei ancora con intrepid.

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 0:21
da delca85
Non vorrei dire grosse stupidaggini ma credo proprio di essere passata a Jackalope, ho le notifiche nuove, nuove voci nel menu, la possibilità di riavviare e arrestare 60 secondi dopo di aver cliccato... e anche su mio file menu.lst il kernel 2.6.27-11 è indicato come kernel di Jackalope.

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 8:59
da ^alessio^
ciao,probabilmente qualcosa non è andato per il verso giusto,se digiti

Codice: Seleziona tutto

lsb_release -a
cosa esce? prova anche a dare

Codice: Seleziona tutto

sudo update-grub
e riavvia.

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:02
da delca85
Digitando quello che mi hai detto tu ecco cosa appare:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
Sudo update-grub l'avevo già dato ieri sera ma la situazione non è cambiata.
Non so cosa fare per risolvere questa fastidiosa situazione!
Ho ridato sudo update-grub ed ecco cosa mi dice mentre aggiorna il 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.28-11-generic
Found kernel: /boot/vmlinuz-2.6.27-11-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
A me sembra che siano le cose giuste, infatti il file /boot/grub/menu.lst è aggiornato ma poi all'avvio non compare quello che è scritto lì!

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:09
da ^alessio^
ma all'avvio quanti kernel ti appaiono? ti appare anche il 2.6.28-11?

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:12
da delca85
No, all'avvio mi appaiono solo i vecchi kernel di Ubuntu 8.10, è come se il file menu.lst non fosse stato aggiornato dopo l'installazione, come se fosse lo stesso di prima. Ma se lo vado a vedere invece non è così!

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:20
da ^alessio^
per curiosita lo posti?

Codice: Seleziona tutto

cat /boot/grub/menu.lst

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:21
da delca85
Certo, eccolo:
# 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-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 5

## 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=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)

## 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 9.04, kernel 2.6.28-11-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro  single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, kernel 2.6.27-11-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.27-11-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro  single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 9.04, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda4
title Windows Vista/Longhorn (loader)
root (hd0,3)
savedefault
makeactive
chainloader +1

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:32
da ^alessio^
non so cosa dire :-\ sicuramente durante l'avanzamento di versione qualcosa non è andato per il verso giusto,solo che non capisco cosa.

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:35
da cj82
anche io ho avuto lo stesso "problema". Per qualche strano motivo il file menu.lst non si aggiornava ( differentemente da quanto diceva il reconfigure del kernel ). Ho rinominato il file menu.lst e dato il comando

Codice: Seleziona tutto

 sudo update-grub 
cosi' da creare un nuovo file e poi l'ho modificato secondo le mie preferenze

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:38
da delca85
Il problema è che qua il file è aggiornato ma non si aggiorna poi il menu di grub al momento dell'avvio!
Forse non ho capito bene, ma anche tu avevi la mia stessa situazione? Hai letto il mio file postato? Il tuo era uguale?
A me sembra che grub e file non corrispondano, è possibile che il grub si rifaccia ad un altro file?

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:41
da cj82
ops, scusa avevo letto male il tuo file. Il mio non veniva modificato e per questo l'ho ricreato.

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:48
da GiovEdi
delca85 ha scritto:
A me sembra che grub e file non corrispondano, è possibile che il grub si rifaccia ad un altro file?


se possibile, potresti postare

Codice: Seleziona tutto

sudo fdisk -l
e anche

Codice: Seleziona tutto

ls -l /dev/disk/by-uuid
?

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:54
da delca85
Ecco sudo -fdisk:
/dev/sda1              1      16385  131612481    7  HPFS/NTFS
/dev/sda2          16386      22080    45745087+  c  W95 FAT32 (LBA)
/dev/sda3          22081      24321    18000832+  5  Esteso
/dev/sda5          22081      23303    9823716  83  Linux
/dev/sda6          23304      23364      489951  82  Linux swap / Solaris
/dev/sda7          23365      24274    7309543+  83  Linux
/dev/sda8          24275      24321      377496  82  Linux swap / Solaris
e ls -l /dev/disk/by-uuid:
totale 0
lrwxrwxrwx 1 root root 10 2009-04-27 10:57 43a52cfa-1f63-417c-b2f6-9563b05760f7 -> ../../sda5
lrwxrwxrwx 1 root root 10 2009-04-27 10:57 72EEDA7F507ACBA8 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-04-27 09:40 78b6ba44-99fa-47da-924f-a032843aa716 -> ../../sda8
lrwxrwxrwx 1 root root 10 2009-04-27 10:57 953c7d50-392a-4caf-a6c4-19f9be23fcdd -> ../../sda6
lrwxrwxrwx 1 root root 10 2009-04-27 10:57 B248-1D59 -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-04-27 09:40 ec63d10b-b911-4745-b031-7a2b1ef54e64 -> ../../sda7

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 9:58
da GiovEdi
dunque hai installato due linux?

cosa hai messo in sda7?

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 10:03
da delca85
C'è Kubuntu 8.10, l'avevo messo per provare un po'. Dici che potrebbe essere che il grub viene gestito da lì  e per quello non corrisponde al file menu.lst che mi trovo in Ubuntu  9.04?

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 10:09
da GiovEdi
entra in quella partizione, poi copia e postaci il menu.lst che trovi in sda7 così vediamo

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 10:12
da delca85
COme avevi previsto credo:
default 0
timeout 10

title Ubuntu 8.10, kernel 2.6.27-11-generic (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
savedefault

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode) (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=43a52cfa-1f63-417c-b2f6-9563b05760f7 ro single
initrd /boot/initrd.img-2.6.27-11-generic
savedefault

title Ubuntu 8.10, memtest86+ (on /dev/sda5)
root (hd0,4)
kernel /boot/memtest86+.bin
savedefault

title Kubuntu 8.10, kernel 2.6.27-7-generic
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ec63d10b-b911-4745-b031-7a2b1ef54e64 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic

title Kubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=ec63d10b-b911-4745-b031-7a2b1ef54e64 ro  single
initrd /boot/initrd.img-2.6.27-7-generic

title Kubuntu 8.10, memtest86+
kernel /boot/memtest86+.bin

Re: Grub non corrispondente alla realtà

Inviato: lunedì 27 aprile 2009, 10:20
da GiovEdi
mistero risolto


ora hai due possibilità

o segui la solita procedura di ripristino grub e ovviamente lo fissi in sda5 (hd0,4)

o continui ad usare il file menu.lst e grub di kubuntu, aggiungendo lì le voci relative al nuovo 9.04