Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/01/2024, à 21:18

barbudor

[résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonjour à tous
Bonne Année et meilleurs voeux à tous
Pour moi ca commence mal, cela fait 2 jours que je galère a essayer de réparer mon dual-boot  lubuntu/win11 qui s'est cassé suite à une bidouille
J'ai épuisé une douzaine d'article et de discussions de forums divers qui recommendent tous plus ou moins les même choses mais rien n'y fait

Situation initiale
- Instalation faite il y a 18 mois, fonctionnait sans soucis jusqu'à dimanche dernier
- Installation initiale W11 puis Lubuntu 22.10
- NVME 2TO partitionné comme suit

/dev/nvme0n1p1: PARTLABEL="EFI system partition"                                PARTUUID="98f8328d-e70a-4600-9dd2-dd031a5910db" UUID="0034-474E"                            BLOCK_SIZE="512"  TYPE="vfat"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition"                        PARTUUID="ac4882f6-2639-4b4b-a72f-f22e178ff794"
/dev/nvme0n1p3: PARTLABEL="Basic data partition"         LABEL="win11"          PARTUUID="1beb741d-0774-4edb-9442-faad6ca13238" UUID="FCCA3C3BCA3BF08E"                     BLOCK_SIZE="512"  TYPE="ntfs" 
/dev/nvme0n1p4:                                                                 PARTUUID="d9314e67-f4d8-4d40-b8e1-052ddb1490c2" UUID="0C144D88144D762C"                     BLOCK_SIZE="512"  TYPE="ntfs" 
/dev/nvme0n1p5: PARTLABEL="root"                         LABEL="lubuntu-hx90x"  PARTUUID="303ba338-6686-5b4c-8ac9-44e189cf3678" UUID="ed165756-eedf-483f-b596-8acc22da87e8" BLOCK_SIZE="4096" TYPE="ext4"
/dev/nvme0n1p6:                                          LABEL="Data"           PARTUUID="ff0b6729-add2-bd43-822e-d04a06b8e02e" UUID="BA94BD7494BD342B"                     BLOCK_SIZE="512"  TYPE="ntfs"

Windows et Lubuntu upgradés régulièrement. Notamment Lubuntu 22.10 => 23.04 => 23.10 (en décember) sans aucun soucis

La bidouille qui a fait planter
J'ai un Lubuntu sur un HDD USB externe qui me sert de temps en temps quand je veux booter Linux sur des PC qui ne sont qu'en Windows sans dual-boot (sans grub donc)
Ce HDD a été créé à l'origine sur un PC qui n'avait pas de dual boot
Dimanche il m'a prit l'idée de l'upgraded en 23.10 en bootant dessus sur mon PC dual-boot

L'upgrade sur ce HDD USB s'est bien passé sauf qu'il a viré GRUB du NVME du PC (et qu'il a rajouté le linux "lubuntu-hx90x" dans son propre menu GRUB)
Résultat:
- Si je boot le PC sans le HDD USB, je passe directement à Windows sans passer par GRUB
- Si je boot le PC avec le HDD USB, je passe par le GRUB du HDD USB et je peux booter soit sur le linux du HDD USB, soit sur le Win11 du NVME soit sur lubuntu-hx90x du NVME

Qu'est-ce que j'ai essayé
Un peu tout ce que j'ai pu trouver sur les forums
1) boot-repair en l'installant sur le linux du HDD USB
2) boot-repair en bootant sur l'image ISO boot-repair depuis une clé USB
3) booter le linux lubuntu-hx90x depuis le menu du HDD USB puis enlever le HDD USB et exécuter

      $ sudo grub-install /dev/nvme0n1p5
      $ sudo grub-install --recheck /dev/nvme0n1p5
      $ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/lubuntu-grub-theme.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/lubuntu-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Found linux image: /boot/vmlinuz-6.2.0-37-generic
Found initrd image: /boot/initrd.img-6.2.0-37-generic
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.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
      $ sudo efibootmgr -v
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0005,0000,0004,0002,0001
Boot0000* Windows Boot Manager  HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002  ubuntu        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu-hx90x HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)
Boot0005* ubuntu        HD(1,MBR,0xe9db032c,0x800,0x9b000)/File(\EFI\ubuntu\shimx64.efi)..BO

Tout semble être ok et bien vouloir booter sur le lubuntu-hx90x
Mais non, rien n'y fait

Autre remarques
les répertoires /etc/default/grub.d tant de mon HDD USB que du NVME ne contiennent que lubuntu-grub-theme.cfg et non pas les fichiers ?°_* habituels
Mais comme ca ne semble pas poser de problèmes au HDD USB je pense que c'est nouveau avec Ubuntu 23.10

Voilà, je suis à la limite de craquage big_smile et de réinstaller complètement mon linux sur le PC/NVME mais ca me ferais quand bien c... d'avoir à tout réinstaller

Merci d'avance de vos conseils et suggestions

===========================================
SOLUCE

Faire un boot-repair en cochant "purger grub" dans les options avancées semble avoir tout remis en état. Tout le reste ne semble avoir été qu'errance inutile.

Dernière modification par barbudor (Le 11/01/2024, à 22:27)

Hors ligne

#2 Le 09/01/2024, à 22:29

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonsoir.

barbudor a écrit :

Qu'est-ce que j'ai essayé
Un peu tout ce que j'ai pu trouver sur les forums
2) boot-repair en bootant sur l'image ISO boot-repair depuis une clé USB

Avais-tu pensé à débrancher le HDD externe?
Je te propose de recommencer en postant le résultat de la réparation.
Puis lorsque tu auras rebooté, tu  diras si réparé ou pas.


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

Hors ligne

#3 Le 09/01/2024, à 22:36

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonsoir @geole

geole a écrit :

2) boot-repair en bootant sur l'image ISO boot-repair depuis une clé USB

Avais-tu pensé à débrancher le HDD externe?

Dans le cas 2, j'avais booté sur une clé USB avec le live boot-repair donc je ne peux pas l'enlever puisque je tourne dessus

Dans le cas 3 où j'ai juste utilisé le HDD USB (pas une clé) pour utiliser son GRUB et booter le linux du NVME, oui j'avais enlevé le HDD USB avant de faire les grub install

geole a écrit :

Je te propose de recommencer en postant le résultat de la réparation.

Recommencer quel méthode ? Le boot sur la clé USB du live boot-repair ?

Merci

Hors ligne

#4 Le 09/01/2024, à 23:01

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

La réparation en live usb sans le disque dur externe branché.


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 09/01/2024, à 23:38

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Désolé je n'ai pas vu ta réponse et j'ai fait une autre manip qiu me semble interressante
- Booter sur le HDD USB mais dans le menu Grub choisir le linux du NVME
- Une fois booté, retirer le HDD USB
- boot-info => https://paste.ubuntu.com/p/jHD8z2Zr84
- boot-repair (recommendé)
- boot-info de sortie => https://paste.ubuntu.com/p/4BN5VYXGmt

Je reboot et là je tombe sur le prompt grub>
J'avoue que là je suis coincé et que je ne sais pas quoi faire

Je boote dans le bios UEFI, et je change l'odre de boot UEFI de [ubuntu, windows boot manager] => [windows boot manager, ubuntu] afin de redémarrer Windows

Y'a des trucs qui me gène dans le résultat d'efibootmrg:

efibootmgr -v after grub install
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0004,0005,0000
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(EFIlubuntu@hx90xgrubx64.efi)
Boot0005* ubuntu	HD(1,MBR,0xe9db032c,0x800,0x9b000)/File(EFIUBUNTUSHIMX64.EFI)..BO

Je ne sais pas à quoi correspondent les entrées 0001 et 0002
L'entrée 0005 correspond au HDD USB sur lequel j'ai booté le grub

En attendant je vais quand même faire ta manip pour voir si cela fait une différence

Hors ligne

#6 Le 10/01/2024, à 00:11

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

J'ai refait la manip à partir du live USB boot-repair et même résultat
Avec ubuntu en 1er dans le boot order UEFI, je tombe sur le prompt grub
Les boot-info avant et après sont là: http://sprunge.us/UO4c5F & http://sprunge.us/GJ2Q8V

J'ai essayé de faire exit depuis le prompt grub et ca boote windows

Hors ligne

#7 Le 10/01/2024, à 08:35

xubu1957

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonjour,

Collage du Boot-repair, pour les spécialistes :

boot-repair-4ppa2075                                              [20240109_2152]

============================== 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/lubuntu@hx90x/grubx64.efi 
                       /efi/lubuntu@hx90x/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 8 or 10
    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 23.10
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

nvme0n1p6: _____________________________________________________________________

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

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 23.10 on nvme0n1p5
OS#2:   Windows 8 or 10 on nvme0n1p3

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

CPU architecture: 64-bit
Video: Cezanne 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: 5.19(5.19) from American Megatrends International, LLC.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0005,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)
Boot0005* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/USB(0,0)/USB(3,0)/HD(1,MBR,0xc1458,0x800,0xf00000)..BO

1d99ff510dac8535d215797ad5e69230   nvme0n1p1/Boot/bkpbootx64.efi
1d99ff510dac8535d215797ad5e69230   nvme0n1p1/Boot/bootx64.efi
925029921cfc9e40f54f55d4cffbdd49   nvme0n1p1/Boot/fbx64.efi
857e495f63f23c842e2b074e692b6e3a   nvme0n1p1/Boot/mmx64.efi
1d99ff510dac8535d215797ad5e69230   nvme0n1p1/lubuntu@hx90x/grubx64.efi
2a3bd52fec672a1f1364ca9b41553f4d   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
219a45fc0b91c22521a72dffdcbac5d4   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-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
nvme0n1p6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	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
nvme0n1p6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	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
nvme0n1p6	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 760AAB49-1BBB-4822-BFE3-C3739B7DF6D6
              Start        End    Sectors   Size Type
nvme0n1p1       2048     206847     204800   100M EFI System
nvme0n1p2     206848     239615      32768    16M Microsoft reserved
nvme0n1p3     239616  817891327  817651712 389.9G Microsoft basic data
nvme0n1p4  817891328  819199999    1308672   639M Windows recovery environment
nvme0n1p5  819200000 1638399999  819200000 390.6G Linux filesystem
nvme0n1p6 1638400000 3907028991 2268628992   1.1T Microsoft basic data
Disk sda: 7.5 GiB, 8054112256 bytes, 15730688 sectors
Disk identifier: 0x000c1458
     Boot Start      End  Sectors  Size Id Type
sda1  *     2048 15730687 15728640  7.5G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:8054MB:scsi:512:512:msdos:Generic Flash Disk:;
1:1049kB:8054MB:8053MB:fat32::boot, lba;
nvme0n1:2000GB:nvme:512:512:gpt:Samsung SSD 980 PRO with Heatsink 2TB:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:419GB:419GB:ntfs:Basic data partition:msftdata;
4:419GB:419GB:670MB:ntfs::hidden, diag;
5:419GB:839GB:419GB:ext4:root:;
6:839GB:2000GB:1162GB:ntfs::msftdata;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL         PARTLABEL
sda                                                                                                          
└─sda1      vfat     5023-244D                            000c1458-01                          BOOT-REPAIR   
nvme0n1                                                                                                      
├─nvme0n1p1 vfat     0034-474E                            98f8328d-e70a-4600-9dd2-dd031a5910db               EFI system partition
├─nvme0n1p2                                               ac4882f6-2639-4b4b-a72f-f22e178ff794               Microsoft reserved partition
├─nvme0n1p3 ntfs     FCCA3C3BCA3BF08E                     1beb741d-0774-4edb-9442-faad6ca13238 win11         Basic data partition
├─nvme0n1p4 ntfs     0C144D88144D762C                     d9314e67-f4d8-4d40-b8e1-052ddb1490c2               
├─nvme0n1p5 ext4     ed165756-eedf-483f-b596-8acc22da87e8 303ba338-6686-5b4c-8ac9-44e189cf3678 lubuntu-hx90x root
└─nvme0n1p6 ntfs     BA94BD7494BD342B                     ff0b6729-add2-bd43-822e-d04a06b8e02e Data          

Mount points (filtered): _______________________________________________________

                Avail Use% Mounted on
/dev/nvme0n1p1  61.4M  36% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 248.6G  36% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4  89.4M  86% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5   264G  26% /mnt/boot-sav/nvme0n1p5
/dev/nvme0n1p6 782.5G  28% /mnt/boot-sav/nvme0n1p6
/dev/sda1          5G  33% /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/nvme0n1p6 fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda1      vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

=============== nvme0n1p1/efi/lubuntu@hx90x/grub.cfg (filtered) ================

search.fs_uuid ed165756-eedf-483f-b596-8acc22da87e8 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Lubuntu@HX90x 23.10 GNU/Linux   ed165756-eedf-483f-b596-8acc22da87e8
Windows Boot Manager (on nvme0n1p1)   osprober-efi-0034-474E
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p5/etc/fstab (filtered) ========================

# <file system>                           <mount point>  <type>  <options>                     <dump>  <pass>
UUID=ed165756-eedf-483f-b596-8acc22da87e8 /              ext4    defaults,discard              0       1
/swapfile                                 swap           swap    defaults                      0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777    0       0
# <file system>                <mp>   <type>  <options>                                                                                                                     <dump>  <pass>
//192.168.168.221/jm-media     /m     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
//192.168.168.221/Public       /p     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
//192.168.168.221/jean-michel  /q     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
//192.168.168.221/raspi        /r     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
/dev/disk/by-uuid/BA94BD7494BD342B /d auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Data 0 0
UUID=0034-474E  /boot/efi       vfat    defaults      0       1

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`echo -n Lubuntu@HX90x $(lsb_release -rs 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)
 515.972751617 = 554.021523456  boot/grub/grub.cfg                             1
 694.614849091 = 745.837015040  boot/vmlinuz                                   2
 474.481647491 = 509.470789632  boot/vmlinuz-6.2.0-37-generic                  2
 694.614849091 = 745.837015040  boot/vmlinuz-6.5.0-14-generic                  2
 474.481647491 = 509.470789632  boot/vmlinuz.old                               2
 531.515621185 = 570.710552576  boot/initrd.img                               10
 497.249996185 = 533.918117888  boot/initrd.img-6.2.0-37-generic               2
 531.515621185 = 570.710552576  boot/initrd.img-6.5.0-14-generic              10
 497.249996185 = 533.918117888  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18228 Oct  2 14:23 10_linux
-rwxr-xr-x 1 root root 43202 Oct  2 14:23 10_linux_zfs
-rwxr-xr-x 1 root root 14459 Oct  2 14:23 20_linux_xen
-rwxr-xr-x 1 root root   786 Oct  2 14:23 25_bli
-rwxr-xr-x 1 root root 13120 Oct  2 14:23 30_os-prober
-rwxr-xr-x 1 root root  1174 Oct  2 14:23 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct  2 14:23 40_custom
-rwxr-xr-x 1 root root   215 Oct  2 14:23 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 23.10 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)

Collage du Boot-info :

boot-repair-4ppa2075                                              [20240109_2153]

============================= 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.12~rc1-10ubuntu4
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
Skipping unreadable variable "Boot0002": Input/output error
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0005,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(EFILUBUNTU@HX90XGRUBX64.EFI)
Boot0005* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/USB(0,0)/USB(3,0)/HD(1,MBR,0xc1458,0x800,0xf00000)..BO

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/lubuntu@hx90x/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
Skipping unreadable variable "Boot0002": Input/output error
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0005,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(EFILUBUNTU@HX90XGRUBX64.EFI)
Boot0005* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/USB(0,0)/USB(3,0)/HD(1,MBR,0xc1458,0x800,0xf00000)..BO
Warning: NVram was not modified.

chroot /mnt/boot-sav/nvme0n1p5 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/lubuntu-grub-theme.cfg'
Found theme: /usr/share/grub/themes/lubuntu-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Found linux image: /boot/vmlinuz-6.2.0-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
Adding boot menu entry for UEFI Firmware Settings ...

Unhide GRUB boot menu in nvme0n1p5/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 23.10 entry (nvme0n1p1/efi/lubuntu@hx90x/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\lubuntu@hx90x\grubx64.efi


============================ 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/lubuntu@hx90x/grubx64.efi 
                       /efi/lubuntu@hx90x/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 8 or 10
    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 23.10
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

nvme0n1p6: _____________________________________________________________________

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

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 23.10 on nvme0n1p5
OS#2:   Windows 8 or 10 on nvme0n1p3

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

CPU architecture: 64-bit
Video: Cezanne 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: 5.19(5.19) from American Megatrends International, LLC.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0005,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)
Boot0005* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/USB(0,0)/USB(3,0)/HD(1,MBR,0xc1458,0x800,0xf00000)..BO

1d99ff510dac8535d215797ad5e69230   nvme0n1p1/Boot/bkpbootx64.efi
1d99ff510dac8535d215797ad5e69230   nvme0n1p1/Boot/bootx64.efi
925029921cfc9e40f54f55d4cffbdd49   nvme0n1p1/Boot/fbx64.efi
857e495f63f23c842e2b074e692b6e3a   nvme0n1p1/Boot/mmx64.efi
1d99ff510dac8535d215797ad5e69230   nvme0n1p1/lubuntu@hx90x/grubx64.efi
2a3bd52fec672a1f1364ca9b41553f4d   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
219a45fc0b91c22521a72dffdcbac5d4   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-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
nvme0n1p6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	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
nvme0n1p6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	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
nvme0n1p6	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 760AAB49-1BBB-4822-BFE3-C3739B7DF6D6
              Start        End    Sectors   Size Type
nvme0n1p1       2048     206847     204800   100M EFI System
nvme0n1p2     206848     239615      32768    16M Microsoft reserved
nvme0n1p3     239616  817891327  817651712 389.9G Microsoft basic data
nvme0n1p4  817891328  819199999    1308672   639M Windows recovery environment
nvme0n1p5  819200000 1638399999  819200000 390.6G Linux filesystem
nvme0n1p6 1638400000 3907028991 2268628992   1.1T Microsoft basic data
Disk sda: 7.5 GiB, 8054112256 bytes, 15730688 sectors
Disk identifier: 0x000c1458
     Boot Start      End  Sectors  Size Id Type
sda1  *     2048 15730687 15728640  7.5G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:8054MB:scsi:512:512:msdos:Generic Flash Disk:;
1:1049kB:8054MB:8053MB:fat32::boot, lba;
nvme0n1:2000GB:nvme:512:512:gpt:Samsung SSD 980 PRO with Heatsink 2TB:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:419GB:419GB:ntfs:Basic data partition:msftdata;
4:419GB:419GB:670MB:ntfs::hidden, diag;
5:419GB:839GB:419GB:ext4:root:;
6:839GB:2000GB:1162GB:ntfs::msftdata;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL         PARTLABEL
sda                                                                                                          
└─sda1      vfat     5023-244D                            000c1458-01                          BOOT-REPAIR   
nvme0n1                                                                                                      
├─nvme0n1p1 vfat     0034-474E                            98f8328d-e70a-4600-9dd2-dd031a5910db               EFI system partition
├─nvme0n1p2                                               ac4882f6-2639-4b4b-a72f-f22e178ff794               Microsoft reserved partition
├─nvme0n1p3 ntfs     FCCA3C3BCA3BF08E                     1beb741d-0774-4edb-9442-faad6ca13238 win11         Basic data partition
├─nvme0n1p4 ntfs     0C144D88144D762C                     d9314e67-f4d8-4d40-b8e1-052ddb1490c2               
├─nvme0n1p5 ext4     ed165756-eedf-483f-b596-8acc22da87e8 303ba338-6686-5b4c-8ac9-44e189cf3678 lubuntu-hx90x root
└─nvme0n1p6 ntfs     BA94BD7494BD342B                     ff0b6729-add2-bd43-822e-d04a06b8e02e Data          

Mount points (filtered): _______________________________________________________

                Avail Use% Mounted on
/dev/nvme0n1p1  61.4M  36% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 248.6G  36% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4  89.4M  86% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5   264G  26% /mnt/boot-sav/nvme0n1p5
/dev/nvme0n1p6 782.5G  28% /mnt/boot-sav/nvme0n1p6
/dev/sda1          5G  33% /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/nvme0n1p6 fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda1      vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

=============== nvme0n1p1/efi/lubuntu@hx90x/grub.cfg (filtered) ================

search.fs_uuid ed165756-eedf-483f-b596-8acc22da87e8 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Lubuntu@HX90x 23.10 GNU/Linux   ed165756-eedf-483f-b596-8acc22da87e8
Windows Boot Manager (on nvme0n1p1)   osprober-efi-0034-474E
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p5/etc/fstab (filtered) ========================

# <file system>                           <mount point>  <type>  <options>                     <dump>  <pass>
UUID=ed165756-eedf-483f-b596-8acc22da87e8 /              ext4    defaults,discard              0       1
/swapfile                                 swap           swap    defaults                      0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777    0       0
# <file system>                <mp>   <type>  <options>                                                                                                                     <dump>  <pass>
//192.168.168.221/jm-media     /m     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
//192.168.168.221/Public       /p     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
//192.168.168.221/jean-michel  /q     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
//192.168.168.221/raspi        /r     cifs    auto,rw,users,file_mode=0700,dir_mode=0770,credentials=/home/jeanmichel/.config/smbcredentials,uid=jeanmichel,gid=sambashare  0       0
/dev/disk/by-uuid/BA94BD7494BD342B /d auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=Data 0 0
UUID=0034-474E  /boot/efi       vfat    defaults      0       1

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`echo -n Lubuntu@HX90x $(lsb_release -rs 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
 694.614849091 = 745.837015040  boot/vmlinuz                                   2
 474.481647491 = 509.470789632  boot/vmlinuz-6.2.0-37-generic                  2
 694.614849091 = 745.837015040  boot/vmlinuz-6.5.0-14-generic                  2
 474.481647491 = 509.470789632  boot/vmlinuz.old                               2
 531.515621185 = 570.710552576  boot/initrd.img                               10
 497.249996185 = 533.918117888  boot/initrd.img-6.2.0-37-generic               2
 531.515621185 = 570.710552576  boot/initrd.img-6.5.0-14-generic              10
 497.249996185 = 533.918117888  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18228 Oct  2 14:23 10_linux
-rwxr-xr-x 1 root root 43202 Oct  2 14:23 10_linux_zfs
-rwxr-xr-x 1 root root 14459 Oct  2 14:23 20_linux_xen
-rwxr-xr-x 1 root root   786 Oct  2 14:23 25_bli
-rwxr-xr-x 1 root root 13120 Oct  2 14:23 30_os-prober
-rwxr-xr-x 1 root root  1174 Oct  2 14:23 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Oct  2 14:23 40_custom
-rwxr-xr-x 1 root root   215 Oct  2 14:23 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ésolu] 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

Hors ligne

#8 Le 10/01/2024, à 11:27

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonjour.
Je ne comprends pas la cause de cette erreur.

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.

J'ai vu que cette installation n'a pas été remise prioritaire.

BootOrder: 0005,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002  ubuntu	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)
Boot0005* UEF

Donc reboote comme tu peux et fais cette commande de remise en ordre.

sudo efibootmgr -o 4,0

Puis tu testeras.
Si tout est redevenu correct, tu  devrais alors  booter sur lubuntu.
On va alors regarder comment est le ubuntu de ton disque externe.
tu le brancheras et feras un nouveau boot-info afin de voir comment sa structure de  boot est faite.

Dernière modification par geole (Le 10/01/2024, à 11: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

#9 Le 10/01/2024, à 12:47

iznobe

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonjour ,

$ sudo efibootmgr -v
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0005,0000,0004,0002,0001
Boot0000* Windows Boot Manager  HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0001  ubuntu        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002  ubuntu        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* lubuntu-hx90x HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)
Boot0005* ubuntu        HD(1,MBR,0xe9db032c,0x800,0x9b000)/File(\EFI\ubuntu\shimx64.efi)..BO

Tout semble être ok et bien vouloir booter sur le lubuntu-hx90x
Mais non, rien n'y fait

ce que tu dis est contradictoire avec ce que dis le retour ci-dessus .
le bon ordre serait plutot : 4,5,0 etc ... non ?

@geole :

grub-install: warning: EFI variables cannot be set on this system.

rien à voir avec le secure boot ?


@barbudor , montre le retour de :

bootctl

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


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#10 Le 10/01/2024, à 17:06

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonjour iznobe
Ce n'est pas contradictoire,     

BootOrder: 0005,
Boot0005* ubuntu        HD(1,MBR,0xe9db032c,0x800,0x9b000)/File(\EFI\ubuntu\shimx64.efi)..BO

C'est le disque dur externe

Suivant ce qu'on trouve au dernier moment.

Boot0005* UEFI: Generic Flash Disk 8.07, Partition 1    PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/USB(0,0)/USB(3,0)/HD(1,MBR,0xc1458,0x800,0xf00000)..BO

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


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 10/01/2024, à 22:53

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Bonsoir

@iznobe
voila bootctl

System:
     Firmware: n/a (n/a)
  Secure Boot: disabled
   Setup Mode: setup
 TPM2 Support: yes
 Boot into FW: supported

Current Boot Loader:
      Product: n/a
     Features: ✗ Boot counting
               ✗ Menu timeout control
               ✗ One-shot menu timeout control
               ✗ Default entry control
               ✗ One-shot entry control
               ✗ Support for XBOOTLDR partition
               ✗ Support for passing random seed to OS
               ✗ Boot loader sets ESP information
          ESP: n/a
         File: └─n/a

Random Seed:
 Passed to OS: no
 System Token: not set

Boot Loaders Listed in EFI Variables:
        Title: lubuntu@hx90x
           ID: 0x0004
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/98f8328d-e70a-4600-9dd2-dd031a5910db
         File: └─/EFI/LUBUNTU@HX90X/GRUBX64.EFI

        Title: Windows Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/98f8328d-e70a-4600-9dd2-dd031a5910db
         File: └─/EFI/MICROSOFT/BOOT/BOOTMGFW.EFI

@geole
J'ai carrement enlever les boot entries qui ne me plaisait pas et maintenant, j'ai

mint@mint:~$ sudo efibootmgr -v
BootCurrent: 0005
Timeout: 4 seconds
BootOrder: 0004,0000
Boot0000* Windows Boot Manager	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,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.}...y................
Boot0004* lubuntu@hx90x	HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)

Mais je boote toujours sur le prompt grub
Donc j'en arrive à la conclusion que grub est bien là mais qu'il ne trouve pas son menu

J'ai donc une fois de plus reboot sur le live USB de boot-repair mais pas pour executer boot repair mais refaire une config de grub sur le nvme
mount, chroot et update-grub
ca semble ok (j'ai oublié de copier la console)

mais toujours pareil, j'arrive dans le prompt de grub sans menu de boot

je suis tenté de me créer une ptite partition sur le nvme et de faire une install de lubuntu dedans en espérant que ca clean tout
mais j'ai peur de ne pas pouvoir la supprimer ensuite sans retomber dans les mêmes problemes
Après qu'est que c'est que 20GB sur un 2TB big_smile mais quand même, par principe j'aimerais bien comprendre et trouver la solution

Merci de votre support

Hors ligne

#12 Le 10/01/2024, à 23:01

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Mais je boote toujours sur le prompt grub
et que dit-il?
La partie NVRAM.

Boot0004* lubuntu-hx90x HD(1,GPT,98f8328d-e70a-4600-9dd2-dd031a5910db,0x800,0x32000)/File(\EFI\LUBUNTU@HX90X\GRUBX64.EFI)

La partie EFI du grub

1d99ff510dac8535d215797ad5e69230   nvme0n1p1/lubuntu@hx90x/grubx64.efi

La liaison EFI-LEGACY

=============== nvme0n1p1/efi/lubuntu@hx90x/grub.cfg (filtered) ================
search.fs_uuid ed165756-eedf-483f-b596-8acc22da87e8 root 
set pre

La partition ubuntu.

─nvme0n1p5 ext4     ed165756-eedf-483f-b596-8acc22da87e8 303ba338-6686-5b4c-8ac9-44e189cf3678 lubuntu-hx90x root

et le contenu affichable.

================= nvme0n1p5/boot/grub/grub.cfg (filtered) ====================
Lubuntu@HX90x 23.10 GNU/Linux   ed165756-eedf-483f-b596-8acc22da87e8
Windows Boot Manager (on nvme0n1p1)   osprober-efi-0034-474

Et le fstab avec le fichier de boot.

======================== nvme0n1p5/etc/fstab (filtered) ========================
# <file system>                           <mount point>  <type>  <options>                     <dump>  <pass>
UUID=ed165756-eedf-483f-b596-8acc22da87e8 /              ext4    defaults,discard              0       1
UUID=0034-474E  /boot/efi       vfat    defaults      0       1

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


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

#13 Le 10/01/2024, à 23:16

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Pas très bavard
prompt grub
les images ont pas l'air de marcher
prompt grub

Dernière modification par barbudor (Le 10/01/2024, à 23:18)

Hors ligne

#14 Le 10/01/2024, à 23:27

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Je ne que te dire. Hormis que ce nom est assez étrange
lubuntu@hx90x


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

#15 Le 10/01/2024, à 23:31

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Je l'ai changé à un moment pour distinguer lubuntu du HDD USB et lubuntu du NVME
hx90x est le nom du pc

je crois que j'ai pas trop le choix que de réinstaller lubuntu en espérant que ca remette tout d'aplomb

merci pour tout

Hors ligne

#16 Le 10/01/2024, à 23:45

geole

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Avant de réinstaller le logiciel,  à moins que tu y tiennes, tu pourrais:
Soit lancer un coup de boot-repair pour reinstaller le grub car il est possible que le grub déconne.
Il faut cocher la case purge le grub avant de le réinstaller
Soit remplacer le grub par https://doc.ubuntu-fr.org/refind
Cela devrait être facile à installer.

sudo apt install refind

Soit demander au grub de purger les noyaux et de réinstaller le dernier noyau.

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


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

#17 Le 11/01/2024, à 22:25

barbudor

Re : [résolu] Réparer grub dual boot (ne boote plus que Windows)

Hello

J'ai le plaisir d'écrire ce message depuis mon Lubuntu booté normalement depuis le NVME sans artifice.

La solution finale de purger et réinstaller grub via boot-repair semble tout avoir remis en état.

Merci @geole pour m'avoir supporté ces 3 jours.

Difficile de comprendre pourquoi mon grub est passé dans cet état second.
Est-ce le do-release-upgrade sur le HDD USB qui a viré la conf grub du NVME ?
Est-ce qu'un simple apt full-upgrade mettant a jour le kernel produirait le même problème ?

La prochaine fois que je fais un upgrade de ce HDD USB, je le fait sur une machine sans grub (voir sans disque local) pour être sur de ne rien cassé.

Dernière modification par barbudor (Le 11/01/2024, à 22:27)

Hors ligne