Grub don't show Windows 10 entry

Hi!
Windows 10 is not beeing detected by grub (but is still accessible from the bios).

Context: I had a dual boot Windows - Ubuntu 20.04. Because of a bluetooth driver problem, I wanted to switch to Ubuntu 22.04 but as I had an extra hard drive I transferred my old system to it (I kept it as a precaution).
For different reasons I think to move to another linux flavor than Ubuntu, I decided to try Manjaro KDE.

Initial :
1TB disk:

  • boot partition (windows bootloader + Ubuntu grub)
  • Windows 10
  • Ubuntu 22.04
    500GB disk:
  • Old Ubuntu 20.04

I install Manjaro, without worrying about the grub.
1TB disk:

  • boot partition (windows bootloader + Ubuntu grub)
  • Windows 10
  • Ubuntu 22.04
    500GB disk:
  • Old Ubuntu 20.04
  • Manjaro

I realize that the Ubuntu grub does not know how to boot Manjaro. I reinstall by indicating the boot partition to the installer of Manjaro.
1TB disk:

  • boot partition (windows bootloader + Ubuntu grub + Manjaro grub)
  • Windows 10
  • Ubuntu 22.04
    500GB disk:
  • Old Ubuntu 20.04
  • Manjaro

The grub does not show Windows but after an update of the grub Windows becomes detected. I test Manjaro and it’s good, I decide to reinstall it by giving it as much space as possible, because I’m going to use it for a few months as my main system to check that it can replace Ubuntu.
1TB disk:

  • boot partition (windows bootloader + Ubuntu grub + Manjaro grub (reinstalled))
  • Windows 10
  • Ubuntu 22.04
    500GB disk:
  • Old Ubuntu 20.04
  • Manjaro (takes the maximum space)

And there impossible to find the Windows entry in the grub.

Here is what I tried:

sudo parted -l
Modèle : ATA Samsung SSD 860 (scsi)
Disque /dev/sda : 500GB
Taille des secteurs (logiques/physiques) : 512B/512B
Table de partitions : gpt
Drapeaux de disque :

Numéro  Début   Fin    Taille  Système de fichiers  Nom  Drapeaux
 1      1049kB  118GB  118GB   ext4
 2      118GB   500GB  382GB   ext4


Modèle : ATA ST3000DM008-2DM1 (scsi)
Disque /dev/sdb : 3001GB
Taille des secteurs (logiques/physiques) : 512B/4096B
Table de partitions : gpt
Drapeaux de disque :

Numéro  Début   Fin     Taille  Système de fichiers  Nom                           Drapeaux
 1      17,4kB  134MB   134MB                        Microsoft reserved partition  msftres
 2      135MB   1074GB  1074GB  ntfs                 Basic data partition          msftdata
 3      1074GB  3001GB  1927GB  ext4                 LinuxHDD


Modèle : ATA Samsung SSD 870 (scsi)
Disque /dev/sdc : 2000GB
Taille des secteurs (logiques/physiques) : 512B/512B
Table de partitions : loop
Drapeaux de disque :

Numéro  Début  Fin     Taille  Système de fichiers  Drapeaux
 1      0,00B  2000GB  2000GB  ext4


Modèle : Samsung SSD 980 PRO 1TB (nvme)
Disque /dev/nvme0n1 : 1000GB
Taille des secteurs (logiques/physiques) : 512B/512B
Table de partitions : gpt
Drapeaux de disque :

Numéro  Début   Fin     Taille  Système de fichiers  Nom                   Drapeaux
 1      1049kB  473MB   472MB   ntfs                 Basic data partition  caché, diag
 2      473MB   577MB   104MB   fat32                EFI system partition  bios_grub
 3      577MB   593MB   16,8MB                       No name               msftres
 4      593MB   537GB   537GB   ntfs                 Basic data partition  msftdata
 5      537GB   538GB   544MB   ntfs                                       caché, diag
 6      538GB   1000GB  462GB   ext4
sudo os-prober
/dev/nvme0n1p6:Ubuntu 22.04 LTS (22.04):Ubuntu:linux
/dev/sda1:Ubuntu 20.04.4 LTS (20.04):Ubuntu1:linux
su -c "ls /boot/efi/EFI/"
Boot  Manjaro  Microsoft  ubuntu
sudo update-grub
Création du fichier de configuration GRUB…
Thème trouvé : /usr/share/grub/themes/manjaro/theme.txt
Image Linux trouvée : /boot/vmlinuz-5.15-x86_64
Image mémoire initiale trouvée : /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Attention : le sondeur de systèmes d'exploitation sera exécuté pour détecter d'autres partitions amorçables.
Sa sortie sera utilisée pour détecter les binaires amorçables qu'elles contiennent et créer de nouvelles entrées d'amorçage.
Ubuntu 22.04 LTS (22.04) trouvé sur /dev/nvme0n1p6
Ubuntu 20.04.4 LTS (20.04) trouvé sur /dev/sda1
Ajout de l'entrée du menu d'amorçage pour les paramètres du firmware UEFI …
fait

Sorry, it’s french but it just do its job and don’t know about windows.

sudo mv /etc/grub.d /etc/grub.d.old
sudo pacman -S grub
sudo update-grub

exact same result

test -d /sys/firmware/efi && echo efi || echo bios
efi
sudo grub-mkconfig
Création du fichier de configuration GRUB…
#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

set menu_color_normal=light-gray/black
set menu_color_highlight=green/black

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  73820c40-983b-4a09-8919-6f56a02d8a65
else
  search --no-floppy --fs-uuid --set=root 73820c40-983b-4a09-8919-6f56a02d8a65
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
Thème trouvé : /usr/share/grub/themes/manjaro/theme.txt
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  73820c40-983b-4a09-8919-6f56a02d8a65
else
  search --no-floppy --fs-uuid --set=root 73820c40-983b-4a09-8919-6f56a02d8a65
fi
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_24.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_48.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_bold_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_mono_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-18.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b18.pf2
insmod png
set theme=($root)/usr/share/grub/themes/manjaro/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=hidden
  set timeout=5
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 5 ; then
  set timeout=0
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
Image Linux trouvée : /boot/vmlinuz-5.15-x86_64
Image mémoire initiale trouvée : /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-73820c40-983b-4a09-8919-6f56a02d8a65' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  73820c40-983b-4a09-8919-6f56a02d8a65
        else
          search --no-floppy --fs-uuid --set=root 73820c40-983b-4a09-8919-6f56a02d8a65
        fi
        linux   /boot/vmlinuz-5.15-x86_64 root=UUID=73820c40-983b-4a09-8919-6f56a02d8a65 rw  quiet apparmor=1 security=apparmor udev.log_priority=3
        initrd  /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
}
submenu 'Options avancées pour Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-73820c40-983b-4a09-8919-6f56a02d8a65' {
        menuentry 'Manjaro Linux (Kernel: 5.15.41-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.41-1-MANJARO x64-advanced-73820c40-983b-4a09-8919-6f56a02d8a65' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  73820c40-983b-4a09-8919-6f56a02d8a65
                else
                  search --no-floppy --fs-uuid --set=root 73820c40-983b-4a09-8919-6f56a02d8a65
                fi
                linux   /boot/vmlinuz-5.15-x86_64 root=UUID=73820c40-983b-4a09-8919-6f56a02d8a65 rw  quiet apparmor=1 security=apparmor udev.log_priority=3
                initrd  /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
        }
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
        menuentry 'Manjaro Linux (Kernel: 5.15.41-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.41-1-MANJARO x64-fallback-73820c40-983b-4a09-8919-6f56a02d8a65' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  73820c40-983b-4a09-8919-6f56a02d8a65
                else
                  search --no-floppy --fs-uuid --set=root 73820c40-983b-4a09-8919-6f56a02d8a65
                fi
                linux   /boot/vmlinuz-5.15-x86_64 root=UUID=73820c40-983b-4a09-8919-6f56a02d8a65 rw  quiet apparmor=1 security=apparmor udev.log_priority=3
                initrd  /boot/initramfs-5.15-x86_64-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
Attention : le sondeur de systèmes d'exploitation sera exécuté pour détecter d'autres partitions amorçables.
Sa sortie sera utilisée pour détecter les binaires amorçables qu'elles contiennent et créer de nouvelles entrées d'amorçage.
Ubuntu 22.04 LTS (22.04) trouvé sur /dev/nvme0n1p6
menuentry 'Ubuntu 22.04 LTS (22.04) (sur /dev/nvme0n1p6)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-582268f2-922f-4858-b8cd-15c7990a92f0' {
        savedefault
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root 582268f2-922f-4858-b8cd-15c7990a92f0
        linux /boot/vmlinuz-5.15.0-30-generic root=UUID=582268f2-922f-4858-b8cd-15c7990a92f0 ro quiet splash $vt_handoff
        initrd /boot/initrd.img-5.15.0-30-generic
}
submenu 'Options avancées pour Ubuntu 22.04 LTS (22.04) (sur /dev/nvme0n1p6)' $menuentry_id_option 'osprober-gnulinux-advanced-582268f2-922f-4858-b8cd-15c7990a92f0' {
        menuentry 'Ubuntu (sur /dev/nvme0n1p6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-30-generic--582268f2-922f-4858-b8cd-15c7990a92f0' {
                savedefault
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 582268f2-922f-4858-b8cd-15c7990a92f0
                linux /boot/vmlinuz-5.15.0-30-generic root=UUID=582268f2-922f-4858-b8cd-15c7990a92f0 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.15.0-30-generic
        }
        menuentry 'Ubuntu, with Linux 5.15.0-30-generic (sur /dev/nvme0n1p6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-30-generic--582268f2-922f-4858-b8cd-15c7990a92f0' {
                savedefault
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 582268f2-922f-4858-b8cd-15c7990a92f0
                linux /boot/vmlinuz-5.15.0-30-generic root=UUID=582268f2-922f-4858-b8cd-15c7990a92f0 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.15.0-30-generic
        }
        menuentry 'Ubuntu, with Linux 5.15.0-30-generic (recovery mode) (sur /dev/nvme0n1p6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-30-generic--582268f2-922f-4858-b8cd-15c7990a92f0' {
                savedefault
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 582268f2-922f-4858-b8cd-15c7990a92f0
                linux /boot/vmlinuz-5.15.0-30-generic root=UUID=582268f2-922f-4858-b8cd-15c7990a92f0 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.15.0-30-generic
        }
        menuentry 'Ubuntu, with Linux 5.15.0-27-generic (sur /dev/nvme0n1p6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-27-generic--582268f2-922f-4858-b8cd-15c7990a92f0' {
                savedefault
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 582268f2-922f-4858-b8cd-15c7990a92f0
                linux /boot/vmlinuz-5.15.0-27-generic root=UUID=582268f2-922f-4858-b8cd-15c7990a92f0 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.15.0-27-generic
        }
        menuentry 'Ubuntu, with Linux 5.15.0-27-generic (recovery mode) (sur /dev/nvme0n1p6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-27-generic--582268f2-922f-4858-b8cd-15c7990a92f0' {
                savedefault
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 582268f2-922f-4858-b8cd-15c7990a92f0
                linux /boot/vmlinuz-5.15.0-27-generic root=UUID=582268f2-922f-4858-b8cd-15c7990a92f0 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.15.0-27-generic
        }
}

Ubuntu 20.04.4 LTS (20.04) trouvé sur /dev/sda1
menuentry 'Ubuntu 20.04.4 LTS (20.04) (sur /dev/sda1)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-bc651d79-e847-485d-a17c-95104c77c9a1' {
        savedefault
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  bc651d79-e847-485d-a17c-95104c77c9a1
        else
          search --no-floppy --fs-uuid --set=root bc651d79-e847-485d-a17c-95104c77c9a1
        fi
        linux /boot/vmlinuz-5.13.0-44-generic root=UUID=bc651d79-e847-485d-a17c-95104c77c9a1 ro quiet splash $vt_handoff
        initrd /boot/initrd.img-5.13.0-44-generic
}
submenu 'Options avancées pour Ubuntu 20.04.4 LTS (20.04) (sur /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-bc651d79-e847-485d-a17c-95104c77c9a1' {
        menuentry 'Ubuntu (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.13.0-44-generic--bc651d79-e847-485d-a17c-95104c77c9a1' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  bc651d79-e847-485d-a17c-95104c77c9a1
                else
                  search --no-floppy --fs-uuid --set=root bc651d79-e847-485d-a17c-95104c77c9a1
                fi
                linux /boot/vmlinuz-5.13.0-44-generic root=UUID=bc651d79-e847-485d-a17c-95104c77c9a1 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.13.0-44-generic
        }
        menuentry 'Ubuntu, avec Linux 5.13.0-44-generic (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.13.0-44-generic--bc651d79-e847-485d-a17c-95104c77c9a1' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  bc651d79-e847-485d-a17c-95104c77c9a1
                else
                  search --no-floppy --fs-uuid --set=root bc651d79-e847-485d-a17c-95104c77c9a1
                fi
                linux /boot/vmlinuz-5.13.0-44-generic root=UUID=bc651d79-e847-485d-a17c-95104c77c9a1 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.13.0-44-generic
        }
        menuentry 'Ubuntu, avec Linux 5.13.0-44-generic (recovery mode) (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.13.0-44-generic--bc651d79-e847-485d-a17c-95104c77c9a1' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  bc651d79-e847-485d-a17c-95104c77c9a1
                else
                  search --no-floppy --fs-uuid --set=root bc651d79-e847-485d-a17c-95104c77c9a1
                fi
                linux /boot/vmlinuz-5.13.0-44-generic root=UUID=bc651d79-e847-485d-a17c-95104c77c9a1 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.13.0-44-generic
        }
        menuentry 'Ubuntu, avec Linux 5.13.0-40-generic (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.13.0-40-generic--bc651d79-e847-485d-a17c-95104c77c9a1' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  bc651d79-e847-485d-a17c-95104c77c9a1
                else
                  search --no-floppy --fs-uuid --set=root bc651d79-e847-485d-a17c-95104c77c9a1
                fi
                linux /boot/vmlinuz-5.13.0-40-generic root=UUID=bc651d79-e847-485d-a17c-95104c77c9a1 ro quiet splash $vt_handoff
                initrd /boot/initrd.img-5.13.0-40-generic
        }
        menuentry 'Ubuntu, avec Linux 5.13.0-40-generic (recovery mode) (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.13.0-40-generic--bc651d79-e847-485d-a17c-95104c77c9a1' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  bc651d79-e847-485d-a17c-95104c77c9a1
                else
                  search --no-floppy --fs-uuid --set=root bc651d79-e847-485d-a17c-95104c77c9a1
                fi
                linux /boot/vmlinuz-5.13.0-40-generic root=UUID=bc651d79-e847-485d-a17c-95104c77c9a1 ro recovery nomodeset dis_ucode_ldr
                initrd /boot/initrd.img-5.13.0-40-generic
        }
}

set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
Ajout de l'entrée du menu d'amorçage pour les paramètres du firmware UEFI …
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
        fwsetup
}
### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
fait
lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 465,8G  0 disk 
├─sda1        8:1    0   110G  0 part 
└─sda2        8:2    0 355,8G  0 part /
sdb           8:16   0   2,7T  0 disk 
├─sdb1        8:17   0   128M  0 part 
├─sdb2        8:18   0  1000G  0 part 
└─sdb3        8:19   0   1,8T  0 part /run/media/tistus/LinuxData
sdc           8:32   0   1,8T  0 disk 
nvme0n1     259:0    0 931,5G  0 disk 
├─nvme0n1p1 259:1    0   450M  0 part 
├─nvme0n1p2 259:2    0    99M  0 part /boot/efi
├─nvme0n1p3 259:3    0    16M  0 part 
├─nvme0n1p4 259:4    0   500G  0 part 
├─nvme0n1p5 259:5    0   519M  0 part 
└─nvme0n1p6 259:6    0 430,5G  0 part 
efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0002,0001
Boot0000* Windows Boot Manager  HD(2,GPT,02b3df44-6802-4ca8-92b5-a3ea960c7460,0xe1800,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0001* Windows Boot Manager  HD(2,GPT,ec3aeb8e-09b2-4899-b166-a81d82eba11a,0xe1800,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)
Boot0002* ubuntu        HD(2,GPT,ec3aeb8e-09b2-4899-b166-a81d82eba11a,0xe1800,0x31800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0003* Manjaro       HD(2,GPT,ec3aeb8e-09b2-4899-b166-a81d82eba11a,0xe1800,0x31800)/File(\EFI\MANJARO\GRUBX64.EFI)

I thank you for any help.

Your Windows is installed in BIOS mode while your Manjaro is installed in UEFI mode. When they are in different modes, dual boot is not possible in grub.

You have to change Windows to UEFI mode (possibly reinstalling but look for a tool called mbr2gpt) or install Manjaro in BIOS mode.

1 Like

format GPT , but no flag Boot- ESP , so it was under bios mode ( fallback if not all options EFI are ok )

with last version Grub 2.06 and vulnerabilities ( 2019 - 2020 - 2021 ),

  • os-prober by default do not recognize boot Windows

about Grub Manjaro , you have to check

  • Secure boot desactived
  • CSM boot desactived
  • FastBoot desactived
  • no Legacy
  • UEFI only ( not UEFI windows )
  • all disks on AHCI ( not raid )
  • Optane/RST desactived

in case of dual boot , you will have to create 2 profiles , one for windows , another for linux in UEFI motherboard profiles.

2 Likes

How do you see that Windows is in bios mode?
I find it weird considering the result of some commands, and especially knowing that Windows was accessible from the grub during my previous Manjaro installation, as well as from the ubuntu grub. The Manjaro grub sees Ubuntu sessions so they are in UEFI, so if Windows was in BIOS no grub would ever see it, right?
I could be wrong but the result of the command suggests that everything is UEFI…

su -c "ls /boot/efi/EFI/"

Again, I maybe mistake. Can you explain?
Thanks for the answer.

Install by windows has created this :
format GPT , but no flag Boot- ESP , so it was under bios mode ( fallback if not all options EFI are ok )

I’m not sure to understand, it was in bios mode on a GPT?

os-prober by default do not recognize boot Windows

I don’t understand why it worked once. That only make a month since I installed manjaro the first time and the multi-boot worked… Can we change that default behavior?

Secure boot desactived
CSM boot desactived
FastBoot desactived
no Legacy
UEFI only ( not UEFI wibdows )
all disks on AHCI ( not raid )
Optane/RST desactived

I’ll check everything, I know that Secure boot and FastBoot are disabled.

in case of dual boot , you will have to create 2 profiles , one for windows , another for linux.

Sorry, can you explain, you mean 2 grub profiles?

Thank you for the answer, sorry I didn’t understand everything.

You are right, I am not so sure right now. I have to admit that this morning I read your post “diagonally” so some details just went unnoticed. The BIOS/UEFI thing is usually the number one cause of these type of problems.

I will look more carefully to this, but in the meantime you can check the BIOS/UEFI thing in your Windows installation directly (for example with this).

Also you can run os-prober and check the logs with journalctl after that. os-prober logs quite a lot and usually it says why some partition/boot entry have not been taken into account.

1 Like

I think Stephane is right. The problem in this case is the flag of the ESP (/dev/nvme0n1p2). It should be boot (Windows usually add also a hidden flag to this partition).

os-prober is probably ignoring that partition because of the flag, and does not look inside for boot entries. If you notice, os-prober finds your ubuntu installations directly by the partition they reside, not by the ESP entry.

So the solution is to change the ESP flags to boot/ESP (they are actually the same flag)

Probably you can also remove entry number 0 from efibootmgr as it seems to be some old entry. It points to the second partition of some other disk but I don’t see any other ESP in your disks.

Edit: Also I confirm that I was wrong and your Windows seems to be in UEFI mode.

2 Likes

That was it! Thank you both so much.

So what I did was using gparted to set boot / esp flag on the bootloader partition (instead of the bios-grub initial flag).
Then os-prober started seeing windows again.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.