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 14/08/2006, à 19:54

MarcWL

Grubconf RÉGLÉ

Bonjour,
j'ai installé Dapper en dual boot avec XP.
J'ai utilisé Grubconf et j'ai inséré un(e) splash image.
Au boot tout marche et mon image est en arrière plan.
Mais maintenant je voudrais rentrer dans Grubconf pour supprimer d'anciens Kernels de la liste et je ne peux plus.
Quand je tape SUDO GRUBCONF, la fenêtre de Grubconf apparaît pendant une demi seconde puis disparaît!
Avez-vous une idée?
Merci d'avance

Dernière modification par MarcWL (Le 16/08/2006, à 17:37)

Hors ligne

#2 Le 14/08/2006, à 20:02

linkness

Re : Grubconf RÉGLÉ

Bonjour,

Si tu souhaites supprimer les anciens kernels tappe :

sudo gedit /boot/grub/menu.lst

Et supprime les anciens kernels ou commente les avec # mais je te conseille d'en garder au moins 2, on ne sait jamais.
Je pense que c'est cette manipulation que tu dois, mais je n'en suis pas sur à 100%.


Partir de Windows pour découvrir le LIBRE... et finir sous LINUX :D
Kubuntu 7.04 depuis fin juin 06 (XGL, Firefox, Kopete, aMSN, amaroK, VLC, OpenOffice, KDE 3.5.7...) et l'autre...

Hors ligne

#3 Le 14/08/2006, à 20:41

Compte anonymisé

Re : Grubconf RÉGLÉ

Salut

Pour supprimer les lignes "anciens kernel" une meilleure méthode est de désinstaller ces anciens kernels. Cela permet de faire un peu de ménage et reste cohérent. Sinon dans le fichier /boot/grub/menu.lst tu peux aussi modifier la valeur :
# howmany=all par # howmany=2 pour ne garder que les 2 derniers kernels.
Tout ça est dans la doc.
@+

#4 Le 14/08/2006, à 20:48

MarcWL

Re : Grubconf RÉGLÉ

Merci pour vos réponses.
En fait dans mon menu.lst, mes deux Kernels (que je veux conserver sont en double). Copie de mon menu.lst. C'est impressionnant et je ne voudrais pas faire d'erreur en supprimant des commandes!


# Generated by grubconf-0.5.1
default=0
timeout=10
splashimage=(hd1,0)/boot/grub/splashimages/che3.xpm.gz

title Ubuntu, kernel 2.6.15-26-386
#:2 <-- type: 0 => linux, 1 => windows, 2 => other
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb1 ro quiet splash
initrd        /boot/initrd.img-2.6.15-26-386
savedefault
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
#:2 <-- type: 0 => linux, 1 => windows, 2 => other
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb1 ro single
initrd        /boot/initrd.img-2.6.15-26-386
boot
title Ubuntu, memtest86+
#:2 <-- type: 0 => linux, 1 => windows, 2 => other
root        (hd1,0)
kernel        /boot/memtest86+.bin
boot
title Other operating systems:
#:2 <-- type: 0 => linux, 1 => windows, 2 => other
root
title Microsoft Windows XP Professionnel
#:1 <-- type: 0 => linux, 1 => windows, 2 => other
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
savedefault
### 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=/dev/hdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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

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

## ## End Default Options ##

splashimage=(hd1,0)/boot/grub/splashimages/che3.xpm.gz
splashimage=(hd1,0)/boot/grub/splashimages/che3.xpm.gz

title        Ubuntu, kernel 2.6.15-26-k7
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-k7 root=/dev/hdb1 ro quiet splash
initrd        /boot/initrd.img-2.6.15-26-k7
savedefault
boot

title        Ubuntu, kernel 2.6.15-26-k7 (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-k7 root=/dev/hdb1 ro single
initrd        /boot/initrd.img-2.6.15-26-k7
boot

title        Ubuntu, kernel 2.6.15-26-386
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb1 ro quiet splash
initrd        /boot/initrd.img-2.6.15-26-386
savedefault
boot

title        Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb1 ro single
initrd        /boot/initrd.img-2.6.15-26-386
boot

title        Ubuntu, memtest86+
root        (hd1,0)
kernel        /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

Hors ligne

#5 Le 14/08/2006, à 21:00

Compte anonymisé

Re : Grubconf RÉGLÉ

Salut

Il semble que tu ais utilisé grubconf qui a ajouté ses lignes en début de fichier et si tu vois dans ton menu windows c'est la première partie qui est prise en compte. Si tu vois tout quel choix !!!!!
Au fait quel est le bon kernel k7 ou 386?


@+

Dernière modification par Compte anonymisé (Le 14/08/2006, à 21:05)

#6 Le 14/08/2006, à 21:13

MarcWL

Re : Grubconf RÉGLÉ

Le bon Kernel est K7, mais j'aurais voulu garder le 386 aussi au cas ou!

Hors ligne

#7 Le 14/08/2006, à 21:17

Compte anonymisé

Re : Grubconf RÉGLÉ

Salut

Il faudrait d'abord sauvegarder le fichier menu.lst et tu pourrais le remplacer par ceci :

### 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=/dev/hdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) 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

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

## ## End Default Options ##

splashimage=(hd1,0)/boot/grub/splashimages/che3.xpm.gz

title        Ubuntu, kernel 2.6.15-26-k7
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-k7 root=/dev/hdb1 ro quiet splash
initrd        /boot/initrd.img-2.6.15-26-k7
savedefault
boot

title        Ubuntu, kernel 2.6.15-26-k7 (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-k7 root=/dev/hdb1 ro single
initrd        /boot/initrd.img-2.6.15-26-k7
boot

title        Ubuntu, kernel 2.6.15-26-386
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb1 ro quiet splash
initrd        /boot/initrd.img-2.6.15-26-386
savedefault
boot

title        Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root        (hd1,0)
kernel        /boot/vmlinuz-2.6.15-26-386 root=/dev/hdb1 ro single
initrd        /boot/initrd.img-2.6.15-26-386
boot

title        Ubuntu, memtest86+
root        (hd1,0)
kernel        /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

title Microsoft Windows XP Professionnel
#:1 <-- type: 0 => linux, 1 => windows, 2 => other
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
savedefault

Je pense que ça devrait être bon.

@+

#8 Le 14/08/2006, à 22:17

MarcWL

Re : Grubconf RÉGLÉ

Merci pour ta réponse, cela semble logique. Je vais essayer.
Mais si jamais, pure hypothèse, je ne pouvais plus booter, comment récupérer l'ancien menu.lst.old

A+

Hors ligne

#9 Le 15/08/2006, à 06:12

Compte anonymisé

Re : Grubconf RÉGLÉ

Dans ce cas il faut démarrer en live cd, monter la partition / si ce n'est pas fait automatiquement et revalider l'ancien.
@+

#10 Le 15/08/2006, à 12:55

MarcWL

Re : Grubconf RÉGLÉ

Je te remercie, je l'ai fait pas à pas et cela marche. Je peux à nouveau ouvrir Grubconf.
J'ai simplement gardé les trois premières lignes d'entête (Generated by grubcont...).
Comment signale t'on un problème RÉSOLU,

Marc de la Réunion

Hors ligne

#11 Le 15/08/2006, à 20:06

Compte anonymisé

Re : Grubconf RÉGLÉ

Content pour toi
Tu modifies le titre de ton premier post en ajoutant réglé.
Et puis un grand bonjour à la Réunion et aux Réunionnais.
@+
Jean

#12 Le 16/08/2006, à 17:42

MarcWL

Re : Grubconf RÉGLÉ

Merci et bonjour chez toi!
Marc

Hors ligne