Pages : 1
#1 Le 13/04/2025, à 15:23
- Salamandre87
windows ne s'affiche pas dans le grub
Bonjour,
je viens de changer de PC et j'ai donc installé windows 10 sur un disque, ubuntu 22.04 sur un autre et un troisieme pour les données.
Tout fonctionne bien sauf que windows n'apparait pas dans le grub.
Voila le lien du boot info
https://paste.ubuntu.com/p/p7CY3kd4pf/
De ce que j'en comprends windows s'est installé en mode legacy ce qui explique qu'il ne soit pas dans le grub... Je ne comprends pas pourquoi.
Et un peu plus grave je ne comprends pas bien les recommandations pour corriger cela.
Merci
Bonne journée
Hors ligne
#2 Le 13/04/2025, à 15:27
- xubu1957
Re : windows ne s'affiche pas dans le grub
Bonjour,
Collage du Boot-info, pour les spécialistes :
boot-info-4ppa2081 [20250413_1513]
============================== Boot Info Summary ===============================
=> No boot loader 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
---------------------------------------------------------------------------
=> Windows is installed in the MBR of /dev/sdc.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Unknown
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 0. But according to the info from fdisk,
sda1 starts at sector 40.
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
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Unknown
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:
sdb3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.04.5 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sdc1: __________________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
================================ 2 OS detected =================================
OS#1 (linux): L'OS actuellement utilisé - Ubuntu 22.04.5 LTS on sdb3
OS#2 (windows): Windows 8 or 10 on sdc1
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] from Advanced Micro Devices, Inc. [AMD/ATI]
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.8.0-57-generic root=UUID=8773116c-5c1f-4fe1-bdaa-20243b7f4098 ro quiet splash vt.handoff=7
df -Th / : /dev/sdb3 ext4 117G 52G 59G 47% /
===================================== UEFI =====================================
BIOS/UEFI firmware: V20.1(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: 0005
Timeout: 1 seconds
BootOrder: 0005,0006,0003,0000
Boot0000* SATA: Samsung SSD 850 EVO 500G BBS(17,,0x0)
Boot0003* UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)AMBO
Boot0005* ubuntu HD(1,GPT,bf59db02-092b-4a74-aa84-568fbdb11fbb,0x28,0x64000)/File(\EFI\Ubuntu\grubx64.efi)
Boot0006* UEFI OS HD(1,GPT,bf59db02-092b-4a74-aa84-568fbdb11fbb,0x28,0x64000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot000B Hard Drive BBS(HD,,0x0)AMGOAMNO........g.S.A.T.A.:. .S.T.3.5.0.0.3.1.2.C.S.........................rN.D+..,.\...........8..Gd-.;.A..MQ..L.S.A.T.A.:. .S.T.3.5.0.0.3.1.2.C.S......AMBOAMNO........m.M.4.-.C.T.1.2.8.M.4.S.S.D.2....................A.........................>..Gd-.;.A..MQ..L.0.0.0.0.0.0.0.0.1.1.9.4.8.0.F.F.4.D.3.2......AMBOAMNO........m.M.4.-.C.T.1.2.8.M.4.S.S.D.2....................A.........................>..Gd-.;.A..MQ..L.0.0.0.0.0.0.0.0.1.1.9.4.8.0.F.F.4.D.3.2......AMBOAMNO........m. .U.S.B. .D.I.S.K. .2...0. .P.M.A.P....................A.............................:..Gd-.;.A..MQ..L. .U.S.B. .D.I.S.K. .2...0. .P.M.A.P......AMBO
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sdb : is-GPT, hasBIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
sdc : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, no-os, no-wind, 40 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 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
sda2 : 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, ext4
sdb2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, vfat
sdc1 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, is-winboot, ntfs
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ntfs
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, vfat
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
sda2 : 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: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 804A6BEB-2976-458F-AB19-905861985B2E
Start End Sectors Size Type
sda1 40 409639 409600 200M EFI System
sda2 411648 976773119 976361472 465.6G Microsoft basic data
Disk sdb: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: EF709B85-FF4F-40D2-94C1-8F155794157B
Start End Sectors Size Type
sdb1 2048 4095 2048 1M BIOS boot
sdb2 4096 1054719 1050624 513M EFI System
sdb3 1054720 250068991 249014272 118.7G Linux filesystem
Disk sdc: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x6b933c16
Boot Start End Sectors Size Id Type
sdc1 * 2048 976773119 976771072 465.8G 7 HPFS/NTFS/exFAT
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:512:gpt:ATA ST3500312CS:;
1:20.5kB:210MB:210MB:fat32:EFI System Partition:boot, esp;
2:211MB:500GB:500GB:ntfs::msftdata;
sdb:128GB:scsi:512:512:gpt:ATA M4-CT128M4SSD2:;
1:1049kB:2097kB:1049kB:::bios_grub;
2:2097kB:540MB:538MB:fat32:EFI System Partition:boot, esp;
3:540MB:128GB:127GB:ext4::;
sdc:500GB:scsi:512:512:msdos:ATA Samsung SSD 850:;
1:1049kB:500GB:500GB:ntfs::boot;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 67E3-17ED bf59db02-092b-4a74-aa84-568fbdb11fbb EFI EFI System Partition
└─sda2 ntfs 7143B65A408AAA6B 5a29af63-f4dd-410c-94a3-385a9dfa613b stockage
sdb
├─sdb1 cf5c0cf5-099b-48fa-a543-49e36b265c0d
├─sdb2 vfat F66E-63B4 17b6450b-cf88-4286-bcbf-5528b00250b0 EFI System Partition
└─sdb3 ext4 8773116c-5c1f-4fe1-bdaa-20243b7f4098 dd99c229-b130-4dc3-96ad-6d81eeeb6932
sdc
└─sdc1 ntfs C2106A9B106A9667 6b933c16-01
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda2 370.4G 20% /mnt/boot-sav/sda2
/dev/sdb2 512M 0% /mnt/boot-sav/sdb2
/dev/sdb3 58.8G 44% /
/dev/sdc1 420.9G 10% /mnt/boot-sav/sdc1
efivarfs 16K 67% /sys/firmware/efi/efivars
Mount options (filtered): ______________________________________________________
/dev/sda2 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb2 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdb3 ext4 rw,relatime,errors=remount-ro
/dev/sdc1 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 8773116c-5c1f-4fe1-bdaa-20243b7f4098 root hd1,gpt3
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sdb3/boot/grub/grub.cfg (filtered) ======================
Ubuntu 8773116c-5c1f-4fe1-bdaa-20243b7f4098
### 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/sdb3 during installation
UUID=8773116c-5c1f-4fe1-bdaa-20243b7f4098 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=67E3-17ED /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sdb3/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
==================== sdb3: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
14,315689087 = 15,371354112 boot/grub/grub.cfg 1
90,633258820 = 97,316720640 boot/grub/i386-pc/core.img 1
7,946533203 = 8,532525056 boot/vmlinuz 1
9,993392944 = 10,730323968 boot/vmlinuz-6.8.0-40-generic 1
7,946533203 = 8,532525056 boot/vmlinuz-6.8.0-57-generic 1
9,993392944 = 10,730323968 boot/vmlinuz.old 1
1,627925873 = 1,747972096 boot/initrd.img 2
1,844913483 = 1,980960768 boot/initrd.img-6.8.0-40-generic 1
1,627925873 = 1,747972096 boot/initrd.img-6.8.0-57-generic 2
1,844913483 = 1,980960768 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
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown BootLoader on sda1
Unknown BootLoader on sda2
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
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 M4-CT128M4SSD2) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
#3 Le 13/04/2025, à 16:09
- geole
Re : windows ne s'affiche pas dans le grub
Bonjour
sdc : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
La règle windows
Si le disque n'est pas GPT, windows s'installe en LEGACY
Si le disque est GPT, windows s'installe en EFI
=> Windows is installed in the MBR of /dev/sdc.
Je te propose donc de modifier le bios pour le faire booter en LEGACY sur le disque SDC
Puis, lorsque tu seras dans windows, demander a windows de convertir le disque en GPT et de compléter la partie EFI
Voir l'application MBR2GPT et un exemple
Je vois aussi que tu as installé la structure de boot de ubuntu dans un disque qui ne contient pas UBUNTu
Habituellement, on le met dans le même disque
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Unknown
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 0. But according to the info from fdisk,
sda1 starts at sector 40.
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
sda1 40 409639 409600 200M EFI System
sdb2 4096 1054719 1050624 513M EFI System
Avec gparted, après avoir démonté SDA1, tu pourrais copier/coller SDA1 dans SDB2 puis reformater ou supprimer SDA1 si ce disque ne reçoit pas de logiciel.
Dernière modification par geole (Le 13/04/2025, à 16:18)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#4 Le 13/04/2025, à 21:18
- Salamandre87
Re : windows ne s'affiche pas dans le grub
ok,
merci windows est passé en efi et apparait dans le grub.
Pour la deuxième partie, sur la structure de boot dans le disque sda, je ne comprends pas, j'ai fait une install "automatique" de ubuntu. Gparted, refuse de coller sda1 dans sdb2. J'ai fait des clcis droit copier, collé. Gparted me prévient que je vais perdre les données de sdb2, je valide et ça ne se fait pas. Il fallait démonter sdb2 ? Ce n'est pas risqué de perdre les données de cette partition ?
Hors ligne
#5 Le 13/04/2025, à 23:01
- geole
Re : windows ne s'affiche pas dans le grub
Oû as-tu vu qu'il y avait des données dans sdb2?
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sdb2 512M 0% /mnt/boot-sav/sdb2
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#6 Hier à 21:51
- Salamandre87
Re : windows ne s'affiche pas dans le grub
Bonjour,
je n'avais pas regardé que sdb2 était vide, gparted me signale que je perdrai les données, c'est un message générique...
J'ai réessayé de coller sda1 dans sdb2, le processus échoue. En regardant le fichier généré par gparted (.htm) il y a une ligne qui indique erreur, c'est à la fin du doc et donc du processus, à priori le collage réussi :
agrandir le système de fichiers pour remplir la partition 00:00:00 ( ERREUR )
si vous voulez voir le fichier entier dites moi comment le poster.
Merci
Hors ligne
#7 Hier à 22:02
- geole
Re : windows ne s'affiche pas dans le grub
Bonsoir.
Alors, plus simple. Avec gparted
Supprime SDB2
Fais un copier de SDA1 et colle-le dans l'espace qui vient de se libérer.
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
Pages : 1