#1 Le 23/02/2023, à 16:36
- ubuian
[Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour à toutes et à tous
je galère depuis deux jours.
Sur un portable Akoya i3 avec windows 10 déjà installé, j'ai installé Ubuntu 22.04.
Opération que j'ai réalisée sans soucis à plusieurs reprises sur différentes machines.
Cette fois-ci le grub ne trouve pas windows.
j'ai fait le tour de tous les posts sur le sujet (notamment celui-ci où Nany a trouvé une réponse):
forum.ubuntu-fr.org//viewtopic.php?id=2073491mais sans trouver de solution.
J'ai ajouté
GRUB_DISABLE_OS_PROBER=false
dans
/etc/default/grub
vu que maintenant sur la 22.04 il est désactivé
mais le
sudo os-prober
ne trouve toujours pas win10.
J'ai essayé de corriger le grub avec recovery disk qui m'a dit qu'il l'avait corrigé et au démarrage suivant il y eu une ligne "Windows Boot Manager sur sda1" mais le clic a signalé une erreur.
Au démarrage suivant cette ligne avait disparu.
Voici le boot-info généré par boot repair:
http://paste.ubuntu.com/p/5w3bqMjPV6
Et voici deux retours:
iannis@iannis-Akoya-E6416-MD99580:~$ sudo os-prober
iannis@iannis-Akoya-E6416-MD99580:~$
iannis@iannis-Akoya-E6416-MD99580:~$ 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-5.19.0-32-generic
Found initrd image: /boot/initrd.img-5.19.0-32-generic
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
done
Merci pour votre aide
Dernière modification par ubuian (Le 24/02/2023, à 15:05)
Hors ligne
#2 Le 23/02/2023, à 16:41
- xubu1957
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour,
Collage du Boot-repair, pour les spécialistes :
boot-repair-4ppa203 [20230223_1347]
============================= Boot Repair Summary ==============================
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda5,
using the following options: sda1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file
Mount sda1 on /mnt/boot-sav/sda5/boot/efi
Unhide GRUB boot menu in sda5/etc/default/grub
======================== Reinstall the grub-efi of sda5 ========================
chroot /mnt/boot-sav/sda5 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.1
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.3.0-28-generic
chroot /mnt/boot-sav/sda5 modprobe efivars
chroot /mnt/boot-sav/sda5 efibootmgr -v before grub install
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0009,0005,0000,0001,000A,000B
Boot0000* Windows Boot Manager HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(EFIMICROSOFTBOOTBOOTMGFW.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.}...,................
Boot0001* ubuntu HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0005* ubuntu HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(EFIUBUNTUGRUBX64.EFI)..BO
Boot0009* UEFI: General UDisk 5.00 PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot000A* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.T.S.S.T.c.o.r.p. .C.D.D.V.D.W. .S.U.-.2.0.8.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.6.7.Y.6.F.E.0.C.3.0.5.5. . . . . . ........BO
Boot000B* Hard Drive BBS(HD,,0x0)..GO..NO........K.G.e.n.e.r.a.l. .U.D.i.s.k. .5...0.0....................A................................Gd-.;.A..MQ..L..........BO..NO..........S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .2.5.0.G.B....................A..................1.N........>.;......H..Gd-.;.A..MQ..L.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .2.5.0.G.B........BO
chroot /mnt/boot-sav/sda5 uname -r
5.3.0-28-generic
chroot /mnt/boot-sav/sda5 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/sda1
mv /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda5/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi
chroot /mnt/boot-sav/sda5 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
chroot /mnt/boot-sav/sda5 efibootmgr -v after grub install
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0009,0005,0000,0001,000A,000B
Boot0000* Windows Boot Manager HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(EFIMICROSOFTBOOTBOOTMGFW.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.}...,................
Boot0001* ubuntu HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0005* ubuntu HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(EFIUBUNTUGRUBX64.EFI)..BO
Boot0009* UEFI: General UDisk 5.00 PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot000A* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.T.S.S.T.c.o.r.p. .C.D.D.V.D.W. .S.U.-.2.0.8.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.6.7.Y.6.F.E.0.C.3.0.5.5. . . . . . ........BO
Boot000B* Hard Drive BBS(HD,,0x0)..GO..NO........K.G.e.n.e.r.a.l. .U.D.i.s.k. .5...0.0....................A................................Gd-.;.A..MQ..L..........BO..NO..........S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .2.5.0.G.B....................A..................1.N........>.;......H..Gd-.;.A..MQ..L.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .2.5.0.G.B........BO
Warning: NVram was not modified.
chroot /mnt/boot-sav/sda5 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-5.19.0-32-generic
Found initrd image: /boot/initrd.img-5.19.0-32-generic
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Unhide GRUB boot menu in sda5/boot/grub/grub.cfg
Boot successfully repaired.
You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.1 LTS entry (sda1/efi/ubuntu/grubx64.efi file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
============================ Boot Info After Repair ============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
281026560 of the same hard drive for core.img. core.img is at this
location and looks for (,gpt5)/boot/grub. It also embeds following
components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi
/efi/Boot/fbx64.efi /efi/Boot/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sda6: __________________________________________________________________________
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb: ___________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.1 LTS on sda5
OS#2: Windows 10 or 11 on sda3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: HD Graphics 5500 from Intel Corporation
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 702 from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0009,0005,0000,0001,000A,000B
Boot0000* Windows Boot Manager HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/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.}...,................
Boot0001* ubuntu HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0005* ubuntu HD(1,GPT,14c33b16-9946-4ba1-9804-d73322c68949,0x800,0x32000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot0009* UEFI: General UDisk 5.00 PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot000A* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.T.S.S.T.c.o.r.p. .C.D.D.V.D.W. .S.U.-.2.0.8.G.B....................A...........................>..Gd-.;.A..MQ..L.1.S.6.7.Y.6.F.E.0.C.3.0.5.5. . . . . . ........BO
Boot000B* Hard Drive BBS(HD,,0x0)..GO..NO........K.G.e.n.e.r.a.l. .U.D.i.s.k. .5...0.0....................A................................Gd-.;.A..MQ..L..........BO..NO..........S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .2.5.0.G.B....................A..................1.N........>.;......H..Gd-.;.A..MQ..L.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .2.5.0.G.B........BO
64349b3622c65f495a99dbf6102496e3 sda1/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3 sda1/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee sda1/Boot/fbx64.efi
a660182adef313615746a665966d2ccc sda1/Boot/mmx64.efi
5ddf997e8b025bfbc2009e85b32f60dc sda1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc sda1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3 sda1/ubuntu/shimx64.efi
20ac8dde00311476f3755604eb0e545a sda1/Microsoft/Boot/bootmgfw.efi
27d382c5fc21df6f4a75baed05aa1d9d sda1/Microsoft/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, hasBIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda7 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda7 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda7 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 2BB72CD2-39D0-494E-945B-3A5BDED55FB2
Start End Sectors Size Type
sda1 2048 206847 204800 100M EFI System
sda2 206848 239615 32768 16M Microsoft reserved
sda3 239616 162776541 162536926 77.5G Microsoft basic data
sda4 162777088 163839999 1062912 519M Windows recovery environment
sda5 163840000 281026559 117186560 55.9G Linux filesystem
sda6 281026560 281124863 98304 48M BIOS boot
sda7 290791424 488396799 197605376 94.2G Linux filesystem
Disk sdb: 7.5 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: 0x2c534026
Boot Start End Sectors Size Id Type
sdb1 * 0 1802239 1802240 880M 0 Empty
sdb2 964 5891 4928 2.4M ef EFI (FAT-12/16/32)
Disk zram0: 481.4 MiB, 504733696 bytes, 123226 sectors
Disk zram1: 481.4 MiB, 504733696 bytes, 123226 sectors
Disk zram2: 481.4 MiB, 504733696 bytes, 123226 sectors
Disk zram3: 481.4 MiB, 504733696 bytes, 123226 sectors
parted -lm (filtered): _________________________________________________________
sda:250GB:scsi:512:512:gpt:ATA Samsung SSD 850:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:83.3GB:83.2GB:ntfs:Basic data partition:msftdata;
4:83.3GB:83.9GB:544MB:ntfs::hidden, diag;
5:83.9GB:144GB:60.0GB:ext4::;
6:144GB:144GB:50.3MB:::bios_grub;
7:149GB:250GB:101GB:ext4::;
sdb:8053MB:scsi:512:512:msdos:General UDisk:;
2:494kB:3017kB:2523kB:::esp;
Free space >10MiB: ______________________________________________________________
sda: 137268MiB:141988MiB:4720MiB
sdb: 2.88MiB:7680MiB:7677MiB
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 20A6-1505 14c33b16-9946-4ba1-9804-d73322c68949 EFI system partition
├─sda2 ee02708e-ecf0-4c7c-8358-abb21ea0492b Microsoft reserved partition
├─sda3 ntfs 048EB4178EB4036A d8bdee71-ab78-4cfc-8456-0aa51ed7c9a1 Basic data partition
├─sda4 ntfs 0C88DDE188DDC8FA 523e37da-de76-48f3-9f65-f9d11fbe264e
├─sda5 ext4 1eec97bb-4be6-4176-bee6-b557e14b9777 d13aae17-c0ca-41e8-8c6f-f0c4ee5f5993
├─sda6 ddb65219-ddea-4514-8f21-e23feeb300fb
└─sda7 ext4 ec36b998-8dc2-47eb-9d1e-88de363ff2be b360597d-d021-45b4-834a-cc47228fda5d
sdb iso9660 2020-06-13-00-42-55-00 Boot-Repair-Disk 64bit
├─sdb1 iso9660 2020-06-13-00-42-55-00 2c534026-01 Boot-Repair-Disk 64bit
└─sdb2 vfat D055-8513 2c534026-02 Boot-Repair-Disk 64bit
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda1 64M 33% /mnt/boot-sav/sda1
/dev/sda3 46.8G 40% /mnt/boot-sav/sda3
/dev/sda4 88.5M 83% /mnt/boot-sav/sda4
/dev/sda5 42.8G 17% /mnt/boot-sav/sda5
/dev/sda7 55.2G 35% /mnt/boot-sav/sda7
/dev/sdb 0 100% /cdrom
Mount options (filtered): ______________________________________________________
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 1eec97bb-4be6-4176-bee6-b557e14b9777 root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.19.0-32-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.15.0-43-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Windows Boot Manager (on sda1) osprober-efi-20A6-1505
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sda5/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=1eec97bb-4be6-4176-bee6-b557e14b9777 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=20A6-1505 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda7 during installation
UUID=ec36b998-8dc2-47eb-9d1e-88de363ff2be /home ext4 defaults 0 2
======================= sda5/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
==================== sda5: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
78.125007629 = 83.886088192 boot/grub/grub.cfg 1
132.498485565 = 142.269165568 boot/grub/i386-pc/core.img 1
90.401973724 = 97.068380160 boot/vmlinuz 1
126.165546417 = 135.469223936 boot/vmlinuz-5.15.0-43-generic 2
90.401973724 = 97.068380160 boot/vmlinuz-5.19.0-32-generic 1
126.165546417 = 135.469223936 boot/vmlinuz.old 2
83.347332001 = 89.493516288 boot/initrd.img 1
83.589324951 = 89.753354240 boot/initrd.img-5.15.0-43-generic 1
83.347332001 = 89.493516288 boot/initrd.img-5.19.0-32-generic 1
83.589324951 = 89.753354240 boot/initrd.img.old 1
===================== sda5: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18683 Apr 15 2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 2022 30_os-prober
-rwxr-xr-x 1 root root 1372 Apr 15 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Feb 19 2022 35_fwupd
-rwxr-xr-x 1 root root 214 Apr 15 2022 40_custom
-rwxr-xr-x 1 root root 215 Apr 15 2022 41_custom
====================== sdb/boot/grub/grub.cfg (filtered) =======================
Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)
==================== sdb: Location of files loaded by Grub =====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
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 23/02/2023, à 16:42
- iznobe
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour , si " os-prober " ne detecte pas windows , il y a de grandes chances que c ' est parceque tu as une installation en demarrage
UEFI et l' autre en MSDOS .
pour s' en assurer fournit un boot-info st p .
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#4 Le 23/02/2023, à 16:49
- geole
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour
Extrait du boot-repair
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.19.0-32-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.15.0-43-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Windows Boot Manager (on sda1) osprober-efi-20A6-1505
Veux-tu simplement dire que le grub n 'est pas affiché?
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 23/02/2023, à 16:55
- ubuian
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Merci iznobe pour ta réponse immédiate.
A une minute près, xubu1957 a fait un collage du boot-repair au départ de mon
http://paste.ubuntu.com/p/5w3bqMjPV6.
Pour ne pas surcharger le forum je ne l'avais pas fait moi-même.
Sorry
Hors ligne
#6 Le 23/02/2023, à 16:57
- ubuian
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour
Extrait du boot-repair
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.19.0-32-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.15.0-43-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Windows Boot Manager (on sda1) osprober-efi-20A6-1505
Veux-tu simplement dire que le grub n 'est pas affiché?
@geole: le grub s'affiche mais sans aucune référence à windows manager
Merci pour l'intérêt
Dernière modification par ubuian (Le 23/02/2023, à 16:58)
Hors ligne
#7 Le 23/02/2023, à 16:58
- iznobe
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
un boot -info , donne les infos , un boot-repair donne les infos sur la reparation presumée bonne effectuée .
on n' y voit pas les meme choses , et on ne fait un boot-repair que lorsqu ' on est certain que la reparation a faire est bien la bonne .
si ca nefonctionne toujours pas , c ' est que ca servait a rien de faire un boot-repair ...
Et on ne pourra resoudre le soucis sans le boot-info .
Dernière modification par iznobe (Le 23/02/2023, à 17:01)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#8 Le 23/02/2023, à 18:26
- geole
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Fais une photo à poster dans dans site de partage. https://doc.ubuntu-fr.org/capture_d_ecran#ailleurs
Dernière modification par geole (Le 23/02/2023, à 18:27)
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 24/02/2023, à 09:31
- ubuian
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Fais une photo à poster dans dans site de partage. https://doc.ubuntu-fr.org/capture_d_ecran#ailleurs
Sorry mais je ne comprends pas de quelle photo tu parles.
Je pensais que j'avais déjà posté le boot-info.
Le voici de nouveau:
https://paste.ubuntu.com/p/V62Yh4qpYC/
Merci pour votre aide
Hors ligne
#10 Le 24/02/2023, à 09:42
- geole
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour.
extrait du boot-info.
BIOS/UEFI firmware: 702(5.6) from American Megatrends Inc.
The firmware is EFI-compatible, but this live-session is in Legacy/BIOS/CSM mode (not in EFI mode).
Merci de refaire le boot-info depuis le ubuntu installé
Car il est nécessaire de savoir comment celui-ci boote vu qu'il dispose de deux fàçons de booter dont l'une ne peut pas détecter windows.
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
281026560 of the same hard drive for core.img. core.img is at this
location and looks for (,gpt5)/boot/grub......
sda1: __________________________________________________________________________
File system: vfat
Operating System:
Boot files: /efi/ubuntu/grubx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
Dernière modification par geole (Le 24/02/2023, à 09:49)
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
#11 Le 24/02/2023, à 10:16
- ubuian
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour.
extrait du boot-info.BIOS/UEFI firmware: 702(5.6) from American Megatrends Inc. The firmware is EFI-compatible, but this live-session is in Legacy/BIOS/CSM mode (not in EFI mode).
Merci de refaire le boot-info depuis le ubuntu installé
Car il est nécessaire de savoir comment celui-ci boote vu qu'il dispose de deux fàçons de booter dont l'une ne peut pas détecter windows.============================== Boot Info Summary =============================== => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 281026560 of the same hard drive for core.img. core.img is at this location and looks for (,gpt5)/boot/grub...... sda1: __________________________________________________________________________ File system: vfat Operating System: Boot files: /efi/ubuntu/grubx64.efi /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
Merci geole et merci.
Voici le boot-info créé depuis le ubuntu 22.04 installé:
https://paste.ubuntu.com/p/kNgtzvWrXN/
Bonne journée
Hors ligne
#12 Le 24/02/2023, à 10:50
- iznobe
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Bonjour collage du nouveau boot info :
boot-info-4ppa2056 [20230224_1007]
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
281026560 of the same hard drive for core.img. core.img is at this
location and looks for (,gpt5)/boot/grub. It also embeds following
components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi
/efi/Boot/fbx64.efi /efi/Boot/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
sda2: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.04.2 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sda6: __________________________________________________________________________
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.2 LTS on sda5
OS#2: Windows 10 or 11 on sda3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: HD Graphics 5500 from Intel Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.19.0-32-generic root=UUID=1eec97bb-4be6-4176-bee6-b557e14b9777 ro quiet splash vt.handoff=7
df -Th / : /dev/sda5 ext4 55G 9,0G 43G 18% /
===================================== UEFI =====================================
BIOS/UEFI firmware: 702(5.6) from American Megatrends Inc.
The firmware is EFI-compatible, but this installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, hasBIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ng, update-grub, farbios
sda4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda7 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda7 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda7 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : 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: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 2BB72CD2-39D0-494E-945B-3A5BDED55FB2
Start End Sectors Size Type
sda1 2048 206847 204800 100M EFI System
sda2 206848 239615 32768 16M Microsoft reserved
sda3 239616 162776541 162536926 77.5G Microsoft basic data
sda4 162777088 163839999 1062912 519M Windows recovery environment
sda5 163840000 281026559 117186560 55.9G Linux filesystem
sda6 281026560 281124863 98304 48M BIOS boot
sda7 290791424 488396799 197605376 94.2G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:250GB:scsi:512:512:gpt:ATA Samsung SSD 850:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:83.3GB:83.2GB:ntfs:Basic data partition:msftdata;
4:83.3GB:83.9GB:544MB:ntfs::hidden, diag;
5:83.9GB:144GB:60.0GB:ext4::;
6:144GB:144GB:50.3MB:::bios_grub;
7:149GB:250GB:101GB:ext4::;
Free space >10MiB: ______________________________________________________________
sda: 137268MiB:141988MiB:4720MiB
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 20A6-1505 14c33b16-9946-4ba1-9804-d73322c68949 EFI system partition
├─sda2 ee02708e-ecf0-4c7c-8358-abb21ea0492b Microsoft reserved partition
├─sda3 ntfs 048EB4178EB4036A d8bdee71-ab78-4cfc-8456-0aa51ed7c9a1 Basic data partition
├─sda4 ntfs 0C88DDE188DDC8FA 523e37da-de76-48f3-9f65-f9d11fbe264e
├─sda5 ext4 1eec97bb-4be6-4176-bee6-b557e14b9777 d13aae17-c0ca-41e8-8c6f-f0c4ee5f5993
├─sda6 ddb65219-ddea-4514-8f21-e23feeb300fb
└─sda7 ext4 ec36b998-8dc2-47eb-9d1e-88de363ff2be b360597d-d021-45b4-834a-cc47228fda5d
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda3 46.8G 40% /mnt/boot-sav/sda3
/dev/sda4 88.5M 83% /mnt/boot-sav/sda4
/dev/sda5 43G 16% /
/dev/sda7 55.2G 35% /home
Mount options (filtered): ______________________________________________________
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 1eec97bb-4be6-4176-bee6-b557e14b9777 root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda5/boot/grub/grub.cfg (filtered) ======================
Ubuntu 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.19.0-32-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
Ubuntu, with Linux 5.15.0-43-generic 1eec97bb-4be6-4176-bee6-b557e14b9777
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sda5/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=1eec97bb-4be6-4176-bee6-b557e14b9777 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=20A6-1505 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda7 during installation
UUID=ec36b998-8dc2-47eb-9d1e-88de363ff2be /home ext4 defaults 0 2
======================= sda5/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
==================== sda5: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
128,029357910 = 137,470476288 boot/grub/grub.cfg 1
128,029342651 = 137,470459904 boot/grub/i386-pc/core.img 1
90,401973724 = 97,068380160 boot/vmlinuz 1
126,165546417 = 135,469223936 boot/vmlinuz-5.15.0-43-generic 2
90,401973724 = 97,068380160 boot/vmlinuz-5.19.0-32-generic 1
126,165546417 = 135,469223936 boot/vmlinuz.old 2
80,472393036 = 86,406574080 boot/initrd.img 1
83,816001892 = 89,996746752 boot/initrd.img-5.15.0-43-generic 1
80,472393036 = 86,406574080 boot/initrd.img-5.19.0-32-generic 1
83,816001892 = 89,996746752 boot/initrd.img.old 1
===================== sda5: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18683 Apr 15 2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 2022 30_os-prober
-rwxr-xr-x 1 root root 1372 Apr 15 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Feb 19 2022 35_fwupd
-rwxr-xr-x 1 root root 214 Apr 15 2022 40_custom
-rwxr-xr-x 1 root root 215 Apr 15 2022 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would purge (in order to unsign) and reinstall the grub-efi of
sda5,
using the following options: sda1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
Blockers in case of suggested repair: __________________________________________
WindowsEFI detected. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode.
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.2 LTS entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\grub****.efi (**** will be updated in the final message)
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to UEFI mode.
j ' ai envie de dire que les resultats des courses etait bien la suspicion de depart , mais @geole etant plus expert que moi , il est preferable d' avoir son avis .
Dernière modification par iznobe (Le 24/02/2023, à 10:52)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#13 Le 24/02/2023, à 11:33
- geole
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Il ne faut pas booter en mode LEGACY......
Rectifie le bios..... Au besoin, publie des captures d'écran du bios.
Dernière modification par geole (Le 24/02/2023, à 12:35)
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 24/02/2023, à 15:07
- ubuian
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
Il ne faut pas booter en mode LEGACY......
Rectifie le bios..... Au besoin, publie des captures d'écran du bios.
Grand merci geole.
Ça marche !
Pour ceux qui auraient le même problème:
J'ai mis Fast Boot désactivé
et
CSM Support activé
Dernière modification par ubuian (Le 24/02/2023, à 15:17)
Hors ligne
#15 Le 24/02/2023, à 17:22
- iznobe
Re : [Résolu] Ubuntu 22.04 grub ne trouve pas windows
CSM , c ' est pas bien , il faut mettre soit UEFI , soit LEGACY . dans ton cas ca semblerait etre UEFI donc , et modifier ubuuntu si besoin pour qu ' il demarre en mode EFI .
Dernière modification par iznobe (Le 24/02/2023, à 17:22)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne