Modifier l'orde des partitions Grub
juroks
Messages postés
197
Date d'inscription
Statut
Membre
Dernière intervention
-
jeanbi Messages postés 15399 Date d'inscription Statut Contributeur Dernière intervention -
jeanbi Messages postés 15399 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
J'ai sur le PC du travail une partition Red hat et XP
Le problème c'est qu'il boot par défaut sur la partition Red hat qui n'a aucun intérêt pour moi.
Du coup je souhait modifier le grub.
Dans /boot/grub j'ai 2 fichiers grub.conf et menu.lst qui sont identiques :
# grub.conf
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda6
initrd /initrd-2.4.18-5.imgtitle windows XP
rootnoverify (hd0,3)
chainloader +1
title windows XP
rootnoverify (hd0,0)
chainloader +1
j'ai essayé comme çela mais pas de différence
# grub.conf
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title windows XP
rootnoverify (hd0,0)
chainloader +1
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda6
initrd /initrd-2.4.18-5.imgtitle windows XP
rootnoverify (hd0,3)
chainloader +1
la commande update-grub n'est pas reconnu
merci
J'ai sur le PC du travail une partition Red hat et XP
Le problème c'est qu'il boot par défaut sur la partition Red hat qui n'a aucun intérêt pour moi.
Du coup je souhait modifier le grub.
Dans /boot/grub j'ai 2 fichiers grub.conf et menu.lst qui sont identiques :
# grub.conf
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda6
initrd /initrd-2.4.18-5.imgtitle windows XP
rootnoverify (hd0,3)
chainloader +1
title windows XP
rootnoverify (hd0,0)
chainloader +1
j'ai essayé comme çela mais pas de différence
# grub.conf
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title windows XP
rootnoverify (hd0,0)
chainloader +1
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda6
initrd /initrd-2.4.18-5.imgtitle windows XP
rootnoverify (hd0,3)
chainloader +1
la commande update-grub n'est pas reconnu
merci
2 réponses
-
bonjour,
pas melanger ubuntu et red hat ...
de plua il n'y a aucune commande à passer suffit de modifier le fichier soit comme ti la fait , c'est ce faire ch... pour pas grand chose , suffisait de mettre un 1 à la place du 0 à la lignedefault=0
ou 0 est la 1 er entree 1 la 2em etc...
tu redemarres et ton grub sera modifier
a+
-
Merci pour ta réponse
Alors comme ça, marche pas
# grub.conf
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title windows XP
rootnoverify (hd0,0)
chainloader +1
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda6
initrd /initrd-2.4.18-5.imgtitle windows XP
rootnoverify (hd0,3)
chainloader +1
idem comme ça
default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-5)
root (hd0,1)
kernel /vmlinuz-2.4.18-5 ro root=/dev/hda6
initrd /initrd-2.4.18-5.imgtitle windows XP
rootnoverify (hd0,3)
chainloader +1
title windows XP
rootnoverify (hd0,0)
chainloader +1
j'ai essayer de mettre le Timeout a 20 et c'est meme pas pris en compte au reboot.-
Bonjour,
Enlève-moi un doute : Le fichier que tu as édité c'est bien /boot/grub/menu.lst ? parce que je vois #grub.conf en début de fichier.
Tu as grub legacy et c'est le fichier menu.lst qui est utilisé pas grub.conf.
Si tu as modifié menu.lst de la manière que tu indiques, ça devrait fonctionner.
Ton fichier menu.lst est aussi touffu et peu lisible que ça d'origine ou tu as viré toutes les lignes vides ? -
-