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 05/12/2021, à 20:17

Stylou

Grub EFI retrouvé mais plus d'accès W10

Bonsoir compagnons du libre.


Je vous expose ma situation :


En temps normal je tourne sous Ubuntu 20.04, installé en mode EFI. Je suis en dual boot avec W10 installé par la suite.
J'ai donc plusieurs partitions boot, celui d' Ubuntu qui se lance en premier et celui de W10 qui se lance si je le choisis dans le menu de grub.

J'ai voulu hier recréer une petite partition afin de tester plus en profondeur un OS que j'avais trouvé séduisant en live usb, qui d'ailleurs m'a demandé de recréer une partition boot.

Jusqu'ici ça va encore. Le problème est que j'ai voulu encore plus lors d'un test de Ubuntu Jammy.

Je me suis aperçu que c'était un peu l'anarchie avec "toutes ces partitions de boot", 3 au total, la principal, celle de W10 et celle que le dernier OS m'a demandé de créer et qui était "devenu la référente".

Je suis donc passé par gparted pour supprimer la dernière crée puis en déplaçant ou plus précisément en redimensionnant la partition de grub EFI afin de combler l'espace vide avec la partition principale (de Focal).
En oubliant au passage que si je touchais à cette partition, je ne pourrai sans doute plus "rebooter normalement" (et ce malgré le message qu'a dû m'afficher gparted).

Bingo, au redémarrage je tombe sur le mode rescue de grub. Je cherche sur le forum et trouve des méthodes pour modifier et recharger grub mais sans succès.
Je tente d'installer boot-repair sur une clé usb via un autre pc qui lui est en mode Legacy (j'ai pas d'autre choix). Boot-repair ne parviens pas à réparer le boot.
Je finis par abandonné au milieu de la nuit.

Au réveil je tente un dernier recours, installer Ubuntu Jammy, comme je l'ai sous la main, et espérer qu'il va recréer convenablement Grub EFI, chose réaliser avec succès.
Je peux même via le menu grub lancer mon OS principal, Focal, par contre j'ai perdu le choix de lancer W10.
J'ai donc installé et lancé boot-repair sur Focal pour tenter de retrouver le choix de W10, le problème est que je me suis retrouvé au redémarrage dans la même situation qu'au départ en mode grub rescue.

J'ai lancé une nouvelle installation de Jammy pour revenir en configuration où je peux lancer normalement Ubuntu 20.04 Focal.
Pour l'instant ce n'est pas trop dérangeant même si il arrivera un moment je devrai accéder à W10.


Problème à résoudre :

_ Faire que Ubuntu 20.04 soit sélectionné par défaut au lancement de Grub
_ Retrouver le choix de pouvoir lancer W10 dans Grub

Je ne vous cache pas qu'avant de toucher à quoi que ce soit et devoir relancer une nouvelle installation, j'aimerais autant que possible être sûr de ce que je dois faire.

Je vous colle le rapport de Boot-Repair. Vous remerciant pour la lumière que vous pourrez m'apporter.


boot-repair-4ppa130                                              [20211205_1904]

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

 => No boot loader is installed in the MBR of /dev/nvme0n1.
 => No boot loader is installed in the MBR of /dev/sda.

nvme0n1p1: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg

nvme0n1p2: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  According to the info in the boot sector, sda1 has 
                       290816 sectors.. But according to the info from the 
                       partition table, it has 1028095 sectors.
    Operating System:  
    Boot files:        /efi/BOOT/bootx64.efi /efi/BOOT/fbx64.efi 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi 
                       /efi/debian/fbx64.efi /efi/debian/grubx64.efi 
                       /efi/debian/mmx64.efi /efi/debian/shimx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/debian/grub.cfg 
                       /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu Jammy Jellyfish (development branch)
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda4: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  -
    Boot sector info: 

sda8: __________________________________________________________________________

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


================================ 3 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sda2
OS#2:   Ubuntu Jammy Jellyfish (development branch) on sda3
OS#3:   Windows 8 or 10 on sda5

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.11.0-41-generic root=UUID=b40ac192-ea14-4688-950e-d3d2a12c0929 ro quiet splash


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

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot enabled.

efibootmgr -v
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0001,0005,0007,0000,2001,2002,2003
Boot0000* debian	HD(1,GPT,be3edbf1-c864-491a-a3b7-6d52a7396127,0x800,0xfb000)/File(\EFI\debian\shimx64.efi)
Boot0001* Linpus lite	HD(1,GPT,be3edbf1-c864-491a-a3b7-6d52a7396127,0x800,0x47000)/File(\EFI\Boot\grubx64.efi)RC
Boot0003* ubuntu	HD(1,GPT,be3edbf1-c864-491a-a3b7-6d52a7396127,0x800,0xfb000)/File(\EFI\ubuntu\shimx64.efi)
Boot0005* lin	PciRoot(0x0)/Pci(0x8,0x2)/Pci(0x0,0x0)/Sata(1,0,0)/HD(1,GPT,be3edbf1-c864-491a-a3b7-6d52a7396127,0x800,0xfb000)/File(\EFI\debian\shimx64.efi)A01 ..
Boot0007* UBUNTU	PciRoot(0x0)/Pci(0x8,0x2)/Pci(0x0,0x0)/Sata(1,0,0)/HD(1,GPT,be3edbf1-c864-491a-a3b7-6d52a7396127,0x800,0xfb000)/File(\EFI\ubuntu\shimx64.efi)A01 ).
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
8ed07d5ee4e5e1534bcf64037b7589ff   sda1/BOOT/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
1305dac4d07ae01b4b45438e18ff4c9b   sda1/debian/fbx64.efi
f6555c467b8f9b9fcc392e921273beaa   sda1/debian/grubx64.efi
6a71919b8c1f3a6d277fa10b875010dc   sda1/debian/mmx64.efi
8273287f52ffff4624121d2926ef9df4   sda1/debian/shimx64.efi
365d1134dcdc7ee828354ce76a0c5760   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi


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

Disks info: ____________________________________________________________________

sda	: is-GPT,	hasBIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes
nvme0n1	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
nvme0n1p1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	farbios
nvme0n1p2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda3	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
sda5	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda6	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda8	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda2	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda8	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda2	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
nvme0n1p1	: is-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	nvme0n1
nvme0n1p2	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	nvme0n1
sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda3	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda5	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda6	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda8	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 71C7E7DE-3FC9-4054-931A-553AB5B175A6
              Start       End   Sectors   Size Type
nvme0n1p1      2048 479635455 479633408 228.7G Linux filesystem
nvme0n1p2 479635456 500117877  20482422   9.8G Linux filesystem
Disk sda: 111.81 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: A8D11033-FE38-4F1B-856C-DCC2F7D7E052
          Start       End   Sectors  Size Type
sda1       2048   1030143   1028096  502M EFI System
sda2    1030144  47769599  46739456 22.3G Linux filesystem
sda3   47769600  72935423  25165824   12G Microsoft basic data
sda4   72935424  72968191     32768   16M Microsoft reserved
sda5   72968192 232146943 159178752 75.9G Microsoft basic data
sda6  233375744 234438655   1062912  519M Windows recovery environment
sda7  234438656 234440703      2048    1M BIOS boot
sda8  232146944 233375743   1228800  600M Microsoft basic data
Partition table entries are not in disk order.

parted -lm (filtered): _________________________________________________________

sda:120GB:scsi:512:512:gpt:ATA PNY CS900 120GB:;
1:1049kB:527MB:526MB:fat32:EFI System Partition:boot, legacy_boot, esp;
2:527MB:24.5GB:23.9GB:ext4:Lynx:;
3:24.5GB:37.3GB:12.9GB:ext4::msftdata;
4:37.3GB:37.4GB:16.8MB::Microsoft reserved partition:msftres;
5:37.4GB:119GB:81.5GB:ntfs:Basic data partition:msftdata;
8:119GB:119GB:629MB:fat32::msftdata;
6:119GB:120GB:544MB:ntfs::hidden, diag;
7:120GB:120GB:1049kB:::bios_grub;
nvme0n1:256GB:nvme:512:512:gpt:HFM256GDJTNG-8310A:;
1:1049kB:246GB:246GB:ext4:home:;
2:246GB:256GB:10.5GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                                  
├─sda1      vfat     6631-9510                            be3edbf1-c864-491a-a3b7-6d52a7396127       EFI System Partition
├─sda2      ext4     b40ac192-ea14-4688-950e-d3d2a12c0929 54218377-856a-48cb-92f7-8e09683df219       Lynx
├─sda3      ext4     2c07c9ce-17ea-481f-8ba7-659baec01704 953198a6-483a-48e1-8956-6b70a2c97861       
├─sda4                                                    6b64223e-f7ba-4492-8fe5-11329c515995       Microsoft reserved partition
├─sda5      ntfs     E4E42E31E42E0680                     40451aba-c22d-4a97-a5fe-d1ac5529d124       Basic data partition
├─sda6      ntfs     A6681ADF681AADD5                     0c9680da-8bb9-40c4-90c4-ce2170743944       
├─sda7                                                    4e278078-9402-4bab-b4f5-9abab282787f       
└─sda8      vfat     47E3-B8C8                            06061f20-199b-40de-b690-008ad7c3a119       
nvme0n1                                                                                              
├─nvme0n1p1 ext4     bb5403c7-1f8e-446d-9c06-c37ac04fd268 4e66c321-807e-4ba5-a9eb-39eef56dbc38       home
└─nvme0n1p2 ext4     722c3b57-daa9-4b0f-aebb-661753308648 8ada3d27-cf96-4380-81ea-d8bcaccf924b       

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
nvme0n1p1          79.4G  59% /home
nvme0n1p2           8.6G   4% /mnt/boot-sav/nvme0n1p2
sda1                128M   8% /mnt/boot-sav/sda1
sda2                8.9G  54% /
sda3                4.1G  60% /mnt/boot-sav/sda3
sda5               11.3G  85% /mnt/boot-sav/sda5
sda6               88.7M  83% /mnt/boot-sav/sda6
sda8              598.8M   0% /mnt/boot-sav/sda8

Mount options: __________________________________________________________________

nvme0n1p1         rw,relatime
nvme0n1p2         rw,relatime
sda1              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2              rw,relatime,errors=remount-ro
sda3              rw,relatime
sda5              ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda6              ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda8              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

====================== nvme0n1p1/grub/grub.cfg (filtered) ======================

Ubuntu 20.04.1 LTS GNU/Linux   1093a2d6-c851-4945-9200-6d3fad99919c
Ubuntu 20.04.1 LTS GNU/Linux, with Linux 5.4.0-58-generic   1093a2d6-c851-4945-9200-6d3fad99919c
Windows Boot Manager (on sda3)   osprober-efi-6E2B-BACD
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
 146,145507812 = 156,922544128  grub/grub.cfg                                  2
   0,175918579 = 0,188891136    vmlinuz                                        1
   0,175918579 = 0,188891136    vmlinuz-5.4.0-58-generic                       1
   0,175918579 = 0,188891136    vmlinuz.old                                    1
   2,100753784 = 2,255667200    initrd.img                                     7
   2,100753784 = 2,255667200    initrd.img-5.4.0-58-generic                    7
   2,100753784 = 2,255667200    initrd.img.old                                 7

===================== sda1/efi/debian/grub.cfg (filtered) ======================

search.fs_uuid c50e9e12-2bdb-44c9-94e0-259b8203a9ac root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

search.fs_uuid 2c07c9ce-17ea-481f-8ba7-659baec01704 root hd0,gpt3 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   b40ac192-ea14-4688-950e-d3d2a12c0929
Ubuntu, avec Linux 5.11.0-41-generic   b40ac192-ea14-4688-950e-d3d2a12c0929
Ubuntu, avec Linux 5.11.0-40-generic   b40ac192-ea14-4688-950e-d3d2a12c0929
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=b40ac192-ea14-4688-950e-d3d2a12c0929 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda3 during installation
# /home was on /dev/nvme0n1p1 during installation
UUID=bb5403c7-1f8e-446d-9c06-c37ac04fd268 /home           ext4    defaults        0       2
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
   6,038467407 = 6,483755008    boot/grub/grub.cfg                             2
  14,299022675 = 15,353458688   boot/vmlinuz                                   1
   7,916206360 = 8,499961856    boot/vmlinuz-5.11.0-40-generic                 1
  14,299022675 = 15,353458688   boot/vmlinuz-5.11.0-41-generic                 1
   7,916206360 = 8,499961856    boot/vmlinuz.old                               1
  11,202144623 = 12,028211200   boot/initrd.img                                7
  10,381832123 = 11,147407360   boot/initrd.img-5.11.0-40-generic              9
  11,202144623 = 12,028211200   boot/initrd.img-5.11.0-41-generic              7
  10,381832123 = 11,147407360   boot/initrd.img.old                            9

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

-rwxr-xr-x 1 root root 18151 août  12 11:18 10_linux
-rwxr-xr-x 1 root root 42359 nov.  13  2020 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31  2020 30_os-prober
-rwxr-xr-x 1 root root  1424 juil. 31  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juil. 31  2020 40_custom
-rwxr-xr-x 1 root root   216 juil. 31  2020 41_custom

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

Ubuntu   2c07c9ce-17ea-481f-8ba7-659baec01704
Ubuntu, avec Linux 5.13.0-19-generic   2c07c9ce-17ea-481f-8ba7-659baec01704
Ubuntu 20.04.3 LTS (20.04) (sur sda2)   b40ac192-ea14-4688-950e-d3d2a12c0929
Ubuntu (sur sda2)   b40ac192-ea14-4688-950e-d3d2a12c0929
Ubuntu, avec Linux 5.11.0-41-generic (sur sda2)   b40ac192-ea14-4688-950e-d3d2a12c0929
Ubuntu, avec Linux 5.11.0-40-generic (sur sda2)   b40ac192-ea14-4688-950e-d3d2a12c0929
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=2c07c9ce-17ea-481f-8ba7-659baec01704 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=6631-9510  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/nvme0n1p2 during installation
UUID=722c3b57-daa9-4b0f-aebb-661753308648 /home           ext4    defaults        0       2
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
  29,776481628 = 31,972253696   boot/grub/grub.cfg                             2
  28,576900482 = 30,684213248   boot/vmlinuz                                   1
  28,576900482 = 30,684213248   boot/vmlinuz-5.13.0-19-generic                 1
  32,201141357 = 34,575712256   boot/initrd.img                                1
  32,201141357 = 34,575712256   boot/initrd.img-5.13.0-19-generic              1
  32,201141357 = 34,575712256   boot/initrd.img.old                            1

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

-rwxr-xr-x 1 root root 18224 nov.   4 14:48 10_linux
-rwxr-xr-x 1 root root 43031 nov.   4 14:48 10_linux_zfs
-rwxr-xr-x 1 root root 12894 nov.   4 14:48 20_linux_xen
-rwxr-xr-x 1 root root 12059 nov.   4 14:48 30_os-prober
-rwxr-xr-x 1 root root  1424 nov.   4 14:48 30_uefi-firmware
-rwxr-xr-x 1 root root   214 nov.   4 14:48 40_custom
-rwxr-xr-x 1 root root   216 nov.   4 14:48 41_custom


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
sda2 into the MBRs of all disks (except live-disks and removable disks without OS).
Grub-efi would not be selected by default because: legacy-win no-win-efi 
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix     

Blockers in case of suggested repair: __________________________________________

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

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your BIOS boot on sda (ATA PNY CS900 120GB) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

Hors ligne

#2 Le 05/12/2021, à 20:49

geole

Re : Grub EFI retrouvé mais plus d'accès W10

Bonjour
Extraits du boot-info

Disk sda: 111.81 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: A8D11033-FE38-4F1B-856C-DCC2F7D7E052
          Start       End   Sectors  Size Type
sda1       2048   1030143   1028096  502M EFI System
sda2    1030144  47769599  46739456 22.3G Linux filesystem
sda3   47769600  72935423  25165824   12G Microsoft basic data
sda4   72935424  72968191     32768   16M Microsoft reserved
sda5   72968192 232146943 159178752 75.9G Microsoft basic data
sda6  233375744 234438655   1062912  519M Windows recovery environment
sda7  234438656 234440703      2048    1M BIOS boot
sda8  232146944 233375743   1228800  600M Microsoft basic data

On voit que windows est installé dans SDA.... donc le logiciel de boot-EFI de windows doit être dans SDA1. Mias on n'en voit pas trace

sda1: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  According to the info in the boot sector, sda1 has 
                       290816 sectors.. But according to the info from the 
                       partition table, it has 1028095 sectors.
    Operating System:  
    Boot files:        /efi/BOOT/bootx64.efi /efi/BOOT/fbx64.efi 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi 
                       /efi/debian/fbx64.efi /efi/debian/grubx64.efi 
                       /efi/debian/mmx64.efi /efi/debian/shimx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/debian/grub.cfg 
                       /efi/ubuntu/grub.cfg

Il ne te reste plus qu'à lancer le support d'installation de windows et réinstaller sa structure de boot EFI
Voir cette discussion     https://forum.ubuntu-fr.org/viewtopic.p … #p22406363
==> Tu éviteras ces trois commandes

del part override
create part efi
format fs=fat32 quick

sous peine  de devoir de nouveau réparer ubuntu
Lorsque tu auras vérifié que windows mets bien  en route, tu pourras remettre ubuntu prioritaire avec le support d'installation en frappant cette commande

sudo efibootmgr -o 3

Lorsque tu seras de nouveau dans ubuntu, tu intégreras windows dans la structure de boot

sudo update-grub

Dernière modification par geole (Le 05/12/2021, à 20:56)


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 05/12/2021, à 21:13

Stylou

Re : Grub EFI retrouvé mais plus d'accès W10

Un grand merci Geole pour ta lumière.

Il va falloir que je refasse une usb pour W10. Je ne retrouve pas celle qui m'avais permis de faire le dual boot avec l'OS d'origine.
Aussitôt après mon achat, j'avais fait une sauvegarde du système et noter la clé de W10 pour installer Ubuntu (on parle souvent que ceux venant de windows doivent changer leurs habitudes en arrivant sous Linux, l'inverse est aussi vrai pour ma part).

Je reviens vers vous dès que j'ai pu recréer une usb de W10 ou retrouver ma clé de sauvegarde.

Hors ligne

#4 Le 11/12/2021, à 23:00

Stylou

Re : Grub EFI retrouvé mais plus d'accès W10

Je remercie geole mais j'ai abandonne l'idée de retrouver le boot Windows.
Je suis sur un Acer Swift et c'est une corvée avec le BIOS modifié par le constructeur. J'ai essayé toutes les façons de créer une USB de w10 y compris le soft fourni sur le site de Microsoft et rien y fait, impossible de booter sur la clé.
J'ai fini par supprimer cette partition et j'ai installer un Windows sous virtual box sur mon OS principal.

Hors ligne