Réinstallation le 2-10-24 Perte de Grub et de mon dualboot :(

Postez ici toutes vos demandes d’assistance générale concernant le fonctionnement de Linux Mint, qui n'entrent pas dans les autres rubriques.
Répondre
Avatar du membre
jclaudej
Messages : 248
Enregistré le : ven. 26 août 2016 11:44
Localisation : Charente Maritime

Perte de Grub et de mon dualboot :(

Message par jclaudej »

Bonjour,

Suite à un démarrage d'une session W11 que je n'avais pas utilisé depuis 50 jours j'ai perdu Grub et surtout l'accessibilité à Mint.
Au départ c'était pour aider en ligne un amis qui avait un problème avec Windows et maintenant c'est moi qui est dans la mouise.

Avant de créer ce post j'ai :
Mis à jour W11
Vérifier que secure boot était bien désactivé.
Lancer Mint via un live Cd et exécuté Boot-Repair

Résultat :

Code : Tout sélectionner

[exp]boot-repair-4ppa200                                              [20241002_2005]

============================= Boot Repair Summary ==============================




Default settings: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
sda6,
using the following options:  sda2/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 Linux Mint 21.3 Virginia (21.3) entry (sda2/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)

User settings: _________________________________________________________________

Veuillez sauvegarder vos données avant cette opération.
The settings chosen by the user will reinstall the grub-efi of
sda6,
using the following options:  sda2/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups


rm /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda2/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
rm /mnt/boot-sav/sdc2/efi/Boot/bootx64.efi /mnt/boot-sav/sdc2/efi/Boot/bootx64.efi.grb
Mount sda2 on /mnt/boot-sav/sda6/boot/efi

======================== Reinstall the grub-efi of sda6 ========================

chroot /mnt/boot-sav/sda6 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
chroot /mnt/boot-sav/sda6 modprobe efivars

chroot /mnt/boot-sav/sda6 efibootmgr -v before grub install
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0000,0002,0006,0005
Boot0000* Windows Boot Manager	HD(2,GPT,e962b505-79d2-4b2f-9e8a-677fb63924fa,0xfa000,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.}...M................
Boot0002* ubuntu	HD(2,GPT,e962b505-79d2-4b2f-9e8a-677fb63924fa,0xfa000,0x32000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0005  debian	HD(2,MBR,0xc4e61,0xfa96000,0xd72f800)/File(EFIDEBIANGRUBX64.EFI)..BO
Boot0006* ubuntu	HD(2,MBR,0xc4e61,0xfa96000,0xd72f800)/File(EFIUBUNTUGRUBX64.EFI)..BO
Boot0007* UEFI: Philips USB Flash Drive PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0x20ac,0x9e00)..BO

chroot /mnt/boot-sav/sda6 uname -r
5.15.0-91-generic

chroot /mnt/boot-sav/sda6 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/sda2
mv /mnt/boot-sav/sda6/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda6/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda6/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda6/boot/efi/EFI/Boot/bootx64.efi
df /dev/sdc2
touch /mnt/boot-sav/sdc2/EFI/Boot/bootx64.efi.grb
cp /mnt/boot-sav/sda6/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sdc2/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/sda6 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/sda6 efibootmgr -v after grub install
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0000,0002,0006,0005
Boot0000* Windows Boot Manager	HD(2,GPT,e962b505-79d2-4b2f-9e8a-677fb63924fa,0xfa000,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.}...M................
Boot0002* ubuntu	HD(2,GPT,e962b505-79d2-4b2f-9e8a-677fb63924fa,0xfa000,0x32000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0005  debian	HD(2,MBR,0xc4e61,0xfa96000,0xd72f800)/File(EFIDEBIANGRUBX64.EFI)..BO
Boot0006* ubuntu	HD(2,MBR,0xc4e61,0xfa96000,0xd72f800)/File(EFIUBUNTUGRUBX64.EFI)..BO
Boot0007* UEFI: Philips USB Flash Drive PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0x20ac,0x9e00)..BO
Warning: NVram was not modified.

chroot /mnt/boot-sav/sda6 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-122-generic
Found initrd image: /boot/initrd.img-5.15.0-122-generic
Found linux image: /boot/vmlinuz-5.15.0-121-generic
Found initrd image: /boot/initrd.img-5.15.0-121-generic
Found linux image: /boot/vmlinuz-5.15.0-119-generic
Found initrd image: /boot/initrd.img-5.15.0-119-generic
Found linux image: /boot/vmlinuz-5.15.0-118-generic
Found initrd image: /boot/initrd.img-5.15.0-118-generic
Found linux image: /boot/vmlinuz-5.15.0-117-generic
Found initrd image: /boot/initrd.img-5.15.0-117-generic
Found linux image: /boot/vmlinuz-5.15.0-116-generic
Found initrd image: /boot/initrd.img-5.15.0-116-generic
Found linux image: /boot/vmlinuz-5.15.0-113-generic
Found initrd image: /boot/initrd.img-5.15.0-113-generic
Found linux image: /boot/vmlinuz-5.15.0-112-generic
Found initrd image: /boot/initrd.img-5.15.0-112-generic
Found linux image: /boot/vmlinuz-5.15.0-107-generic
Found initrd image: /boot/initrd.img-5.15.0-107-generic
Found linux image: /boot/vmlinuz-5.15.0-105-generic
Found initrd image: /boot/initrd.img-5.15.0-105-generic
Found linux image: /boot/vmlinuz-5.15.0-102-generic
Found initrd image: /boot/initrd.img-5.15.0-102-generic
Found linux image: /boot/vmlinuz-5.15.0-101-generic
Found initrd image: /boot/initrd.img-5.15.0-101-generic
Found linux image: /boot/vmlinuz-5.15.0-100-generic
Found initrd image: /boot/initrd.img-5.15.0-100-generic
Found linux image: /boot/vmlinuz-5.15.0-97-generic
Found initrd image: /boot/initrd.img-5.15.0-97-generic
Found linux image: /boot/vmlinuz-5.15.0-94-generic
Found initrd image: /boot/initrd.img-5.15.0-94-generic
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-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.
grub-probe: error: cannot find a GRUB drive for /dev/sdd1.  Check your device.map.
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi

Unhide GRUB boot menu in sda6/boot/grub/grub.cfg

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée Linux Mint 21.3 Virginia (21.3) (fichier sda2/efi/ubuntu/grubx64.efi) !
Si votre ordinateur redémarre directement dans Windows, essayez de changer l'ordre de démarrage dans votre firmware UEFI.
Si votre firmware UEFI ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut de l'amorceur Windows.
Par exemple, vous pouvez démarrer Windows, puis saisir la commande suivante dans une invite de commande en mode administrateur :
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi


============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 89aef305-ea10-45e7-9a72-5b8945ed5f31 root hd1,msdos1 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 89aef305-ea10-45e7-9a72-5b8945ed5f31 root hd1,msdos1 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi 
                       /efi/Boot/fbx64.efi /efi/Boot/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi 
                       /efi/Microsoft/Boot/cbmr_driver.efi 
                       /efi/Microsoft/Boot/SecureBootRecovery.efi

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 21.3
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda7: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

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

sdc1: __________________________________________________________________________

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

sdc2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bootx64.efi /efi/debian/fbx64.efi 
                       /efi/debian/grubx64.efi /efi/debian/mmx64.efi 
                       /efi/debian/shimx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/debian/grub.cfg

sdd: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/FD/sdd: /dev/sdd déjà monté ou point de montage actif.


================================ 2 OS detected =================================

OS#1:   Linux Mint 21.3 Virginia (21.3) on sda6
OS#2:   Windows 8 or 10 on sda4

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

CPU architecture: 64-bit
Video: CometLake-S GT2 [UHD Graphics 630] from Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21.3, virginia, x86_64)

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

BIOS/UEFI firmware: 1.70(5.17) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled
Platform is in Setup Mode - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0000,0002,0006,0005
Boot0000* Windows Boot Manager	HD(2,GPT,e962b505-79d2-4b2f-9e8a-677fb63924fa,0xfa000,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.}...M................
Boot0002* ubuntu	HD(2,GPT,e962b505-79d2-4b2f-9e8a-677fb63924fa,0xfa000,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0005  debian	HD(2,MBR,0xc4e61,0xfa96000,0xd72f800)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
Boot0006* ubuntu	HD(2,MBR,0xc4e61,0xfa96000,0xd72f800)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot0007* UEFI: Philips USB Flash Drive PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/CDROM(1,0x20ac,0x9e00)..BO

a1da253696a304dce6b4668b70151c0e   sda2/Boot/bkpbootx64.efi
a1da253696a304dce6b4668b70151c0e   sda2/Boot/bootx64.efi
1d43d986c265d8c455d020e4a1f28c52   sda2/Boot/fbx64.efi
1d260ff1255f189ab621209796ee2fed   sda2/Boot/mmx64.efi
a1da253696a304dce6b4668b70151c0e   sda2/ubuntu/grubx64.efi
1d260ff1255f189ab621209796ee2fed   sda2/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e   sda2/ubuntu/shimx64.efi
2fc8a50a26d396e4b817f658cc9b1f26   sda2/Microsoft/Boot/bootmgfw.efi
5e943a16a4105e7c2b22f3113d329ef9   sda2/Microsoft/Boot/bootmgr.efi
b8796e68099026aabcebb8fcf75b21f6   sda2/Microsoft/Boot/cbmr_driver.efi
0dddc55d593fc13c3ab3cb750e1a188a   sda2/Microsoft/Boot/SecureBootRecovery.efi
a1da253696a304dce6b4668b70151c0e   sdc2/Boot/bootx64.efi
ca0aa9ad51118a4a0b9026db28271163   sdc2/debian/fbx64.efi
288bb58473caacfb99af790ae90f11f3   sdc2/debian/grubx64.efi
1efa63a183a729b309c16267cbba5b67   sdc2/debian/mmx64.efi
fe2090106517ccf680e12e538b4274db   sdc2/debian/shimx64.efi
a1da253696a304dce6b4668b70151c0e   sdc2/ubuntu/grubx64.efi

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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes
sdb	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sdc	: notGPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda4	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda5	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda6	: is-os,	64, apt-get,	signed grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda7	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda6	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda7	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda6	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda7	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdc2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc

fdisk -l (filtered): ___________________________________________________________

Disk sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: FF37AF17-FCFE-4C0E-A9C3-61D0BDCD4DA3
          Start       End   Sectors   Size Type
sda1       2048   1023999   1021952   499M Windows recovery environment
sda2    1024000   1228799    204800   100M EFI System
sda3    1228800   1261567     32768    16M Microsoft reserved
sda4    1261568 262653951 261392384 124.6G Microsoft basic data
sda5  262653952 264058879   1404928   686M Windows recovery environment
sda6  264060928 336560127  72499200  34.6G Linux filesystem
sda7  336560128 468860927 132300800  63.1G Linux filesystem
Disk sdb: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: 0xa07e05f4
      Boot Start       End   Sectors   Size Id Type
sdb1        2048 234440703 234438656 111.8G  b W95 FAT32
Disk sdc: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 0x000c4e61
      Boot     Start       End   Sectors   Size Id Type
sdc1            2048 262758399 262756352 125.3G 83 Linux
sdc2  *    262758400 488396799 225638400 107.6G  7 HPFS/NTFS/exFAT
Disk sdd: 7.22 GiB, 7748222976 bytes, 15133248 sectors
Disk identifier: 0x53315b68
      Boot   Start      End Sectors  Size Id Type
sdd1  *         64  6088895 6088832  2.9G  0 Empty
sdd2          8364    18475   10112  4.9M ef EFI (FAT-12/16/32)
sdd3       6090752 15133247 9042496  4.3G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:512:gpt:ATA CT240BX500SSD1:;
1:1049kB:524MB:523MB:ntfs:Basic data partition:hidden, diag;
2:524MB:629MB:105MB:fat32:EFI system partition:boot, esp;
3:629MB:646MB:16.8MB::Microsoft reserved partition:msftres;
4:646MB:134GB:134GB:ntfs:Basic data partition:msftdata;
5:134GB:135GB:719MB:ntfs::hidden, diag;
6:135GB:172GB:37.1GB:ext4::;
7:172GB:240GB:67.7GB:ext4::;
sdb:120GB:scsi:512:512:msdos:ATA KINGSTON SV300S3:;
1:1049kB:120GB:120GB:fat32::;
sdc:250GB:scsi:512:512:msdos:ATA SAMSUNG HD252HJ:;
1:1049kB:135GB:135GB:ext4::;
2:135GB:250GB:116GB:fat32::boot;
sdd:7748MB:scsi:512:512:unknown:Philips USB Flash Drive:;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                       PARTLABEL
sda                                                                                                                   
├─sda1 ntfs     12B2AAC6B2AAADA3                     f5b604e4-1230-41d0-8a57-03fcd6c735e6                             Basic data partition
├─sda2 vfat     56FF-72B4                            e962b505-79d2-4b2f-9e8a-677fb63924fa                             EFI system partition
├─sda3                                               887f6c49-ee0e-41bf-b519-72197de54e93                             Microsoft reserved partition
├─sda4 ntfs     DA100B0F100AF1F5                     805016d6-f681-480b-a899-055a3312ab2b                             Basic data partition
├─sda5 ntfs     FAECC6F8ECC6ADE7                     f2ffd284-846d-4a69-bd0a-c7130f1d70fa                             
├─sda6 ext4     acc30011-4695-43ea-a774-f9d32a0543c5 f1384ce5-ff88-4db9-9c1d-c0a1166b2514                             
└─sda7 ext4     9a0d2205-d929-48ff-a886-d1e0c35e9435 4295d2c3-a98b-42ec-b5ed-fcfcf0bd091d                             
sdb                                                                                                                   
└─sdb1 vfat     AF34-DA82                            a07e05f4-01                          PARTAGE                     
sdc                                                                                                                   
├─sdc1 ext4     5254d8c8-45f5-4392-835c-b188837279c4 000c4e61-01                          Old1                        
└─sdc2 vfat     DAA8-86BA                            000c4e61-02                                                      
sdd    iso9660  2024-01-09-13-11-55-00                                                    Linux Mint 21.3 MATE 64-bit 
├─sdd1 iso9660  2024-01-09-13-11-55-00               53315b68-01                          Linux Mint 21.3 MATE 64-bit 
├─sdd2 vfat     659D-461B                            53315b68-02                                                      
└─sdd3 ext4     783c11e7-ba19-49c1-8207-b49dd9b1815d 53315b68-03                          writable                    

Mount points (filtered): _______________________________________________________

                                                             Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2024-10-02.0/log]   3.9G   0% /var/log
/dev/sda1                                                     489M   2% /mnt/boot-sav/sda1
/dev/sda2                                                    56.9M  41% /mnt/boot-sav/sda2
/dev/sda4                                                    64.1G  49% /mnt/boot-sav/sda4
/dev/sda5                                                   119.4M  83% /mnt/boot-sav/sda5
/dev/sda6                                                     2.7G  87% /mnt/boot-sav/sda6
/dev/sda7                                                    18.8G  64% /mnt/boot-sav/sda7
/dev/sdb1                                                      86G  23% /mnt/boot-sav/sdb1
/dev/sdc1                                                    60.5G  46% /mnt/boot-sav/sdc1
/dev/sdc2                                                   107.6G   0% /mnt/boot-sav/sdc2
/dev/sdd1                                                        0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/disk/by-label/writable[/install-logs-2024-10-02.0/log] ext4            rw,relatime
/dev/sda1                                                   fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda2                                                   vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda4                                                   fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda5                                                   fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sda6                                                   ext4            rw,relatime
/dev/sda7                                                   ext4            rw,relatime
/dev/sdb1                                                   vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdc1                                                   ext4            rw,relatime,stripe=32744
/dev/sdc2                                                   vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdd1                                                   iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

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

search.fs_uuid acc30011-4695-43ea-a774-f9d32a0543c5 root hd0,gpt6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-122-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-121-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-119-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-118-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-117-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-116-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-113-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-112-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-107-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-105-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-102-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-101-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-100-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-97-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-94-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Ubuntu, with Linux 5.15.0-91-generic   acc30011-4695-43ea-a774-f9d32a0543c5
Windows Boot Manager (on sda2)   osprober-efi-56FF-72B4
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda6/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=acc30011-4695-43ea-a774-f9d32a0543c5 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=56FF-72B4  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda7 during installation
UUID=9a0d2205-d929-48ff-a886-d1e0c35e9435 /home           ext4    defaults        0       2
/swapfile                                 none            swap    sw              0       0

======================= sda6/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

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

           GiB - GB             File                                 Fragment(s)
 142.899139404 = 153.436782592  boot/grub/grub.cfg                             1
 158.495269775 = 170.183000064  boot/vmlinuz                                   1
 156.924896240 = 168.496824320  boot/vmlinuz-5.15.0-100-generic                2
 134.393646240 = 144.304078848  boot/vmlinuz-5.15.0-101-generic                1
 141.718746185 = 152.169345024  boot/vmlinuz-5.15.0-102-generic                2
 145.034305573 = 155.729399808  boot/vmlinuz-5.15.0-105-generic                2
 133.401508331 = 143.238778880  boot/vmlinuz-5.15.0-107-generic                2
 137.073379517 = 147.181420544  boot/vmlinuz-5.15.0-112-generic                1
 144.940567017 = 155.628748800  boot/vmlinuz-5.15.0-113-generic                1
 151.682762146 = 162.868125696  boot/vmlinuz-5.15.0-116-generic                1
 157.284328461 = 168.882761728  boot/vmlinuz-5.15.0-117-generic                2
 152.835933685 = 164.106334208  boot/vmlinuz-5.15.0-118-generic                2
 153.534336090 = 164.856238080  boot/vmlinuz-5.15.0-119-generic                2
 151.534332275 = 162.708750336  boot/vmlinuz-5.15.0-121-generic                2
 158.495269775 = 170.183000064  boot/vmlinuz-5.15.0-122-generic                1
 142.874996185 = 153.410859008  boot/vmlinuz-5.15.0-91-generic                 2
 134.471759796 = 144.387952640  boot/vmlinuz-5.15.0-94-generic                 2
 147.034259796 = 157.876834304  boot/vmlinuz-5.15.0-97-generic                 1
 151.534332275 = 162.708750336  boot/vmlinuz.old                               2
 158.039058685 = 169.693147136  boot/initrd.img                               111
 151.039058685 = 162.176954368  boot/initrd.img-5.15.0-100-generic             4
 157.159088135 = 168.748285952  boot/initrd.img-5.15.0-101-generic             2
 157.789058685 = 169.424711680  boot/initrd.img-5.15.0-102-generic             5
 129.401363373 = 138.943655936  boot/initrd.img-5.15.0-105-generic             4
 148.909202576 = 159.890038784  boot/initrd.img-5.15.0-107-generic             3
 159.648433685 = 171.421200384  boot/initrd.img-5.15.0-112-generic             7
 159.664058685 = 171.437977600  boot/initrd.img-5.15.0-113-generic             4
 130.278316498 = 139.885277184  boot/initrd.img-5.15.0-116-generic             7
 131.288448334 = 140.969897984  boot/initrd.img-5.15.0-117-generic            188
 159.958194733 = 171.753803776  boot/initrd.img-5.15.0-118-generic            152
 160.101772308 = 171.907969024  boot/initrd.img-5.15.0-119-generic            120
 153.730579376 = 165.066952704  boot/initrd.img-5.15.0-121-generic            285
 158.039058685 = 169.693147136  boot/initrd.img-5.15.0-122-generic            111
 149.284076691 = 160.292556800  boot/initrd.img-5.15.0-91-generic              3
 149.377872467 = 160.393269248  boot/initrd.img-5.15.0-94-generic              2
 149.659118652 = 160.695255040  boot/initrd.img-5.15.0-97-generic              3
 153.730579376 = 165.066952704  boot/initrd.img.old                           285

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

-rwxr-xr-x 1 root root 18683 déc.  18  2022 10_linux
-rwxr-xr-x 1 root root 43031 déc.  18  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 déc.  18  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 déc.  18  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 déc.  18  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   214 déc.  18  2022 40_custom
-rwxr-xr-x 1 root root   215 déc.  18  2022 41_custom

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

search.fs_uuid 9520848b-4ab2-40ac-ad17-4ab93defec23 root hd0,gpt6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
sprunge.us ko ()[/exp]
Mais, invariablement, mon PC démarre sous W11 et pas de menu
Modifié en dernier par jclaudej le mer. 2 oct. 2024 23:11, modifié 2 fois.
Pas besoin de changer de machine à chaque évolution de l'OS, pas de Virus, de la gratuité, et un monde ou l'union fait la force et ou la convivialité n'est pas un vain mot.
Linux est aujourd'hui accessible à tous ;)
OS : Linux Mint 22.2 Cinnamon Kernel: 6.14.0-35-generic
Carte mère => MSI B460M PRO / Processeur => Intel Core i3-10100 / RAM => Corsair Vengeance 16 Go DDR4 2666 MHz CL16 / DD : SSD 250 Go
Avatar du membre
Armaggion
Messages : 685
Enregistré le : jeu. 22 août 2024 16:48

Re: Perte de Grub et de mon dualboot :(

Message par Armaggion »

Pour le coup, possible qu'on ne serve pas à grand chose car on dirait que tout est déjà expliqué ;)
Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée Linux Mint 21.3 Virginia (21.3) (fichier sda2/efi/ubuntu/grubx64.efi) !
Si votre ordinateur redémarre directement dans Windows, essayez de changer l'ordre de démarrage dans votre firmware UEFI.
Si votre firmware UEFI ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut de l'amorceur Windows.
Par exemple, vous pouvez démarrer Windows, puis saisir la commande suivante dans une invite de commande en mode administrateur :
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
PC : Desktop | Linux Mint 22.1 Xia | Cinnamon 6.4.8 | 6.8.0-63-generic | Intel Core i5-13400F | 32GB | NVIDIA AD106 [GeForce RTX 4060 Ti] / 575.64.03
Avatar du membre
jclaudej
Messages : 248
Enregistré le : ven. 26 août 2016 11:44
Localisation : Charente Maritime

Re: Perte de Grub et de mon dualboot :(

Message par jclaudej »

Bonsoir et merci pour votre aide,

Je viens de réinstaller Mint sur son ancienne partition avec mon Home que j'ai conservé sur une autre partition.
Lors de l'installation j'ai bien vu que Grub s'installait et prenait en considération Windows et Mint.
Suite à cela j'ai redémarrer mon PC et malheureusement pour moi j'atterri directement sur W11 sans menu Grub ???

Retour commande bcdedit :

Code : Tout sélectionner

PS C:\Users\jclau> bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efibcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
bcdedit.exe : Le paramètre command a déjà été spécifié.
Au caractère Ligne:1 : 1
+ bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efibcdedit /set {boot ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument : (:) [], ParameterBindingException
    + FullyQualifiedErrorId : ParameterSpecifiedAlready
Ensuite je suis retourné dans le Bios et j'ai changé l'ordre de démarrage avec priiorité à Mint et enfin cela refonctionne.
J'espère que les prochaine mise à jour W11 seront plus cool.
Modifié en dernier par alain le jeu. 3 oct. 2024 00:41, modifié 1 fois.
Raison : mise en place des balises code
Pas besoin de changer de machine à chaque évolution de l'OS, pas de Virus, de la gratuité, et un monde ou l'union fait la force et ou la convivialité n'est pas un vain mot.
Linux est aujourd'hui accessible à tous ;)
OS : Linux Mint 22.2 Cinnamon Kernel: 6.14.0-35-generic
Carte mère => MSI B460M PRO / Processeur => Intel Core i3-10100 / RAM => Corsair Vengeance 16 Go DDR4 2666 MHz CL16 / DD : SSD 250 Go
Avatar du membre
Armaggion
Messages : 685
Enregistré le : jeu. 22 août 2024 16:48

Re: Perte de Grub et de mon dualboot :(

Message par Armaggion »

Microsoft n'est pas réputé cool avec son système d'exploitation, avec une furieuse tendance à se croire tout seul. Donc le plus souvent ça fonctionne bien, et parfois moins bien.

Content en tous cas que la situation soit corrigée :)
PC : Desktop | Linux Mint 22.1 Xia | Cinnamon 6.4.8 | 6.8.0-63-generic | Intel Core i5-13400F | 32GB | NVIDIA AD106 [GeForce RTX 4060 Ti] / 575.64.03
Répondre