Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 21/01/2010, à 09:05

Alenaze

menu.lst inchangé après MaJ[RESOLU]

Bonjour à vous tous,
J'ai fait récemment une MaJ de Hardy vers Intrepid, puis Intrepid vers Jaunty, j'ai accepté à chaque fois ce que la MaJ me proposait. J'ai deux partitions dont une en ext4 avec Karmic. Dans Grub (legacy) j'ai toujours la ligne du kernel d'Hardy, mais si je le choisis c'est bien Jaunty qui démarre. J'ai vu ce rapport de bug https://bugs.launchpad.net/ubuntu/+sour … bug/202009 , mais je n'y vois pas clairement de solution. Ce que j'ai retenu c'est la modif à la main du menu.lst, le update-grub, mais je ne veux pas faire n'importe quoi.
Pourriez-vous me donner un coup de main?
Merci d'avance.

Dernière modification par Alenaze (Le 07/02/2010, à 23:37)


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#2 Le 21/01/2010, à 09:20

Compte anonymisé

Re : menu.lst inchangé après MaJ[RESOLU]

Salut

As-tu essayé :
sudo  update-grub

@+

#3 Le 21/01/2010, à 09:27

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

Salut Jean, oui je viens d'essayer, aucun changement, la ligne du grub reste 8.04.2, mais je démarre dessus et c'est bien Jaunty.


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#4 Le 21/01/2010, à 10:27

Compte anonymisé

Re : menu.lst inchangé après MaJ[RESOLU]

Le problème vient certainement d'un refus de mise à jour de menu.lst de type "conserver la version existante"  et pour débloquer je ne connais pas la solution.

En attendant tu peux modifier menu.lst "à la main" et si tu as un doute tu le liste ici (entre balises code pour la lisibilité et tu donnes aussi le contenu du répertoire /boot :
sudo  ls  -l  /boot

@+

#5 Le 21/01/2010, à 21:42

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

Salut, voilà le menu.lst de Jaunty:

# 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		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=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro

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

## 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=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-17-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.28-17-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro splash 
initrd		/boot/initrd.img-2.6.28-17-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-17-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.28-17-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro  single
initrd		/boot/initrd.img-2.6.28-17-generic

title		Ubuntu 9.04, kernel 2.6.24-24-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro splash 
initrd		/boot/initrd.img-2.6.24-24-generic
quiet

title		Ubuntu 9.04, kernel 2.6.24-24-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro  single
initrd		/boot/initrd.img-2.6.24-24-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST

et sudo ls -l /boot:

total 31980
drwxr-xr-x  3 root root    4096 2010-01-20 13:35 .
drwxr-xr-x 22 root root    4096 2010-01-20 13:35 ..
-rw-r--r--  1 root root  422838 2009-09-18 22:18 abi-2.6.24-24-generic
-rw-r--r--  1 root root  528372 2009-12-01 22:04 abi-2.6.28-17-generic
-rw-r--r--  1 root root   80051 2009-09-18 22:18 config-2.6.24-24-generic
-rw-r--r--  1 root root   96866 2009-12-01 22:04 config-2.6.28-17-generic
drwxr-xr-x  3 root root    4096 2010-01-21 09:22 grub
-rw-r--r--  1 root root 8401375 2010-01-20 13:31 initrd.img-2.6.24-24-generic
-rw-r--r--  1 root root 7642083 2009-09-29 19:01 initrd.img-2.6.24-24-generic.bak
-rw-r--r--  1 root root 7554928 2010-01-20 13:34 initrd.img-2.6.28-17-generic
-rw-r--r--  1 root root  128796 2009-03-27 18:15 memtest86+.bin
-rw-r--r--  1 root root  906320 2009-09-18 22:18 System.map-2.6.24-24-generic
-rw-r--r--  1 root root 1450875 2009-12-01 22:04 System.map-2.6.28-17-generic
-rw-r--r--  1 root root    1074 2009-12-01 22:06 vmcoreinfo-2.6.28-17-generic
-rw-r--r--  1 root root 1926040 2009-09-18 22:18 vmlinuz-2.6.24-24-generic
-rw-r--r--  1 root root 3491600 2009-12-01 22:04 vmlinuz-2.6.28-17-generic

je ne sais pas interpréter ceci. Karmic est toujours installé sur l'autre partition (qui boote par défaut), est-ce un conflit entre des versions de Grub?
Thanks for helping!

Dernière modification par Alenaze (Le 24/01/2010, à 12:02)


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#6 Le 26/01/2010, à 18:38

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

Salut, voilà, j'ai un doute, je poste le contenu des fichiers utiles et...bien, up?
neutral


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#7 Le 26/01/2010, à 18:53

misaine

Re : menu.lst inchangé après MaJ[RESOLU]

je ne comprends pas ta question neutral le menu.lst est bien a jour sur jaunty !!??

edit : es-tu sur que ce ne soit pas grub-pc qui soit sur ton MBR ?

Dernière modification par misaine (Le 26/01/2010, à 19:00)


la roue tourne...c'est sûr! c'est même pour ça qu'on l'a inventée.

Hors ligne

#8 Le 26/01/2010, à 19:38

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

bien, c'est que je ne comprends pas tout. J'ai au départ partitionné en deux: la première install était hardy, qui a posé son Grub. Puis sur l'autre partition (espace libre), j'ai installé via une alternate Karmic, Karmic en ext4. Alors que je pensais que Hardy allait rester le choix par défaut (et pas dans other operating system), Karmic est devenu le système par défaut (est-ce là le truc?) et Hardy est passé dans other operating system. Et là, au démarrage, figure en 1er Karmic et dans other OS, 8.04 alors que j'ai upgradé celle-ci en 9.04.
Alors est-ce dans Karmic que je dois faire le sudo update-grub?


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#9 Le 26/01/2010, à 19:59

Compte anonymisé

Re : menu.lst inchangé après MaJ[RESOLU]

Bien sûr c'est sur ton système par défaut (karmic en l'occurrence) qu'il faut mettre à jour le menu par :
sudo  update-grub

Après il faudrait savoir quel système tu souhaites avoir par défaut.

@+

#10 Le 26/01/2010, à 20:35

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

big_smile
Merci jeanjd63...je suis confus parce que c'est ce que je pensais au départ mais j'ai préféré avoir des avis plus pertinents, le gars pas sûr de lui. A la base, je voulais garder la LTS par défaut, d'où les questions avant installation que j'avais posé ici: http://forum.ubuntu-fr.org/viewtopic.php?id=321105, et ja'vais fini par laisser faire Karmic.
Merci beaucoup, à charge de revanche (un jour...).
[HS]Vite fait, j'ai une erreur au lancement dans mes lignes sbin/apparmor.d [FAIL], un thread en mémoire? sinon, pas grave, je cherche, thanks again[/HS]


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#11 Le 26/01/2010, à 20:57

Compte anonymisé

Re : menu.lst inchangé après MaJ[RESOLU]

Alenaze a écrit :

big_smile
.....
[HS]Vite fait, j'ai une erreur au lancement dans mes lignes sbin/apparmor.d [FAIL], un thread en mémoire? sinon, pas grave, je cherche, thanks again[/HS]

Apparmor est un logiciel de sécurité mais je ne suis pas sûr que ça gène vraiment.

Bonne continuation.

#12 Le 27/01/2010, à 12:58

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

hmm Je retire le [résolu] car sudo update-grub ne fonctionne sur aucune des versions que j'ai. I am puzzled. Il s'agit bien de ce bug https://bugs.launchpad.net/ubuntu/+sour … bug/202009, et pour le moment ça n'a pas l'air de bouger beaucoup. Si quelqu'un a la solution, un fil plus fourni à ce sujet, merci de m'en faire part.


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#13 Le 27/01/2010, à 17:18

misaine

Re : menu.lst inchangé après MaJ[RESOLU]

update-grub est un alias qui ne fonctionne pas dans certains cas
sur karmic si tu utilise grub-pc  la bonne procedure est:

grub-mkconfig (update-grub)

Pour des raisons de compatibilité la commande “update-grub” fonctionne toujours avec grub2, mais avec les versions récentes c'est “grub-mkconfig” qu'il faut utiliser. Cette commande va sourcer tous les scripts dans /etc/grub.d, eux même renvoyant les variables de /etc/default/grub, et générer ou mettre à jour le fichier grub.cfg. Il faut exécuter cette commande après chaque modification d'un script ou d'une variable de configuration de grub2. “grub-mkconfig” est également invoqué automatiquement à l'installation d'un nouveau noyau. La syntaxe est la suivante:

# grub-mkconfig -o /boot/grub/grub.cfg

Sans l'option ”-o” (--output) le résultat est écrit sur “stdout” (la console) uniquement, avec l'option le résultat est écrit dans le fichier grub.cfg.

C'est la commande dont l'utilisation est la plus courante.

Dernière modification par misaine (Le 27/01/2010, à 17:24)


la roue tourne...c'est sûr! c'est même pour ça qu'on l'a inventée.

Hors ligne

#14 Le 27/01/2010, à 17:49

Compte anonymisé

Re : menu.lst inchangé après MaJ[RESOLU]

Alenaze a écrit :

hmm Je retire le [résolu] car sudo update-grub ne fonctionne sur aucune des versions que j'ai. I am puzzled. Il s'agit bien de ce bug https://bugs.launchpad.net/ubuntu/+sour … bug/202009, et pour le moment ça n'a pas l'air de bouger beaucoup. Si quelqu'un a la solution, un fil plus fourni à ce sujet, merci de m'en faire part.

Quel est le menu qui n'est pas à jour ?

Peux-tu lister les 3 menus :
Pour l'install en 9.04  /boot/grub/menu.lst
Pour l'install Karmic   /boot/grub/menu.lst   et /boot/grub/grub.cfg


@+

#15 Le 28/01/2010, à 11:57

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

J'ai fait la commande indiquée par misaine (merci pour l'info)dans Karmic qui a détecté le noyau 9.04 mais le menu.lst est toujours comme suit:

# 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		10

## 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=d785b2f2-2774-45bb-ae17-ce5147162de6 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=d785b2f2-2774-45bb-ae17-ce5147162de6

## 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.10, kernel 2.6.31-17-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-17-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-17-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-17-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-17-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-17-generic

title		Ubuntu 9.10, kernel 2.6.31-16-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-16-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-16-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-16-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-16-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-16-generic

title		Ubuntu 9.10, kernel 2.6.31-14-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-14-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-14-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-14-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-14-generic

title		Ubuntu 9.10, kernel 2.6.31-13-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-13-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-13-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-13-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-13-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-13-generic

title		Ubuntu 9.10, kernel 2.6.31-11-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-11-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-11-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-11-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-11-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-11-generic

title		Ubuntu 9.10, kernel 2.6.31-10-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-10-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-10-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-10-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-10-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-10-generic

title		Ubuntu 9.10, kernel 2.6.31-9-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-9-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-9-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-9-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-9-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-9-generic

title		Ubuntu 9.10, kernel 2.6.31-7-generic
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-7-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro quiet splash 
initrd		/boot/initrd.img-2.6.31-7-generic
quiet

title		Ubuntu 9.10, kernel 2.6.31-7-generic (recovery mode)
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
kernel		/boot/vmlinuz-2.6.31-7-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro  single
initrd		/boot/initrd.img-2.6.31-7-generic

title		Ubuntu 9.10, memtest86+
uuid		d785b2f2-2774-45bb-ae17-ce5147162de6
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 an existing
# linux installation on /dev/sda1.
title		Ubuntu 8.04.2, kernel 2.6.24-24-generic (on /dev/sda1)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro quiet splash 
initrd		/boot/initrd.img-2.6.24-24-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title		Ubuntu 8.04.2, kernel 2.6.24-24-generic (recovery mode) (on /dev/sda1)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro single 
initrd		/boot/initrd.img-2.6.24-24-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title		Ubuntu 8.04.2, kernel 2.6.24-23-generic (on /dev/sda1)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-23-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro quiet splash 
initrd		/boot/initrd.img-2.6.24-23-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title		Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode) (on /dev/sda1)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-23-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro single 
initrd		/boot/initrd.img-2.6.24-23-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title		Ubuntu 8.04.2, memtest86+ (on /dev/sda1)
root		(hd0,0)
kernel		/boot/memtest86+.bin  
savedefault
boot

le grub.cfg de Karmic:

#
# 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
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, Linux 2.6.31-17-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-17-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-17-generic
}
menuentry "GNU/Linux, Linux 2.6.31-17-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-17-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-17-generic
}
menuentry "GNU/Linux, 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,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-16-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-16-generic
}
menuentry "GNU/Linux, Linux 2.6.31-16-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-16-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-16-generic
}
menuentry "GNU/Linux, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "GNU/Linux, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "GNU/Linux, Linux 2.6.31-13-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-13-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-13-generic
}
menuentry "GNU/Linux, Linux 2.6.31-13-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-13-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-13-generic
}
menuentry "GNU/Linux, Linux 2.6.31-11-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-11-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-11-generic
}
menuentry "GNU/Linux, Linux 2.6.31-11-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-11-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-11-generic
}
menuentry "GNU/Linux, Linux 2.6.31-10-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-10-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-10-generic
}
menuentry "GNU/Linux, Linux 2.6.31-10-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-10-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-10-generic
}
menuentry "GNU/Linux, Linux 2.6.31-9-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-9-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-9-generic
}
menuentry "GNU/Linux, Linux 2.6.31-9-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-9-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-9-generic
}
menuentry "GNU/Linux, Linux 2.6.31-7-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-7-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro   
	initrd	/boot/initrd.img-2.6.31-7-generic
}
menuentry "GNU/Linux, Linux 2.6.31-7-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,3)
	search --no-floppy --fs-uuid --set d785b2f2-2774-45bb-ae17-ce5147162de6
	linux	/boot/vmlinuz-2.6.31-7-generic root=UUID=d785b2f2-2774-45bb-ae17-ce5147162de6 ro single 
	initrd	/boot/initrd.img-2.6.31-7-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 "Ubuntu 9.04, kernel 2.6.28-17-generic (on /dev/sda1)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 4f49f1bb-2747-4716-9076-6d2e31ac4359
	linux /boot/vmlinuz-2.6.28-17-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro splash
	initrd /boot/initrd.img-2.6.28-17-generic
}
menuentry "Ubuntu 9.04, kernel 2.6.28-17-generic (recovery mode) (on /dev/sda1)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 4f49f1bb-2747-4716-9076-6d2e31ac4359
	linux /boot/vmlinuz-2.6.28-17-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro single
	initrd /boot/initrd.img-2.6.28-17-generic
}
menuentry "Ubuntu 9.04, kernel 2.6.24-24-generic (on /dev/sda1)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 4f49f1bb-2747-4716-9076-6d2e31ac4359
	linux /boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro splash
	initrd /boot/initrd.img-2.6.24-24-generic
}
menuentry "Ubuntu 9.04, kernel 2.6.24-24-generic (recovery mode) (on /dev/sda1)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 4f49f1bb-2747-4716-9076-6d2e31ac4359
	linux /boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro single
	initrd /boot/initrd.img-2.6.24-24-generic
}
menuentry "Ubuntu 9.04, memtest86+ (on /dev/sda1)" {
	insmod ext2
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 4f49f1bb-2747-4716-9076-6d2e31ac4359
	linux /boot/memtest86+.bin 
}
### 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 ###

et je vais dans un instant sous ma session Jaunty pour poster son menu.lst.


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#16 Le 28/01/2010, à 12:11

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

le menu.lst de la 9.04:

# 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		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=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro

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

## 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=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-17-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.28-17-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro splash 
initrd		/boot/initrd.img-2.6.28-17-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-17-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.28-17-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro  single
initrd		/boot/initrd.img-2.6.28-17-generic

title		Ubuntu 9.04, kernel 2.6.24-24-generic
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro splash 
initrd		/boot/initrd.img-2.6.24-24-generic
quiet

title		Ubuntu 9.04, kernel 2.6.24-24-generic (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.24-24-generic root=UUID=4f49f1bb-2747-4716-9076-6d2e31ac4359 ro  single
initrd		/boot/initrd.img-2.6.24-24-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST

voilà...


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne

#17 Le 28/01/2010, à 17:49

Compte anonymisé

Re : menu.lst inchangé après MaJ[RESOLU]

Donc pour Jaunty le menu.lst est ok

Pour Karmic, c'est grub.cfg qui est ok.

Toujours sous Karmic, tu dois pouvoir renommer menu.lst en menu.lst.old et ensuite :
sudo  update-grub  devrait fonctionner.

Enfin un dernier conseil, tu peux désinstaller les anciens noyaux Jaunty et Karmic en ne gardant que les 2 plus récents.

@+

#18 Le 30/01/2010, à 11:52

Alenaze

Re : menu.lst inchangé après MaJ[RESOLU]

Bon, je cafouille...après avoir viré les noyos inutiles et fait le sudo update-grub dans Karmic, ça m'a fait sauté les entrées pour Jaunty dans le Grub, j'ai remis mon ancien menu.lst.
Ca sent le backup/clean install. De plus je ne suis pas persuadé d'avoir fait le bon choix en passant par des mises à niveau successives. Je vais retourner dans les docs pour mieux comprendre. Ce que misaine a indiqué est peut-être la bonne solution, je vais réessayer.
Bon courage à tous!


Le respect et l'humilité sont aussi libres de droits...abusons-en!

Hors ligne