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 30/08/2025, à 10:14

Cimmerian

absence de Grub au démarrage - dual boot xubuntu / windows

Bonjour, j'ai refait une installation de xubuntu sur mon pc MSI CX612QF, sur lequel il y avait déjà un dual boot avec windows 7. Tout semble OK sauf que je n'ai pas de grub au démarrage pour pouvoir choisir sur quel OS je souhaite démarrer. Le PC démarre directement sur xubuntu. Pourtant avec gparted, je vois bien les partitions pour windows. Pouvez-vous m'aider svp ? Merci

Hors ligne

#2 Le 30/08/2025, à 10:36

nany

Re : absence de Grub au démarrage - dual boot xubuntu / windows

Bonjour,



Donne, s’il te plaît, le retour de :

sudo update-grub

Hors ligne

#3 Le 30/08/2025, à 11:17

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

hugo@hugo-CX61-2QF:~$ sudo update-grub
[sudo] Mot de passe de hugo : 
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.14.0-29-generic
Found initrd image: /boot/initrd.img-6.14.0-29-generic
Found linux image: /boot/vmlinuz-6.14.0-28-generic
Found initrd image: /boot/initrd.img-6.14.0-28-generic
Found memtest86+x64 image: /boot/memtest86+x64.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 7 on /dev/sda1
Adding boot menu entry for UEFI Firmware Settings ...
done
hugo@hugo-CX61-2QF:~$ 

Hors ligne

#4 Le 30/08/2025, à 11:20

nany

Re : absence de Grub au démarrage - dual boot xubuntu / windows

Os-prober est bien exécuté et Windows est détecté. Normalement le menu de GRUB devrait s’afficher au démarrage.

Mais, puisque ce n’est pas le cas, donne le retour de :

cat /etc/default/grub

Hors ligne

#5 Le 30/08/2025, à 11:47

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

hugo@hugo-CX61-2QF:~$ 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=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false

# 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_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"
hugo@hugo-CX61-2QF:~$ 

Hors ligne

#6 Le 30/08/2025, à 11:53

nany

Re : absence de Grub au démarrage - dual boot xubuntu / windows

Bien, on va forcer l’affichage du menu.

Donne le retour de :

sudo sed -i 's/hidden/menu/;s/GRUB_TIMEOUT=0/GRUB_TIMEOUT=10/' /etc/default/grub && cat /etc/default/grub

Puis à nouveau de :

sudo update-grub

Hors ligne

#7 Le 30/08/2025, à 12:21

xubu1957

Re : absence de Grub au démarrage - dual boot xubuntu / windows

Bonjour,

Ce n'est pas une Voyager ?


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [ Résolu ] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#8 Le 30/08/2025, à 12:54

ceric

Re : absence de Grub au démarrage - dual boot xubuntu / windows

Bonjour,
j'ai résolu un problème similaire dans ce fil.

Dernière modification par ceric (Le 30/08/2025, à 12:54)


Mac mini 7,1 en dual boot Ubuntu Gnome 22.04.5 [LTS] & macOS (Monterey)
HP elitedesk 800 G2 SFF en dual boot Ubuntu Gnome 24.04.1 [LTS] & Mageia 9
HP zBook G3 15" en dual boot Xubuntu 24.04.2 [LTS] & Windows 11

Hors ligne

#9 Le 30/08/2025, à 16:18

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

nany a écrit :

Bien, on va forcer l’affichage du menu.

Donne le retour de :

sudo sed -i 's/hidden/menu/;s/GRUB_TIMEOUT=0/GRUB_TIMEOUT=10/' /etc/default/grub && cat /etc/default/grub

Puis à nouveau de :

sudo update-grub
hugo@hugo-CX61-2QF:~$ sudo sed -i 's/hidden/menu/;s/GRUB_TIMEOUT=0/GRUB_TIMEOUT=10/' /etc/default/grub && cat /etc/default/grub
[sudo] Mot de passe de hugo : 
# 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_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false

# 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_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"
hugo@hugo-CX61-2QF:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.14.0-29-generic
Found initrd image: /boot/initrd.img-6.14.0-29-generic
Found linux image: /boot/vmlinuz-6.14.0-28-generic
Found initrd image: /boot/initrd.img-6.14.0-28-generic
Found memtest86+x64 image: /boot/memtest86+x64.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 7 on /dev/sda1
Adding boot menu entry for UEFI Firmware Settings ...
done
hugo@hugo-CX61-2QF:~$ 

Hors ligne

#10 Le 30/08/2025, à 16:19

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

xubu1957 a écrit :

Non, j'ai installé la dernière LTS de Xubuntu

Hors ligne

#11 Le 30/08/2025, à 16:58

ceric

Re : absence de Grub au démarrage - dual boot xubuntu / windows

@Cimmerian
As-tu été sur mon fil?
Il faudrait supprimer le # qui est devant la ligne GRUB_DISABLE_OS_PROBER=false (uniquement à cette ligne)
et exécuter ensuite :

sudo os-prober

Pour qu'il recense les OS/distribution.
et enfin exécuter:

sudo update-grub

A confirmer par des experts, personnellement ça a marché sur mon zbook (cf ma signature)

Dernière modification par ceric (Le 30/08/2025, à 17:03)


Mac mini 7,1 en dual boot Ubuntu Gnome 22.04.5 [LTS] & macOS (Monterey)
HP elitedesk 800 G2 SFF en dual boot Ubuntu Gnome 24.04.1 [LTS] & Mageia 9
HP zBook G3 15" en dual boot Xubuntu 24.04.2 [LTS] & Windows 11

Hors ligne

#12 Le 30/08/2025, à 17:24

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

ceric a écrit :

@Cimmerian
As-tu été sur mon fil?
Il faudrait supprimer le # qui est devant la ligne GRUB_DISABLE_OS_PROBER=false (uniquement à cette ligne)
et exécuter ensuite :

sudo os-prober

Pour qu'il recense les OS/distribution.
et enfin exécuter:

sudo update-grub

A confirmer par des experts, personnellement ça a marché sur mon zbook (cf ma signature)

je fais bien la modif dans le fichier /etc/default/grub ?

Hors ligne

#13 Le 30/08/2025, à 17:42

ceric

Re : absence de Grub au démarrage - dual boot xubuntu / windows

oui uniquement dans ce fichier.

sudo nano /etc/default/grub

si tu sais te servir de nano
Tu sauvegardes et t'exécutes une à une dans l'ordre les deux autres.

Dernière modification par ceric (Le 30/08/2025, à 17:46)


Mac mini 7,1 en dual boot Ubuntu Gnome 22.04.5 [LTS] & macOS (Monterey)
HP elitedesk 800 G2 SFF en dual boot Ubuntu Gnome 24.04.1 [LTS] & Mageia 9
HP zBook G3 15" en dual boot Xubuntu 24.04.2 [LTS] & Windows 11

Hors ligne

#14 Le 30/08/2025, à 17:59

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

c'est bon, j'ai modifié le fichier grub, puis j'ai lancé les 2 lignes de commande. Voici le résultat:

hugo@hugo-CX61-2QF:~$ sudo os-prober
[sudo] Mot de passe de hugo : 
/dev/sda1:Windows 7:Windows:chain
hugo@hugo-CX61-2QF:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.14.0-29-generic
Found initrd image: /boot/initrd.img-6.14.0-29-generic
Found linux image: /boot/vmlinuz-6.14.0-28-generic
Found initrd image: /boot/initrd.img-6.14.0-28-generic
Found memtest86+x64 image: /boot/memtest86+x64.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 7 on /dev/sda1
Adding boot menu entry for UEFI Firmware Settings ...
done
hugo@hugo-CX61-2QF:~$ 

Hors ligne

#15 Le 30/08/2025, à 18:01

ceric

Re : absence de Grub au démarrage - dual boot xubuntu / windows

Essaies de rebooter ton PC maintenant.


Mac mini 7,1 en dual boot Ubuntu Gnome 22.04.5 [LTS] & macOS (Monterey)
HP elitedesk 800 G2 SFF en dual boot Ubuntu Gnome 24.04.1 [LTS] & Mageia 9
HP zBook G3 15" en dual boot Xubuntu 24.04.2 [LTS] & Windows 11

Hors ligne

#16 Le 30/08/2025, à 18:16

Cimmerian

Re : absence de Grub au démarrage - dual boot xubuntu / windows

C'est bon ça fonctionne. Un grand merci à tous.

Hors ligne

#17 Le 30/08/2025, à 18:54

ceric

Re : absence de Grub au démarrage - dual boot xubuntu / windows

@Cimmerian, pourrais-tu modifier ton premier post et apposer devant [Résolu], s'il te plait?
C'est pour signaler aux futurs lecteurs que ton grub a été retrouvé. smile


Mac mini 7,1 en dual boot Ubuntu Gnome 22.04.5 [LTS] & macOS (Monterey)
HP elitedesk 800 G2 SFF en dual boot Ubuntu Gnome 24.04.1 [LTS] & Mageia 9
HP zBook G3 15" en dual boot Xubuntu 24.04.2 [LTS] & Windows 11

Hors ligne