Question sur grub-customizer
Résolu
Bonjour,
J'ai installé ubuntu unity 12.04 en dual boot (xp / ubuntu), et n'ayant pas l'affichage permettant le choix de l'os au lancement, le recours à "grub-customizer" me perturbe car la présentation que j'en ai ne comporte pas de cases à cocher, mais devant chaque ligne, des "engrenages" pour les os, ou des "sortes de loupes".
[URL=http://imageshack.com/f/1fgrubcustomizerp][IMG]http://img51.imageshack.us/img51/6977/grubcustomizer.png[/IMG][/URL]
Pouvez-vous m'aider
merci
--
J'ai installé ubuntu unity 12.04 en dual boot (xp / ubuntu), et n'ayant pas l'affichage permettant le choix de l'os au lancement, le recours à "grub-customizer" me perturbe car la présentation que j'en ai ne comporte pas de cases à cocher, mais devant chaque ligne, des "engrenages" pour les os, ou des "sortes de loupes".
[URL=http://imageshack.com/f/1fgrubcustomizerp][IMG]http://img51.imageshack.us/img51/6977/grubcustomizer.png[/IMG][/URL]
Pouvez-vous m'aider
merci
--
A voir également:
- Question sur grub-customizer
- Grub rescue windows 10 ✓ - Forum Windows
- Gnu grub version 2.04 - Forum Linux / Unix
- Gnu grub version 2.06 - Forum MacOS
- Démarrage sur grub rescue ✓ - Forum Linux / Unix
- Grub error 17 ✓ - Forum Debian
38 réponses
Re
Oui,
et d'ailleurs on voit que windows y est pris en compte.
Est-ce que la résolution conseillée (1280x1024) peut avoir une incidence ? Le pavé qui l'indique se déplace longuement avant le lancement d'ubuntu.
--
Oui,
et d'ailleurs on voit que windows y est pris en compte.
Est-ce que la résolution conseillée (1280x1024) peut avoir une incidence ? Le pavé qui l'indique se déplace longuement avant le lancement d'ubuntu.
--
Bon je viens de faire un test sur une machine virtuelle avec une Ubuntu 12.04 qui était installée et dont le grub était masqué au démarrage.
Le fichier original (/etc/default/grub) ressemblait à ceci :
J'ai commenté les deux lignes ci-dessus en gras, ce qui m'a donné ça :
Et j'ai ensuite lancé un update de grub :
Et j'ai redémarré avec un joli écran de grub ;-))
Le fichier original (/etc/default/grub) ressemblait à ceci :
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian' GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command 'vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"
J'ai commenté les deux lignes ci-dessus en gras, ce qui m'a donné ça :
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 #GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian' GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command 'vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"
Et j'ai ensuite lancé un update de grub :
sudo update-grub
Et j'ai redémarré avec un joli écran de grub ;-))
la dernière config =>
GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET="0"
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
--
GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET="0"
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
--
RE
Je dois abandonner => GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
et essayer :
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
C'est bien ça ?
Encore merci pour ta patience
--
Je dois abandonner => GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
et essayer :
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
C'est bien ça ?
Encore merci pour ta patience
--
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
re
si tu veux toujours que le 1er choix soit xp , il ne faut pas mettre 0 0 etant la 1er ligne de lancement trouve
0 a X = n ° des ligne de lancement comme dans grub 1
saved = la derniere config lancer correctement ..
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" = la ligne de lancement
y a rien de complique dans grub 2 suffit de lire le man
de plus il ne faut en aucun cas modifier directement /boot/grub/grub.cfg
car ça ne marche pas comme ça il faut passer par /etc/default/grub
exemple de fichier
c'est un exemple adapte en fonction de son fichier
a+
si tu veux toujours que le 1er choix soit xp , il ne faut pas mettre 0 0 etant la 1er ligne de lancement trouve
0 a X = n ° des ligne de lancement comme dans grub 1
saved = la derniere config lancer correctement ..
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" = la ligne de lancement
y a rien de complique dans grub 2 suffit de lire le man
de plus il ne faut en aucun cas modifier directement /boot/grub/grub.cfg
car ça ne marche pas comme ça il faut passer par /etc/default/grub
exemple de fichier
GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="Fedora" GRUB_DEFAULT=saved ici tu mets " Microsoft Windows XP Professionnel (on /dev/sda1)" GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True LANG=fr_FR.UTF-8 rd.luks=0 KEYTABLE=fr-latin9 rhgb quiet" #GRUB_THEME="/boot/grub2/themes/system/theme.txt" GRUB_GFXMODE=1280x1024x32 GRUB_GFXPAYLOAD_LINUX=keep GRUB_TERMINAL_OUTPUT=gfxterm
c'est un exemple adapte en fonction de son fichier
a+
Pas de menu non plus avec cette configuration :
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
C'est désespérant.
Je ne vois pas non plus quel autre os installer puisque unity 12.04 ne veut rien savoir.
Ca ne peut pas venir de la partition windows ???
--
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
C'est désespérant.
Je ne vois pas non plus quel autre os installer puisque unity 12.04 ne veut rien savoir.
Ca ne peut pas venir de la partition windows ???
--
Le rajout a été fait,
et pas de menu au lancement
Merci de ton aide, j'accepte tout conseil. Cette situation ne m'est jamais arrivée, et il a fallu que ce soit sur le pc d'amis.
A+ et merci
--
et pas de menu au lancement
Merci de ton aide, j'accepte tout conseil. Cette situation ne m'est jamais arrivée, et il a fallu que ce soit sur le pc d'amis.
A+ et merci
--
Petites précisions :
- une ligne qui commence par # est ignorée.
- chaque fois que tu modifies le fichier de configuration, tu dois relancer "sudo update-grub"
Est-ce que la résolution conseillée (1280x1024) peut avoir une incidence ? Le pavé qui l'indique se déplace longuement avant le lancement d'ubuntu.
De quel pavé parles-tu ?
Normalement si tu as suivi l'exemple que j'ai donné ici :
https://forums.commentcamarche.net/forum/oldest/27048966-question-sur-grub-customizer#21
... la résolution est commentée et n'intervient pas.
Bonne chance
- une ligne qui commence par # est ignorée.
- chaque fois que tu modifies le fichier de configuration, tu dois relancer "sudo update-grub"
Est-ce que la résolution conseillée (1280x1024) peut avoir une incidence ? Le pavé qui l'indique se déplace longuement avant le lancement d'ubuntu.
De quel pavé parles-tu ?
Normalement si tu as suivi l'exemple que j'ai donné ici :
https://forums.commentcamarche.net/forum/oldest/27048966-question-sur-grub-customizer#21
... la résolution est commentée et n'intervient pas.
Bonne chance
re,
mais vous n'avez pas compris comment fonctionne grub2 il me semble
le fichier /etc/default/grub n'a pas besoin de ligne avec des #
puisque le fait de taper sudo update-grub reecrit entièrement le fichier grub.cfg
en relisant
/etc/default/grub
et les fichiers attenant
donc votre fichier /etc/grub/default doit contenir toutes infos necessaire à chaque fois
j'ai donner un exemple de fichier
peut tu me donner le tien
cat /etc/default/grub
a +
mais vous n'avez pas compris comment fonctionne grub2 il me semble
le fichier /etc/default/grub n'a pas besoin de ligne avec des #
puisque le fait de taper sudo update-grub reecrit entièrement le fichier grub.cfg
en relisant
/etc/default/grub
et les fichiers attenant
donc votre fichier /etc/grub/default doit contenir toutes infos necessaire à chaque fois
j'ai donner un exemple de fichier
peut tu me donner le tien
cat /etc/default/grub
a +
RE bonsoir,
cat /etc/default/grub
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT="0"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_DISABLE_OS_PROBER=true
christiane@christiane-System-Product-Name:~$
Effectivement le mécanisme de grub m'échappe
--
cat /etc/default/grub
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT="0"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_DISABLE_OS_PROBER=true
christiane@christiane-System-Product-Name:~$
Effectivement le mécanisme de grub m'échappe
--
re
comment veux tu avoir un menu si tu n'a pas d'affichage
#GRUB_GFXMODE=640x480
enleve le #
et revalide
a+
comment veux tu avoir un menu si tu n'a pas d'affichage
#GRUB_GFXMODE=640x480
enleve le #
et revalide
a+
Re
cat /etc/defauft/grub
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'vbeinfo'
GRUB_GFXMODE=640x480
J'ai validé simplement sans => sudo update-grub
Pas de menu à l'horizon
A+
--
cat /etc/defauft/grub
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'vbeinfo'
GRUB_GFXMODE=640x480
J'ai validé simplement sans => sudo update-grub
Pas de menu à l'horizon
A+
--
re,
pour zip31 tu as juste un menu style grub 1
on se demande a quoi sert de repeter apres chaque modif il faut taper
sudo update-grub
;-)
a+
pour zip31 tu as juste un menu style grub 1
on se demande a quoi sert de repeter apres chaque modif il faut taper
sudo update-grub
;-)
a+
Re,
Un magnifique menu, mais sans windows.
(c'était la seule fois sans sudo update-grub) par mauvaise interprétation
N.B Même avec :
GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
voici avec windows :
cat /etc/default/grub :
christiane@christiane-System-Product-Name:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
On commence à voir le bout du tunnel.
A+
désolé de vous solliciter tant de fois
--
Un magnifique menu, mais sans windows.
(c'était la seule fois sans sudo update-grub) par mauvaise interprétation
N.B Même avec :
GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
voici avec windows :
cat /etc/default/grub :
christiane@christiane-System-Product-Name:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
On commence à voir le bout du tunnel.
A+
désolé de vous solliciter tant de fois
--
Bon, histoire d'y voir plus clair à cause des nombreux messages et manipulations faits, peux-tu s'il te plaît afficher le résultat des commandes suivantes (merci de mettre chaque commande entre des balises codes (le bouton "<>" de la zone de rédaction d'un message) :
sudo fdisk -l cat /etc/default/grub cat /boot/grub/grub.cfg sudo update-grub
Bonjour,
Affichage des commandes :
sudo fdisk -l
cat /etc/default/grub
cat /boot/grub/grub.cfg
sudo update-grub
Merci d'être toujours sur cette résolution d'affichage des deux systèmes.
(Préférence pour ubuntu en premier, si possible).
--
Affichage des commandes :
sudo fdisk -l
christiane@christiane-System-Product-Name:~$ sudo fdisk -l [sudo] password for christiane: Disk /dev/sda: 250.1 GB, 250059350016 bytes 255 têtes, 63 secteurs/piste, 30401 cylindres, total 488397168 secteurs Unités = secteurs de 1 * 512 = 512 octets Taille de secteur (logique / physique) : 512 octets / 512 octets taille d'E/S (minimale / optimale) : 512 octets / 512 octets Identifiant de disque : 0x7e437e43 Périphérique Amorce Début Fin Blocs Id Système /dev/sda1 * 63 102398309 51199123+ 7 HPFS/NTFS/exFAT /dev/sda2 102398371 488392064 192996847 f Étendue W95 (LBA) /dev/sda5 102398373 339469514 118535571 7 HPFS/NTFS/exFAT /dev/sda6 339469578 410267969 35399196 83 Linux /dev/sda7 410268033 412227899 979933+ 82 partition d'échange Linux / Solaris /dev/sda8 412227963 488392064 38082051 83 Linux christiane@christiane-System-Product-Name:~$
cat /etc/default/grub
christiane@christiane-System-Product-Name:~$ cat /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=" Microsoft Windows XP Professionnel (on /dev/sda1)" #GRUB_HIDDEN_TIMEOUT="0" #GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian' GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command 'vbeinfo' GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" GRUB_DISABLE_OS_PROBER=true christiane@christiane-System-Product-Name:~$
cat /boot/grub/grub.cfg
christiane@christiane-System-Product-Name:~$ cat /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi set default=" Microsoft Windows XP Professionnel (on /dev/sda1)" if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b set locale_dir=($root)/boot/grub/locale set lang=fr_FR insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray if background_color 44,0,30; then clear fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" if [ "${1}" = "keep" ]; then set vt_handoff=vt.handoff=7 else set vt_handoff= fi } if [ "${recordfail}" != 1 ]; then if [ -e ${prefix}/gfxblacklist.txt ]; then if hwmatch ${prefix}/gfxblacklist.txt 3; then if [ ${match} = 0 ]; then set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fi else set linux_gfx_mode=text fi export linux_gfx_mode if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi menuentry 'Ubuntu, avec Linux 3.2.0-37-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b linux /boot/vmlinuz-3.2.0-37-generic-pae root=UUID=96c613a6-59c1-4eeb-bd14-4794cda2714b ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-37-generic-pae } menuentry 'Ubuntu, avec Linux 3.2.0-37-generic-pae (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b echo 'Chargement de Linux 3.2.0-37-generic-pae ...' linux /boot/vmlinuz-3.2.0-37-generic-pae root=UUID=96c613a6-59c1-4eeb-bd14-4794cda2714b ro recovery nomodeset echo 'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-3.2.0-37-generic-pae } submenu "Previous Linux versions" { menuentry 'Ubuntu, avec Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=96c613a6-59c1-4eeb-bd14-4794cda2714b ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-23-generic-pae } menuentry 'Ubuntu, avec Linux 3.2.0-23-generic-pae (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b echo 'Chargement de Linux 3.2.0-23-generic-pae ...' linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=96c613a6-59c1-4eeb-bd14-4794cda2714b ro recovery nomodeset echo 'Chargement du disque mémoire initial ...' initrd /boot/initrd.img-3.2.0-23-generic-pae } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 96c613a6-59c1-4eeb-bd14-4794cda2714b linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### 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 ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### christiane@christiane-System-Product-Name:~$
sudo update-grub
christiane@christiane-System-Product-Name:~$ sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-37-generic-pae Found initrd image: /boot/initrd.img-3.2.0-37-generic-pae Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae Found memtest86+ image: /boot/memtest86+.bin done christiane@christiane-System-Product-Name:~$
Merci d'être toujours sur cette résolution d'affichage des deux systèmes.
(Préférence pour ubuntu en premier, si possible).
--
christiane@christiane-System-Product-Name:~$ sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-37-generic-pae Found initrd image: /boot/initrd.img-3.2.0-37-generic-pae Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae Found memtest86+ image: /boot/memtest86+.bin Found Microsoft Windows XP Professionnel on /dev/sda1 done christiane@christiane-System-Product-Name:~$
--