# Pas de windows dans Grub

**URL:** <https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973>\
**Category:** Support Debian\
**Created:** [Octobre 12, 2023, 8:32 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973 "2023-10-12T20:32:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![David86](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@David86](https://www.debian-fr.org/u/David86)\
**Post date:** [Octobre 12, 2023, 8:32 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/1 "2023-10-12T20:32:39Z")

</div>

Bonjour à tous,  
Je viens d’installer la dernière version de debian.  
Windows était déjà installé dans une autre partition.  
Grub ne détecte pas windows au démarrage.  
os-prober est bien installé  
GRUB\_DISABLE\_OS\_PROBER est bien false  
Du coup, je sèche un peu…  
Quelqu’un pourrait me venir en aide ?  
Merci !  
David

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Octobre 12, 2023, 8:50 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/2 "2023-10-12T20:50:54Z")

</div>

Qu’affichent les commandes suivantes ?

```
os-prober
fdisk -l
ls /sys/firmware
```

---

<div class="post-metadata">

**Author:** ![David86](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@David86](https://www.debian-fr.org/u/David86)\
**Post date:** [Octobre 13, 2023, 6:48 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/3 "2023-10-13T06:48:05Z")

</div>

**os-prober :**

```auto
/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi

```

**fdisk -l :**

```auto
*Disque /dev/sdb : 931,51 GiB, 1000204886016 octets, 1953525168 secteurs*
*Modèle de disque : HGST HTS721010A9*
*Unités : secteur de 1 × 512 = 512 octets*
*Taille de secteur (logique / physique) : 512 octets / 4096 octets*
*taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets*
*Type d'étiquette de disque : gpt*
*Identifiant de disque : AED6203C-25D3-43D1-A312-2E3AD4632E5B*

*Périphérique Début Fin Secteurs Taille Type*
*/dev/sdb1 2048 1953523711 1953521664 931,5G Données de base Microsoft*

*Disque /dev/sda : 465,76 GiB, 500107862016 octets, 976773168 secteurs*
*Modèle de disque : WDC WDS500G2B0B-*
*Unités : secteur de 1 × 512 = 512 octets*
*Taille de secteur (logique / physique) : 512 octets / 512 octets*
*taille d'E/S (minimale / optimale) : 512 octets / 512 octets*
*Type d'étiquette de disque : gpt*
*Identifiant de disque : 3B7C1A48-B3A1-429C-86DA-47DF5920DB33*

*Périphérique Début Fin Secteurs Taille Type*
*/dev/sda1 2048 206847 204800 100M Système EFI*
*/dev/sda2 206848 239615 32768 16M Réservé Microsoft*
*/dev/sda3 239616 487843839 487604224 232,5G Données de base Microsoft*
*/dev/sda4 487843840 536672255 48828416 23,3G Système de fichiers Linux*
*/dev/sda5 975448064 976769023 1320960 645M Environnement de récupération Windows*
*/dev/sda6 536672256 556204031 19531776 9,3G Système de fichiers Linux*
*/dev/sda7 556204032 558204927 2000896 977M Partition d'échange Linux*
*/dev/sda8 558204928 562110463 3905536 1,9G Système de fichiers Linux*
*/dev/sda9 562110464 975448063 413337600 197,1G Système de fichiers Linux*

```

Les entrées de la table de partitions ne sont pas dans l’ordre du disque.

**ls /sys/firmware :**

```auto
acpi dmi efi memmap

```

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Octobre 13, 2023, 6:57 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/4 "2023-10-13T06:57:05Z")

</div>

os-prober détecte bien le gestionnaire d’amorçage EFI de Windows. Si GRUB\_DISABLE\_OS\_PROBER=false dans /etc/default/grub, alors il n’y a pas de raison que `update-grub` ne l’ajoute pas au menu de GRUB. On peut voir le contenu du fichier /etc/default/grub et la sortie complète de `update-grub` ?

---

<div class="post-metadata">

**Author:** ![David86](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@David86](https://www.debian-fr.org/u/David86)\
**Post date:** [Octobre 13, 2023, 7:13 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/5 "2023-10-13T07:13:37Z")

</div>

```auto
# 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=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
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"

```

---

<div class="post-metadata">

**Author:** ![David86](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@David86](https://www.debian-fr.org/u/David86)\
**Post date:** [Octobre 13, 2023, 7:15 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/6 "2023-10-13T07:15:06Z")

</div>

```auto
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-13-amd64
Found initrd image: /boot/initrd.img-6.1.0-13-amd64
Found linux image: /boot/vmlinuz-6.1.0-12-amd64
Found initrd image: /boot/initrd.img-6.1.0-12-amd64
Found linux image: /boot/vmlinuz-6.1.0-10-amd64
Found initrd image: /boot/initrd.img-6.1.0-10-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

```

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Octobre 13, 2023, 7:57 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/7 "2023-10-13T07:57:56Z")

</div>

> [@David86](#):
>
> #GRUB\_DISABLE\_OS\_PROBER=false

La ligne est commentée.

---

<div class="post-metadata">

**Author:** ![David86](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@David86](https://www.debian-fr.org/u/David86)\
**Post date:** [Octobre 13, 2023, 8:21 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/8 "2023-10-13T08:21:14Z")

</div>

Il faut que j’enlève le #, c’est ça ?

---

<div class="post-metadata">

**Author:** ![PascalHambourg](https://www.debian-fr.org/user_avatar/www.debian-fr.org/pascalhambourg/32/5837_2.png) [@PascalHambourg](https://www.debian-fr.org/u/PascalHambourg)\
**Post date:** [Octobre 13, 2023, 8:25 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/9 "2023-10-13T08:25:16Z")

</div>

Oui, c’est ça.

---

<div class="post-metadata">

**Author:** ![David86](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/d/90db22/32.png) [@David86](https://www.debian-fr.org/u/David86)\
**Post date:** [Octobre 13, 2023, 8:27 UTC](https://www.debian-fr.org/t/pas-de-windows-dans-grub/88973/10 "2023-10-13T08:27:20Z")

</div>

Ça fonctionne !  
Merci beaucoup 🙂
