# Grub et osprober

**URL:** <https://www.debian-fr.org/t/grub-et-osprober/92548>\
**Category:** Support Debian\
**Created:** [Juillet 14, 2026, 9:15 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548 "2026-07-14T09:15:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![josephtux](https://www.debian-fr.org/user_avatar/www.debian-fr.org/josephtux/32/3985_2.png) [@josephtux](https://www.debian-fr.org/u/josephtux)\
**Post date:** [Juillet 14, 2026, 9:15 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548/1 "2026-07-14T09:15:33Z")

</div>

Bonjour,  
plutôt que de m’exposer à des problèmes comme par le passé (perte des pilotes d’imprimante notamment) j’ai préféré installé trixie sur un autre groupe de volume (un autre SSD).  
J’ai donc actuellement la structure suivante:

—————————————  
Bookworm:

nvme0n1p1 vfat FAT32 monté sur /boot/efi  
nvmeon1p2 LVM2\_member qui porte le groupe de volumes VG0 pour Bookworm

Trixie:

nvme1n1p1 LVM2 member qui porte le groupe de volume VG1 pourTrixie  
nvme1nip2 vfat FAT32 qui ne sert à rien, prévu pour une copie éventuelle de efi  
—————————————

Depuis longtemps que je n’utilise plus que Trixie, le menu grub me permettant toujours de choisir.  
Je viens de mettre à jour Bookworm, et le menu grub ne me présente plus les choix de connexions Trixie.

Il y eu un message concernant os-prober, qui est installé et dont un fichier 30\_os-prober existe dans /etc/grub.d/

[Grub\_os-prober.log](https://www.debian-fr.org/uploads/short-url/gSMk34O1YSHj2maK9ffLXifLFmf.log) (1,2 Ko)

ma question est donc: comment remettre le menu Grub en ordre (avec Trixie et Bookworm, et Trixie en haut de liste et ouvert par défaut), avant d’envisager la mise à niveau de Bookworm vers Trixie.

---

<div class="post-metadata">

**Author:** ![vbreton](https://www.debian-fr.org/user_avatar/www.debian-fr.org/vbreton/32/11400_2.png) [@vbreton](https://www.debian-fr.org/u/vbreton)\
**Post date:** [Juillet 14, 2026, 10:31 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548/2 "2026-07-14T10:31:10Z")

</div>

Bonjour @josephtux,

Tant que la commande `grub-mkconfig` ou `update-grub` n’est pas lancée, les éventuelles modifications des fichiers de configuration de Grub ne sont pas prises en compte.

Ce lien pourrait vous être bien utile: [https://www.malekal.com/grub-modifier-ordre-demarrage/](https://www.malekal.com/grub-modifier-ordre-demarrage/)

---

<div class="post-metadata">

**Author:** ![josephtux](https://www.debian-fr.org/user_avatar/www.debian-fr.org/josephtux/32/3985_2.png) [@josephtux](https://www.debian-fr.org/u/josephtux)\
**Post date:** [Juillet 14, 2026, 10:58 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548/3 "2026-07-14T10:58:26Z")

</div>

Merci Vbreton,  
voici ce qu’affiche update-grub:

```
#update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-50-amd64
Found initrd image: /boot/initrd.img-6.1.0-50-amd64
Found linux image: /boot/vmlinuz-6.1.0-44-amd64
Found initrd image: /boot/initrd.img-6.1.0-44-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done

```

que faire avec cette indication?:

```auto
GRUB_DISABLE_OS_PROBER

```

---

<div class="post-metadata">

**Author:** ![josephtux](https://www.debian-fr.org/user_avatar/www.debian-fr.org/josephtux/32/3985_2.png) [@josephtux](https://www.debian-fr.org/u/josephtux)\
**Post date:** [Juillet 14, 2026, 11:12 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548/4 "2026-07-14T11:12:28Z")

</div>

> [@vbreton](#):
>
> Ce lien pourrait vous être bien utile: [https://www.malekal.com/grub-modifier-ordre-demarrage/](https://www.malekal.com/grub-modifier-ordre-demarrage/)

Ce lien propose de modifier /boot/grub/grub.cfg ce qui semble être déconseillé/interdit

Par ailleurs, un `grep os-prober /etc/grub.d/*` affiche:

```
30_os-prober:if ! command -v os-prober > /dev/null || ! command -v linux-boot-prober > /dev/null ; then
30_os-prober: # missing os-prober and/or linux-boot-prober
30_os-prober- exit 0
--
30_os-prober-if ["x${GRUB_DISABLE_OS_PROBER}" = "xtrue"]; then
30_os-prober: grub_warn "$(gettext_printf "os-prober will not be executed to detect other bootable partitions.\nSystems on them will not be added to the GRUB boot configuration.\nCheck GRUB_DISABLE_OS_PROBER documentation entry.")"
30_os-prober- exit 0
--
30_os-prober-
30_os-prober:grub_warn "$(gettext_printf "os-prober will be executed to detect other bootable partitions.\nIts output will be used to detect bootable binaries on them and create new boot entries.")"
30_os-prober-
30_os-prober:OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
30_os-prober-if [-z "${OSPROBED}"] ; then
30_os-prober: # empty os-prober output, nothing doing
30_os-prober- exit 0
--
30_os-prober-
30_os-prober: # os-prober returns text string followed by optional counter
30_os-prober- CLASS="--class $(echo "${LABEL}" | LC_ALL=C sed 's,[[:digit:]]*$,,' | cut -d' ' -f1 | tr 'A-Z' 'a-z' | LC_ALL=C sed 's,[^[:alnum:]_],_,g')"

```

---

<div class="post-metadata">

**Author:** ![bub](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/b/3ab097/32.png) [@bub](https://www.debian-fr.org/u/bub)\
**Post date:** [Juillet 14, 2026, 11:40 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548/5 "2026-07-14T11:40:45Z")

</div>

Bonjour,  
Si l’idée est de faire apparaitre les deux systèmes lors du menu de GrUB, il faut aller dans /etc/default/grub et changer la ligne en DISABLE\_OS\_PROBER=false (désactiver OS-PROBER= faux). puis **update-grub** pour que cela puisse être pris en compte.

---

<div class="post-metadata">

**Author:** ![josephtux](https://www.debian-fr.org/user_avatar/www.debian-fr.org/josephtux/32/3985_2.png) [@josephtux](https://www.debian-fr.org/u/josephtux)\
**Post date:** [Juillet 14, 2026, 11:45 UTC](https://www.debian-fr.org/t/grub-et-osprober/92548/6 "2026-07-14T11:45:33Z")

</div>

> [@bub](#):
>
> /etc/default/grub

Merci bub,  
bêtement, je ne trouvais pas `/etc/default/grub`, mais seulement `grub.d/`

Ne reste plus qu’à remettre Trixie en tête de liste et comme choix par défaut
