Changer l'ordre de grub

Résolu/Fermé
Infoman2.0 Messages postés 166 Date d'inscription lundi 2 mars 2009 Statut Membre Dernière intervention 22 novembre 2010 - 7 mai 2009 à 22:54
 misterpo - 20 août 2010 à 16:09
Bonjour,
je voudrais savoir comment changé l'ordre des systeme d'exploitation dans grub?
Merci
A voir également:

5 réponses

bob031 Messages postés 8158 Date d'inscription samedi 7 août 2004 Statut Membre Dernière intervention 1 septembre 2014 472
8 mai 2009 à 10:11
bonjour,

MAIS AVANT TOUTE MODIFICATION : ne pas oublier de faire une copie de sauvegarde du fichier menu.list :

en root : cp /boot/grub/menu.list /boot/grub/menu.list.BAK

et pour revenir au fichier d'origine : cp /boot/grub/menu.list.BAK /boot/grub/menu.list
2
Bonjour bob031,
J'ai vu sur un autre site cette commande qui permet de copier ce fichier, malheureusement, cette commande ne marche pas avec mon pc (je suis bien passé en root)
Le terminal m'indique ceci:
cp: impossible d'évaluer «/boot/grub/menu.list»: Aucun fichier ou dossier de ce type

Merci d'avance.
0
Infoman2.0 Messages postés 166 Date d'inscription lundi 2 mars 2009 Statut Membre Dernière intervention 22 novembre 2010 9
9 mai 2009 à 01:54
# 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=ad1986ca-506b-42ee-99bd-4823c7f524b9 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=ad1986ca-506b-42ee-99bd-4823c7f524b9

## 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
uuid ad1986ca-506b-42ee-99bd-4823c7f524b9
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=ad1986ca-506b-42ee-99bd-4823c7f524b9 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)
uuid ad1986ca-506b-42ee-99bd-4823c7f524b9
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=ad1986ca-506b-42ee-99bd-4823c7f524b9 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, kernel 2.6.22-14-generic
uuid ad1986ca-506b-42ee-99bd-4823c7f524b9
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=ad1986ca-506b-42ee-99bd-4823c7f524b9 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 9.04, kernel 2.6.22-14-generic (recovery mode)
uuid ad1986ca-506b-42ee-99bd-4823c7f524b9
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=ad1986ca-506b-42ee-99bd-4823c7f524b9 ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 9.04, memtest86+
uuid ad1986ca-506b-42ee-99bd-4823c7f524b9
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
1
jivef Messages postés 927 Date d'inscription mercredi 11 août 2004 Statut Membre Dernière intervention 12 novembre 2020 306
16 mai 2009 à 09:34
En gros les paragraphes commencent par title
title Ubuntu 9.04, kernel 2.6.22-14-generic (recovery mode)
uuid ad1986ca-506b-42ee-99bd-4823c7f524b9
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=ad1986ca-506b-42ee-99bd-4823c7f524b9 ro single
initrd /boot/initrd.img-2.6.22-14-generic


Si tu veux modifier un paragraphe, il faut savoir pouquoi et ce que tu veux faire.


Si tu veux modifier le boot par défaut, il te suffit de modifier le paramètre "default"
Il est actuellement à 3.
Ubuntu 9.04, kernel 2.6.22-14-generic (recovery mode)
Il est clair que démarrer en recovery mode n'est pas forcément top, surtout quand tout va bien.

Passe le paramètre "default" à 2. (Le décompte se fait à partir de 0)
Ubuntu 9.04, kernel 2.6.22-14-generic

Ca devrait aller un peu mieux.

Comme mon confrère te l'as indiqué plus haut, fait une sauvegarde de ton fichier en suivant la procédure qu'il t'a communiqué.
Ceci afin de que toute modification soit facilement réversible.

A bientux.
0
Elitemoumoute Messages postés 414 Date d'inscription mardi 5 mai 2009 Statut Membre Dernière intervention 20 juillet 2010 91
7 mai 2009 à 22:58
Salut,

tu fais

sudo nano /boot/grub/menu.lst
ou
sudo gedit /boot/grub/menu.lst

ensuite, tu choisis la velaur de défault
0
jivef Messages postés 927 Date d'inscription mercredi 11 août 2004 Statut Membre Dernière intervention 12 novembre 2020 306
7 mai 2009 à 23:57
Salut,
La config se fait dans le menu /boot/grub/menu.lst

Il faut l'éditer (avec un des outils indiqués par l'intervenant précédent) et modifier le choix par défaut.

Si tu as du mal, fait ci-dessous une copie de ton fichier /boot/grub/menu.lst il se trouvera probablement une bonne âme pour faire la modification.
Et si personne ne l'a fait avant que je me reconnecte je le ferai.


A bientux.
Jonas.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
jalobservateur Messages postés 7372 Date d'inscription lundi 16 juillet 2007 Statut Contributeur sécurité Dernière intervention 10 mai 2012 930
9 mai 2009 à 02:23
Salut,
Ou simplement installer ceci : http://www.commentcamarche.net/forum/affich 11891293 logiciel pour alterner le boot os linux

Déjà d'office dans Synaptic sur la 9.04
0