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 12/01/2024, à 09:30

joshw

[RESOLU] Grub ne détecte pas Windows

Bonjour,

Mon installation est la suivante : 3 disques durs :
* Un disque pour Ubuntu (UEFI)
* Un disque pour Windows ( BIOS je pense)
* Un disque Backup

Je viens de découvrir que ma machine était compatible UEFI et Ubuntu est installé en mode UEFI
J'essaye de détecter mon installation de Win 10...

Voici le contenu de mon fichier grub :

avid@david-All-Series:~$ sudo 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=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_OS_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-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 lorsque je fais la mise à jour de GRUB, il ne détecte pas Windows.

david@david-All-Series:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Found linux image: /boot/vmlinuz-6.2.0-26-generic
Found initrd image: /boot/initrd.img-6.2.0-26-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
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

On peut voir notament ces deux lignes :

Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.

Dans l'état de ma configuration, est-il possible de créer un menu de démarrage comme ceci ?

1 Ubuntu
2 Windows

Voici plus d'infos sur ma configuration hardware :

david@david-All-Series:~$ sudo hwinfo --short
cpu:                                                            
                       Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz, 1375 MHz
                       Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz, 985 MHz
                       Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz, 825 MHz
                       Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz, 861 MHz
keyboard:
  /dev/input/event2    Microsoft Wired Keyboard 600 (model 1576)
mouse:
  /dev/input/mice      Microsoft Comfort Mouse 4500
monitor:
                       Beyond TV
graphics card:
                       ATI Cape Verde PRO [Radeon HD 7750/8740 / R7 250E]
sound:
                       Intel 8 Series/C220 Series Chipset High Definition Audio Controller
                       ATI Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
storage:
                       Intel 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
network:
  enp3s0               Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
  wlp4s0               Qualcomm Atheros AR93xx Wireless Network Adapter
network interface:
  enp3s0               Ethernet network interface
  wlp4s0               Ethernet network interface
  lo                   Loopback network interface
disk:
  /dev/sdd             Generic Storage Device
  /dev/sdb             WDC WD10EZEX-00W
  /dev/sdc             WDC WD10EZEX-08W
  /dev/sda             HUA723020ALA640
partition:
  /dev/sdb1            Partition
  /dev/sdb2            Partition
  /dev/sdb3            Partition
  /dev/sdc1            Partition
  /dev/sda1            Partition
  /dev/sda2            Partition
  /dev/sda3            Partition
  /dev/sda4            Partition
  /dev/sda5            Partition
cdrom:
  /dev/sr0             TSSTcorp CDDVDW SH-224DB
usb controller:
                       Intel 8 Series/C220 Series Chipset Family USB EHCI #2
                       Intel 8 Series/C220 Series Chipset Family USB EHCI #1
                       Intel 8 Series/C220 Series Chipset Family USB xHCI
bios:
                       BIOS
bridge:
                       Intel 8 Series/C220 Series Chipset Family PCI Express Root Port #1
                       Intel H87 Express LPC Controller
                       Intel Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
                       Intel 4th Gen Core Processor DRAM Controller
                       Intel 8 Series/C220 Series Chipset Family PCI Express Root Port #5
                       Intel 8 Series/C220 Series Chipset Family PCI Express Root Port #3
hub:
                       Intel Hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 3.0 root hub
                       Linux Foundation 2.0 root hub
                       Intel Hub
                       Linux Foundation 2.0 root hub
memory:
                       Main Memory
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
                       PS/2 Controller
                       Intel 8 Series/C220 Series Chipset Family MEI Controller #1
                       Intel 8 Series/C220 Series Chipset Family SMBus Controller
  /dev/ttyS0           16550A
  /dev/input/event3    Microsoft Wired Keyboard 600 (model 1576)

Je n'ai pas encore vérifié l'opiton CMS dans le BIOS...
Idéalement, je voudrais que Windows ne touche pas au mbr de Linux...

Pourriez-vous m'aider s'il vous plaît ?

Dernière modification par joshw (Le 18/01/2024, à 17:36)

Hors ligne

#2 Le 12/01/2024, à 09:51

geole

Re : [RESOLU] Grub ne détecte pas Windows

Bonjour.
Le contenu des retours des commandes est contradictoire.
D'un coté, il est dit de rechercher les autres O.S.

GRUB_OS_DISABLE_OS_PROBER=false

et de l'autre, il est dit de ne pas le faire.

Warning: os-prober will not be executed to detect other bootable partitions.

Du coup, lance un boot-info et publie l'URL qui sera générée.
Note que si windows est installé totalemenr sur un disque en technique legacy , il est possible de le convertir en technique EFI grace à l'application MBR2GPT.
.

Dernière modification par geole (Le 12/01/2024, à 10:00)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#3 Le 12/01/2024, à 09:59

nany

Re : [RESOLU] Grub ne détecte pas Windows

Bonjour,



geole a écrit :

D'un coté, il est dit de rechercher les autres O.S.

GRUB_OS_DISABLE_OS_PROBER=false

C’est GRUB_DISABLE_OS_PROBER et pas GRUB_OS_DISABLE_OS_PROBER.

Hors ligne

#4 Le 12/01/2024, à 10:02

geole

Re : [RESOLU] Grub ne détecte pas Windows

Bien vu.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#5 Le 12/01/2024, à 10:08

joshw

Re : [RESOLU] Grub ne détecte pas Windows

Merci pour vos réponses !
Voiici le contenu du rapport de boot-info

boot-info-4ppa2075                                              [20240112_1004]

============================== Boot Info Summary ===============================

 => Windows is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 2048 
    of the same hard drive for core.img. core.img is at this location and 
    looks for (,gpt3)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_gpt biosdisk
    ---------------------------------------------------------------------------
 => No boot loader is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 128. But according to the info from fdisk, 
                       sda5 starts at sector 758538368.
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sdb2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sdb3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdc1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        


================================ 2 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 22.04.3 LTS on sdb3
OS#2:   Windows 10 or 11 on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Cape Verde PRO [Radeon HD 7750/8740 / R7 250E] from Advanced Micro Devices, Inc. [AMD/ATI]
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.5.0-14-generic root=UUID=4b32cf83-ac1d-42e9-b0ee-761baf98ea5d ro quiet splash vt.handoff=7
df -Th / : /dev/sdb3        ext4   916G     96G  773G  12% /

===================================== UEFI =====================================

BIOS/UEFI firmware: 0801(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0004,0005
Boot0000* ubuntu	HD(2,GPT,29d33290-7002-453b-93cf-e91d30366d4b,0x1000,0x100800)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* ubuntu	HD(2,GPT,29d33290-7002-453b-93cf-e91d30366d4b,0x1000,0x100800)/File(\EFI\Ubuntu\grubx64.efi)
Boot0005* UEFI OS	HD(2,GPT,29d33290-7002-453b-93cf-e91d30366d4b,0x1000,0x100800)/File(\EFI\BOOT\BOOTX64.EFI)


============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sdb	: is-GPT,	hasBIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sdc	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sdb3	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdb2	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdc1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda4	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda2	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

sdb3	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot

Partitions info (3/3): _________________________________________________________

sdb3	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
sdb2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sda4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0xfeb9ffbc
     Boot      Start        End    Sectors   Size Id Type
sda1  *          2048     206847     204800   100M  7 HPFS/NTFS/exFAT
sda2           206848  758538239  758331392 361.6G  7 HPFS/NTFS/exFAT
sda3        758538240 1987338111 1228799872 585.9G  f W95 Ext'd (LBA)
sda4       1987338240 3861941898 1874603659 893.9G  7 HPFS/NTFS/exFAT
sda5        758538368 1987338111 1228799744 585.9G  7 HPFS/NTFS/exFAT
Partition table entries are not in disk order.
Disk sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 92699375-DE08-452E-9C20-237415277DB1
       Start        End    Sectors  Size Type
sdb1     2048       4095       2048    1M BIOS boot
sdb2     4096    1054719    1050624  513M EFI System
sdb3  1054720 1953523711 1952468992  931G Linux filesystem
Disk sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: AC8FEB04-0460-4FFA-B02B-DA7881D9A834
     Start        End    Sectors   Size Type
sdc1   2048 1953523711 1953521664 931.5G Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:2000GB:scsi:512:512:msdos:ATA HUA723020ALA640:;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:388GB:388GB:ntfs::;
3:388GB:1018GB:629GB:::lba;
5:388GB:1018GB:629GB:ntfs::;
4:1018GB:1977GB:960GB:ntfs::;
sdb:1000GB:scsi:512:4096:gpt:ATA WDC WD10EZEX-00W:;
1:1049kB:2097kB:1049kB:::bios_grub;
2:2097kB:540MB:538MB:fat32:EFI System Partition:boot, esp;
3:540MB:1000GB:1000GB:ext4::;
sdc:1000GB:scsi:512:4096:gpt:ATA WDC WD10EZEX-08W:pmbr_boot;
1:1049kB:1000GB:1000GB:fat32:DISK-HS:msftdata;

Free space >10MiB: ______________________________________________________________

sda: 1885714MiB:1907729MiB:22015MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL              PARTLABEL
sda                                                                                                          
├─sda1 ntfs     5A5401EA5401C9A9                     feb9ffbc-01                          Réservé au système 
├─sda2 ntfs     3EF2139AF213558D                     feb9ffbc-02                                             
├─sda3                                               feb9ffbc-03                                             
├─sda4 ntfs     272A6C835FCED430                     feb9ffbc-04                          HDD_SECURE         
└─sda5 ntfs     92A816A5A81687BD                     feb9ffbc-05                          ancien             
sdb                                                                                                          
├─sdb1                                               05df48b0-6364-4614-8ba3-2f2f5d82c13e                    
├─sdb2 vfat     D01F-2E05                            29d33290-7002-453b-93cf-e91d30366d4b                    EFI System Partition
└─sdb3 ext4     4b32cf83-ac1d-42e9-b0ee-761baf98ea5d 303e037c-1ccd-49f8-ab3d-001fef01ea5e                    
sdc                                                                                                          
└─sdc1 vfat     D8D3-7E9D                            b3d39609-220f-448e-ad8f-c06fb6d27349 DISK-HS            DISK-HS
sdd                                                                                                          

Mount points (filtered): _______________________________________________________

                                Avail Use% Mounted on
/dev/sda1                       67.9M  32% /mnt/boot-sav/sda1
/dev/sda2                       70.3G  81% /mnt/boot-sav/sda2
/dev/sda4                      414.4G  54% /mnt/boot-sav/sda4
/dev/sda5                      139.7G  76% /mnt/boot-sav/sda5
/dev/sdb3                      772.9G  10% /
/dev/sdc1                      769.2G  17% /mnt/boot-sav/sdc1
efivarfs                          75B  96% /sys/firmware/efi/efivars

Mount options (filtered): ______________________________________________________

/dev/sda1                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda4                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda5                      fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb3                      ext4            rw,relatime,errors=remount-ro
/dev/sdc1                      vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

===================== sdb2/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 4b32cf83-ac1d-42e9-b0ee-761baf98ea5d root hd0,gpt3 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sdb3/boot/grub/grub.cfg (filtered) ======================

Ubuntu   4b32cf83-ac1d-42e9-b0ee-761baf98ea5d
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=4b32cf83-ac1d-42e9-b0ee-761baf98ea5d /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=D01F-2E05  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sdb3/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_OS_DISABLE_OS_PROBER=false

==================== sdb3: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 588,695465088 = 632,106942464  boot/grub/grub.cfg                             1
 589,142013550 = 632,586420224  boot/grub/i386-pc/core.img                     1
   9,852115631 = 10,578628608   boot/vmlinuz                                   1
   7,328250885 = 7,868649472    boot/vmlinuz-6.2.0-26-generic                  1
   9,852115631 = 10,578628608   boot/vmlinuz-6.5.0-14-generic                  1
   7,328250885 = 7,868649472    boot/vmlinuz.old                               1
  12,818325043 = 13,763571712   boot/initrd.img                                1
  12,230800629 = 13,132722176   boot/initrd.img-6.2.0-26-generic               1
  12,818325043 = 13,763571712   boot/initrd.img-6.5.0-14-generic               1
  12,230800629 = 13,132722176   boot/initrd.img.old                            1

===================== sdb3: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18683 Dec 18  2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 18  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec 18  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Dec 18  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 May 17  2023 35_fwupd
-rwxr-xr-x 1 root root   214 Dec 18  2022 40_custom
-rwxr-xr-x 1 root root   215 Dec 18  2022 41_custom



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
sdb3 into the MBR of sdb.
Grub-efi would not be selected by default because legacy Windows detected.
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix

Blockers in case of suggested repair: __________________________________________

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB). 

Confirmation request before suggested repair: __________________________________

LegacyWindows detected. The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sdb (ATA WDC WD10EZEX-00W) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

Hors ligne

#6 Le 12/01/2024, à 10:24

nany

Re : [RESOLU] Grub ne détecte pas Windows

Deux choses : la première est l’erreur de nom de variable à corriger dans /etc/default/grub ; la deuxième,

joshw a écrit :
Blockers in case of suggested repair: __________________________________________

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB). 

Confirmation request before suggested repair: __________________________________

LegacyWindows detected. The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sdb (ATA WDC WD10EZEX-00W) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

Windows est installé en LEGACY alors qu‘Ubuntu est installé en UEFI.
Il faudrait soit transformer Windows en UEFI soit suivre les instructions du boot-info.

Hors ligne

#7 Le 12/01/2024, à 10:51

joshw

Re : [RESOLU] Grub ne détecte pas Windows

nany a écrit :

Deux choses : la première est l’erreur de nom de variable à corriger dans /etc/default/grub ; la deuxième,

joshw a écrit :
Blockers in case of suggested repair: __________________________________________

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB). 

Confirmation request before suggested repair: __________________________________

LegacyWindows detected. The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sdb (ATA WDC WD10EZEX-00W) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

Windows est installé en LEGACY alors qu‘Ubuntu est installé en UEFI.
Il faudrait soit transformer Windows en UEFI soit suivre les instructions du boot-info.

Si je te comprends bien, tu parles de cette ligne ?

GRUB_TIMEOUT_STYLE=hidden

Hors ligne

#8 Le 12/01/2024, à 11:46

geole

Re : [RESOLU] Grub ne détecte pas Windows

Il faut corriger la faute de frappe
C’est GRUB_DISABLE_OS_PROBER et pas GRUB_OS_DISABLE_OS_PROBER.
Il faudra aussi
GRUB_TIMEOUT_STYLE=menu

et convertir.
Voir un exemple à partir de l'échange six

Dernière modification par geole (Le 12/01/2024, à 11:50)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#9 Le 12/01/2024, à 21:36

joshw

Re : [RESOLU] Grub ne détecte pas Windows

Bonsoir et merci pour vos réponses !
Je verrai cela plus tard à tête reposé.

Hors ligne

#10 Le 12/01/2024, à 22:20

joshw

Re : [RESOLU] Grub ne détecte pas Windows

Bonsoir,

Pour info, j'ai échoué dans ma tentative de conversion de la partition boot de Windows, je dois encore trouver une solution sans tout casser.
Je vais recommencer à zéro en suivant cet article : Convertir un disque MBR en disque GPT, ainsi que celui-ci : Comment convertir MBR en UEFI sous Windows 11, 10, 8, 7 ?

Dernière modification par joshw (Le 12/01/2024, à 22:20)

Hors ligne

#11 Le 12/01/2024, à 22:46

geole

Re : [RESOLU] Grub ne détecte pas Windows

Si tu ne peux pas convertir, tu devrais pouvoir interdire au bios de prononcer le mot EFI, il te suffira de faire alors la réparation recommandée de boot-repair.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#12 Le 13/01/2024, à 22:40

joshw

Re : [RESOLU] Grub ne détecte pas Windows

Bonsoir,

A quel point boot-repair est-il fiable ?
Je crains que s'il échoue, qu'il endomage le démarrage de Windows. Hors, pour ma formation, j'ai besoin de Microsoft Office.
Du coup, je réfléchis à une solution de duplication de disque dur avant de faire ça. Je crois que dd peut faire cela.
Tuto sur la commande dd !

Dernière modification par joshw (Le 13/01/2024, à 22:49)

Hors ligne

#13 Le 13/01/2024, à 22:53

geole

Re : [RESOLU] Grub ne détecte pas Windows

Bonsoir.
Tu as une solution assez simple.
Interdit a ton bios de booter en EFI et dis-lui de booter en legacy sur le disque SDB
car le boot-info de l'échange cinq dit.

 => Windows is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 2048 
    

Cela devrait te permettre de booter en legacy.
Si je ne me trompe pas en faisant la commande.

sudo update-grub

windows devrait alors être détecté.
Note que si tu positionnes  le bios en  legacy en lui disant de booter sur  sda, windows devrait démarrer sans difficulté.

Dernière modification par geole (Le 13/01/2024, à 23:03)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#14 Le 18/01/2024, à 17:34

joshw

Re : [RESOLU] Grub ne détecte pas Windows

Après plusieurs tentatives de convertion de Windows en UEFI, j'abandonne ! La méthode officielle ne marche pas (mbr2gpt) avec ma machine !
Je devrais réinstaller Windows pour faire cela. Sachant que l'OS installé était Win7 upgradé vers Win10. Je ne sais même pas si ma clé d'activation serait valable pour une nouvelle installation.
Quand je téléphone au call center il me renvoit vers leur site internet. Ca gagne des milliards et n'offre même pas un service Call Center !

Bref, je me passerai du menu Grub pour booter sur Windows et le ferai via mon Bios lorsque ce sera nécessaire !

Merci pour l'aide que vous m'avez apportée !

Dernière modification par joshw (Le 18/01/2024, à 17:45)

Hors ligne