#1 Le 02/01/2024, à 14:56
- williamg8635
[Résolu] Problème d'accès à Grub après une mise à jour de Windows
Bonjour,
J'ai démarré mon PC portable que j'utilise quotidiennement avec Ubuntu 22.04 sous Windows 11 hier et de multiples mises à jour se sont installées.
Suite à cela, l'ordinateur ne me propose plus Grub au démarrage, me permettant de choisir entre Windows et Ubuntu mais démarre directement sous Windows.
La mise a jour a réactivé le SecureBoot, le démarrage à l'ouverture de l'ordinateur. Lorsque je rentre dans le BIOS, je ne vois pas Ubuntu dans les possibilités de démarrage.
J'ai lu que le problème était assez courant. N'ayant pas ma clef d'installation Ubuntu sur moi, j'ai créé une nouvelle clef Boot Repair Disk, j'ai lancé l'utilitaire (pour démarrer l'ordinateur sur cette clef, je n'ai pas pu passer par les options de démarrage avancé de Windows 11, il ne me le proposait pas, je suis donc passé par le BIOS directement) et voici ce que j'obtiens à la fin :
Boot successfully repaired.
Please write on a paper the following URL:
http://sprunge.us/isCU3R[...]
Locked-NVram detected. (Ubuntu) Please report this message to boot.repair@gmail.com
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p1/efi/ubuntu/grubx64.efi file) !
Ma demande est donc la suivante : comment réaliser l'instruction demandée à la fin du message de l'utilitaire boot-repair ? En effet, le problème n'est pas résolu et Ubuntu n'apparaît toujours pas dans le BIOS : seuls "Windows Boot Manager" et "MVMe INTEL ..." apparaissent.
Mon ordinateur est un Lenovo Ideapad 3 (15", AMD RYZEN 5000 series 7).
Je vous remercie grandement pour votre aide.
Dernière modification par williamg8635 (Le 02/01/2024, à 17:20)
William
Lenovo Ideapad 3
Ubuntu 22.04
Hors ligne
#2 Le 02/01/2024, à 16:21
- Nasman
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Je pense que la première chose à faire est de désactiver le démarrage rapide de Windows. En effet ce dernier "démarre" (ou plutôt réveille Windows) dans passer par l'étape de reconnaissance des média ou du matériel disponible. Ainsi la clé usb n'est pas visible au moment du boot.
Pour désactiver le démarrage rapide de Windows il faut ouvrir (depuis windows) une console en mode administrateur et passer la commande
powercfg /h off
PC fixe sous Bionic 64 bits et portable avec Focal 64 bits
Hors ligne
#3 Le 02/01/2024, à 16:56
- williamg8635
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Merci pour cette première piste. Il me semblait que j'avais déjà désactivé le démarrage rapide via le panneau de configuration mais j'ai mis votre ligne de commande en plus au cas où.
Malheureusement, cela n'a pas changé grand chose. J'arrive bien à démarrer sur l'utilitaire Boot Repair Disk, j'ai généré un Boot Info et j'ai relancé une réparation, qui m'a renvoyé le même résultat que dans mon premier message, toujours pas de Grub au démarrage et toujours pas de Grub ou Ubuntu dans le BIOS.
Voici les documents générés :
- Boot Info : http://sprunge.us/USpfoq
- Boot Repair Disk : http://sprunge.us/5y1rg6
William
Lenovo Ideapad 3
Ubuntu 22.04
Hors ligne
#4 Le 02/01/2024, à 17:03
- geole
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Bonjour.
Lorsque tu as installé ubuntu la première, cela s'est-il fait sans difficulté?
ou y a-t-il déjà eu un problème d'accès à la nvram?
J'ai envie de te proposer la correction boot par windows.
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
Si la commande dit qu'il y a erreur de codification, tente
bcdedit /set '{bootmgr}' path \EFI\ubuntu\grubx64.efi
Attention de bien avoir le mode administratif.
Dernière modification par geole (Le 02/01/2024, à 17:11)
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 02/01/2024, à 17:09
- williamg8635
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Bonjour,
J'ai installé Ubuntu 22.04 en octobre 2022, il y a un an.
Je ne me rappelle pas avoir eu de soucis au moment de l'installation.
William
Lenovo Ideapad 3
Ubuntu 22.04
Hors ligne
#6 Le 02/01/2024, à 17:13
- geole
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Si tu as la certitude que le grub fonctionnait très bien et proposait windows, j'ai envie de te proposer la correction boot par windows.
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
Si la commande dit qu'il y a erreur de codification, tente
bcdedit /set '{bootmgr}' path \EFI\ubuntu\grubx64.efi
Attention de bien avoir le mode administratif.
Je ne sais pas ce que cet incident cache.
chroot /mnt/boot-sav/nvme0n1p5 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-76-generic
Un changement de lieu de stockage de la structure EFI?
Grub-install cherchant au mauvais endroit ?
Dernière modification par geole (Le 02/01/2024, à 17:23)
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
#7 Le 02/01/2024, à 17:20
- williamg8635
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Victoire !! Grub s'affiche bien au démarrage de l'ordinateur !
La première commande que tu me proposes a très bien fonctionné dans le cmd de Windows en mode admin.
Merci infiniment !
William
Lenovo Ideapad 3
Ubuntu 22.04
Hors ligne
#8 Le 02/01/2024, à 17:28
- geole
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
C'est une méthode qui en vaut une autre.
Peux-tu refaire cette commande dans le ubuntu installé.
grub-install --version
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 02/01/2024, à 17:31
- williamg8635
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Voici ce que j'obtiens :
(base) william@william-IdeaPad-3-15ALC6:~$ grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
William
Lenovo Ideapad 3
Ubuntu 22.04
Hors ligne
#10 Le 02/01/2024, à 20:54
- xubu1957
Re : [Résolu] Problème d'accès à Grub après une mise à jour de Windows
Bonjour,
Collage des Boot-repair (message #3), pour les spécialistes :
boot-repair-4ppa2075 [20240102_1543]
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/nvme0n1.
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sda.
nvme0n1p1: _____________________________________________________________________
File system: vfat
Boot sector type: 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
nvme0n1p2: _____________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
nvme0n1p3: _____________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
nvme0n1p4: _____________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p5: _____________________________________________________________________
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
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 6.04
Boot sector info: Syslinux looks at sector 32784 of /dev/sda1 for its
second stage. The integrity check of Syslinux failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg
/efi/boot/bootx64.efi /efi/boot/grubx64.efi
/efi/boot/mmx64.efi /ldlinux.sys
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.3 LTS on nvme0n1p5
OS#2: Windows 10 or 11 on nvme0n1p3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Lucienne from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: GLCN46WW(1.46) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0016
Timeout: 0 seconds
BootOrder: 0016,0000,0012,0013,0014,0015,0018,0019
Boot0000* Windows Boot Manager HD(1,GPT,ab5588f3-6e4e-4b95-8c3e-a19ba15caca1,0x800,0x82000)/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.}....................
Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe: INTEL SSDPEKNW512GZL PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/NVMe(0x1,5C-D2-E4-83-21-60-D7-A3)....2.LN........
Boot0013* ATA HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0014* ATA HDD1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot0015* ATAPI CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0016* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0017 PCI LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0018* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0019* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
64349b3622c65f495a99dbf6102496e3 nvme0n1p1/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p1/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee nvme0n1p1/Boot/fbx64.efi
a660182adef313615746a665966d2ccc nvme0n1p1/Boot/mmx64.efi
a1da253696a304dce6b4668b70151c0e nvme0n1p1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc nvme0n1p1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p1/ubuntu/shimx64.efi
32dda679c6f10f8ae53cbb54a8b16c7a nvme0n1p1/Microsoft/Boot/bootmgfw.efi
cfd86c015260f8cdbdd54bb33d7270d6 nvme0n1p1/Microsoft/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
Partitions info (2/3): _________________________________________________________
nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p1 : not--sepboot, no-kernel, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
fdisk -l (filtered): ___________________________________________________________
Disk nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: F17AD9E7-E58F-4762-A6AE-09A1884F1FAE
Start End Sectors Size Type
nvme0n1p1 2048 534527 532480 260M EFI System
nvme0n1p2 534528 567295 32768 16M Microsoft reserved
nvme0n1p3 567296 605446271 604878976 288.4G Microsoft basic data
nvme0n1p4 996118528 1000214527 4096000 2G Windows recovery environment
nvme0n1p5 605448192 996118527 390670336 186.3G Linux filesystem
Partition table entries are not in disk order.
Disk sda: 7.22 GiB, 7751073792 bytes, 15138816 sectors
Disk identifier: 0x0011c5ce
Boot Start End Sectors Size Id Type
sda1 * 2048 15138815 15136768 7.2G c W95 FAT32 (LBA)
parted -lm (filtered): _________________________________________________________
sda:7751MB:scsi:512:512:msdos:Verbatim STORE N GO:;
1:1049kB:7751MB:7750MB:fat32::boot, lba;
nvme0n1:512GB:nvme:512:512:gpt:INTEL SSDPEKNW512GZL:;
1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
3:290MB:310GB:310GB:ntfs:Basic data partition:msftdata;
5:310GB:510GB:200GB:ext4::;
4:510GB:512GB:2097MB:ntfs::hidden, diag;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
└─sda1 vfat A05F-8B43 0011c5ce-01 BOOT-REPAIR
nvme0n1
├─nvme0n1p1 vfat 3C23-635C ab5588f3-6e4e-4b95-8c3e-a19ba15caca1 SYSTEM_DRV EFI system partition
├─nvme0n1p2 d4cb761c-d4ae-45d9-9124-e31d0216ded0 Microsoft reserved partition
├─nvme0n1p3 ntfs 90B823FAB823DD8A 9896de9d-6f71-4b2e-9081-5e16d5439a93 Windows-SSD Basic data partition
├─nvme0n1p4 ntfs 1CDC24BADC249056 3128dd46-7df6-45af-8b38-6ca78ccb7a75 WINRE_DRV Basic data partition
└─nvme0n1p5 ext4 3f2698db-756a-4070-b14e-5d8d27740a06 55b0be76-ab62-4c55-b8ff-32d48b282852
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/nvme0n1p1 218.5M 15% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 151.9G 47% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4 1.3G 31% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5 77G 53% /mnt/boot-sav/nvme0n1p5
/dev/sda1 4.8G 34% /cdrom
Mount options (filtered): ______________________________________________________
/dev/nvme0n1p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p3 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p4 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p5 ext4 rw,relatime
/dev/sda1 vfat ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
=================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================
search.fs_uuid 3f2698db-756a-4070-b14e-5d8d27740a06 root
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
=================== nvme0n1p5/boot/grub/grub.cfg (filtered) ====================
Ubuntu 3f2698db-756a-4070-b14e-5d8d27740a06
Windows Boot Manager (on nvme0n1p1) osprober-efi-3C23-635C
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
======================== nvme0n1p5/etc/fstab (filtered) ========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=3f2698db-756a-4070-b14e-5d8d27740a06 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=3C23-635C /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
==================== nvme0n1p5/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
================= nvme0n1p5: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
300.047180176 = 322.173206528 boot/grub/grub.cfg 1
435.439605713 = 467.549716480 boot/vmlinuz 2
436.548980713 = 468.740898816 boot/vmlinuz-6.2.0-37-generic 2
435.439605713 = 467.549716480 boot/vmlinuz-6.2.0-39-generic 2
436.548980713 = 468.740898816 boot/vmlinuz.old 2
471.637691498 = 506.417115136 boot/initrd.img 5
414.981441498 = 445.582929920 boot/initrd.img-6.2.0-37-generic 5
471.637691498 = 506.417115136 boot/initrd.img-6.2.0-39-generic 5
414.981441498 = 445.582929920 boot/initrd.img.old 5
=================== nvme0n1p5: 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 14387 Dec 18 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
====================== sda1/boot/grub/grub.cfg (filtered) ======================
Start Boot-Repair-Disk 64-bit
Start Boot-Repair-Disk 64-bit (compatibility mode)
UEFI Firmware Settings
Test memory
========================= sda1/syslinux.cfg (filtered) =========================
DEFAULT loadconfig
LABEL loadconfig
CONFIG /isolinux/isolinux.cfg
APPEND /isolinux/
==================== sda1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================== sda1: Location of files loaded by Syslinux ==================
GiB - GB File Fragment(s)
?? = ?? syslinux.cfg 1
?? = ?? ldlinux.sys 1
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi of
nvme0n1p5,
using the following options: nvme0n1p1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p1/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)
boot-repair-4ppa2075 [20240102_1545]
============================= Boot Repair Summary ==============================
Recommended repair: ____________________________________________________________
The default repair of the Boot-Repair utility will reinstall the grub-efi of
nvme0n1p5,
using the following options: nvme0n1p1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
rm /mnt/boot-sav/nvme0n1p1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/nvme0n1p1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/nvme0n1p1/efi/Boot/bootx64.efi
Mount /dev/nvme0n1p1 on /mnt/boot-sav/nvme0n1p5/boot/efi
=================== Reinstall the grub-efi of /dev/nvme0n1p5 ===================
chroot /mnt/boot-sav/nvme0n1p5 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-76-generic
chroot /mnt/boot-sav/nvme0n1p5 modprobe efivars
chroot /mnt/boot-sav/nvme0n1p5 efibootmgr -v before grub install
BootCurrent: 0016
Timeout: 0 seconds
BootOrder: 0016,0000,0012,0013,0014,0015,0018,0019
Boot0000* Windows Boot Manager HD(1,GPT,ab5588f3-6e4e-4b95-8c3e-a19ba15caca1,0x800,0x82000)/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.}....................
Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe: INTEL SSDPEKNW512GZL PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/NVMe(0x1,5C-D2-E4-83-21-60-D7-A3)....2.LN........
Boot0013* ATA HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0014* ATA HDD1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot0015* ATAPI CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0016* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0017 PCI LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0018* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0019* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
chroot /mnt/boot-sav/nvme0n1p5 uname -r
5.15.0-76-generic
chroot /mnt/boot-sav/nvme0n1p5 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/nvme0n1p1
mv /mnt/boot-sav/nvme0n1p5/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p5/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p5/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p5/boot/efi/EFI/Boot/bootx64.efi
chroot /mnt/boot-sav/nvme0n1p5 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/nvme0n1p5 efibootmgr -v after grub install
BootCurrent: 0016
Timeout: 0 seconds
BootOrder: 0016,0000,0012,0013,0014,0015,0018,0019
Boot0000* Windows Boot Manager HD(1,GPT,ab5588f3-6e4e-4b95-8c3e-a19ba15caca1,0x800,0x82000)/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.}....................
Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe: INTEL SSDPEKNW512GZL PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/NVMe(0x1,5C-D2-E4-83-21-60-D7-A3)....2.LN........
Boot0013* ATA HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0014* ATA HDD1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot0015* ATAPI CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0016* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0017 PCI LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0018* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0019* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Warning: NVram is locked (Ubuntu not found in efibootmgr).
chroot /mnt/boot-sav/nvme0n1p5 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Found linux image: /boot/vmlinuz-6.2.0-39-generic
Found initrd image: /boot/initrd.img-6.2.0-39-generic
Found linux image: /boot/vmlinuz-6.2.0-37-generic
Found initrd image: /boot/initrd.img-6.2.0-37-generic
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Unhide GRUB boot menu in nvme0n1p5/boot/grub/grub.cfg
Boot successfully repaired.
Locked-NVram detected. (Ubuntu) Please report this message to boot.repair@gmail.com
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p1/efi/ubuntu/grubx64.efi file) !
============================ Boot Info After Repair ============================
=> No boot loader is installed in the MBR of /dev/nvme0n1.
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sda.
nvme0n1p1: _____________________________________________________________________
File system: vfat
Boot sector type: 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
nvme0n1p2: _____________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
nvme0n1p3: _____________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 10 or 11
Boot files: /Windows/System32/winload.exe
nvme0n1p4: _____________________________________________________________________
File system: ntfs
Boot sector type: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p5: _____________________________________________________________________
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
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 6.04
Boot sector info: Syslinux looks at sector 32784 of /dev/sda1 for its
second stage. The integrity check of Syslinux failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg
/efi/boot/bootx64.efi /efi/boot/grubx64.efi
/efi/boot/mmx64.efi /ldlinux.sys
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.3 LTS on nvme0n1p5
OS#2: Windows 10 or 11 on nvme0n1p3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Lucienne from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: GLCN46WW(1.46) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0016
Timeout: 0 seconds
BootOrder: 0016,0000,0012,0013,0014,0015,0018,0019
Boot0000* Windows Boot Manager HD(1,GPT,ab5588f3-6e4e-4b95-8c3e-a19ba15caca1,0x800,0x82000)/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.}....................
Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe: INTEL SSDPEKNW512GZL PciRoot(0x0)/Pci(0x2,0x4)/Pci(0x0,0x0)/NVMe(0x1,5C-D2-E4-83-21-60-D7-A3)....2.LN........
Boot0013* ATA HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0014* ATA HDD1: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot0015* ATAPI CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0016* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0017 PCI LAN: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0018* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0019* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
64349b3622c65f495a99dbf6102496e3 nvme0n1p1/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p1/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee nvme0n1p1/Boot/fbx64.efi
a660182adef313615746a665966d2ccc nvme0n1p1/Boot/mmx64.efi
a1da253696a304dce6b4668b70151c0e nvme0n1p1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc nvme0n1p1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p1/ubuntu/shimx64.efi
32dda679c6f10f8ae53cbb54a8b16c7a nvme0n1p1/Microsoft/Boot/bootmgfw.efi
cfd86c015260f8cdbdd54bb33d7270d6 nvme0n1p1/Microsoft/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
nvme0n1p5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
Partitions info (2/3): _________________________________________________________
nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p1 : not--sepboot, no-kernel, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
fdisk -l (filtered): ___________________________________________________________
Disk nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: F17AD9E7-E58F-4762-A6AE-09A1884F1FAE
Start End Sectors Size Type
nvme0n1p1 2048 534527 532480 260M EFI System
nvme0n1p2 534528 567295 32768 16M Microsoft reserved
nvme0n1p3 567296 605446271 604878976 288.4G Microsoft basic data
nvme0n1p4 996118528 1000214527 4096000 2G Windows recovery environment
nvme0n1p5 605448192 996118527 390670336 186.3G Linux filesystem
Partition table entries are not in disk order.
Disk sda: 7.22 GiB, 7751073792 bytes, 15138816 sectors
Disk identifier: 0x0011c5ce
Boot Start End Sectors Size Id Type
sda1 * 2048 15138815 15136768 7.2G c W95 FAT32 (LBA)
parted -lm (filtered): _________________________________________________________
sda:7751MB:scsi:512:512:msdos:Verbatim STORE N GO:;
1:1049kB:7751MB:7750MB:fat32::boot, lba;
nvme0n1:512GB:nvme:512:512:gpt:INTEL SSDPEKNW512GZL:;
1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
3:290MB:310GB:310GB:ntfs:Basic data partition:msftdata;
5:310GB:510GB:200GB:ext4::;
4:510GB:512GB:2097MB:ntfs::hidden, diag;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
└─sda1 vfat A05F-8B43 0011c5ce-01 BOOT-REPAIR
nvme0n1
├─nvme0n1p1 vfat 3C23-635C ab5588f3-6e4e-4b95-8c3e-a19ba15caca1 SYSTEM_DRV EFI system partition
├─nvme0n1p2 d4cb761c-d4ae-45d9-9124-e31d0216ded0 Microsoft reserved partition
├─nvme0n1p3 ntfs 90B823FAB823DD8A 9896de9d-6f71-4b2e-9081-5e16d5439a93 Windows-SSD Basic data partition
├─nvme0n1p4 ntfs 1CDC24BADC249056 3128dd46-7df6-45af-8b38-6ca78ccb7a75 WINRE_DRV Basic data partition
└─nvme0n1p5 ext4 3f2698db-756a-4070-b14e-5d8d27740a06 55b0be76-ab62-4c55-b8ff-32d48b282852
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/nvme0n1p1 218.5M 15% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 151.9G 47% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4 1.3G 31% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5 77G 53% /mnt/boot-sav/nvme0n1p5
/dev/sda1 4.8G 34% /cdrom
Mount options (filtered): ______________________________________________________
/dev/nvme0n1p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p3 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p4 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p5 ext4 rw,relatime
/dev/sda1 vfat ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
=================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================
search.fs_uuid 3f2698db-756a-4070-b14e-5d8d27740a06 root
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
=================== nvme0n1p5/boot/grub/grub.cfg (filtered) ====================
Ubuntu 3f2698db-756a-4070-b14e-5d8d27740a06
Windows Boot Manager (on nvme0n1p1) osprober-efi-3C23-635C
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
======================== nvme0n1p5/etc/fstab (filtered) ========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=3f2698db-756a-4070-b14e-5d8d27740a06 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=3C23-635C /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
==================== nvme0n1p5/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
================= nvme0n1p5: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
435.439605713 = 467.549716480 boot/vmlinuz 2
436.548980713 = 468.740898816 boot/vmlinuz-6.2.0-37-generic 2
435.439605713 = 467.549716480 boot/vmlinuz-6.2.0-39-generic 2
436.548980713 = 468.740898816 boot/vmlinuz.old 2
471.637691498 = 506.417115136 boot/initrd.img 5
414.981441498 = 445.582929920 boot/initrd.img-6.2.0-37-generic 5
471.637691498 = 506.417115136 boot/initrd.img-6.2.0-39-generic 5
414.981441498 = 445.582929920 boot/initrd.img.old 5
=================== nvme0n1p5: 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 14387 Dec 18 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
====================== sda1/boot/grub/grub.cfg (filtered) ======================
Start Boot-Repair-Disk 64-bit
Start Boot-Repair-Disk 64-bit (compatibility mode)
UEFI Firmware Settings
Test memory
========================= sda1/syslinux.cfg (filtered) =========================
DEFAULT loadconfig
LABEL loadconfig
CONFIG /isolinux/isolinux.cfg
APPEND /isolinux/
==================== sda1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================== sda1: Location of files loaded by Syslinux ==================
GiB - GB File Fragment(s)
?? = ?? syslinux.cfg 1
?? = ?? ldlinux.sys 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