Grub boot-repair problème

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
Plumeau123
Messages : 5
Enregistré le : sam. 3 janv. 2026 19:25

Grub boot-repair problème

Message par Plumeau123 »

Bonjour,
J'ai utilisé boot-repair et maintenant je ne suis plus capable de booter mon Linux Mint. Je suis un peu perdu. Linux est installé sur un ssd et j'ai une parition bios_grub GPT et tout ça a été configurer initialiement dans l'installateur de Mint et fonctionnait bien. Bootrepair à brisé mon grub.
Quelqu'un à une idée pour booter à nouveau mon Linux?
Voici les infos de bootrepair:

https://paste.ubuntu.com/p/G49Z3342f3/

Merci beaucoup!
Patrick
PC Dell | Intel© Core™ i5 CPU | GeForce GTX 1050 Ti | dualBoot: Linux Mint 22.2 Cinnamon / Windows 10
Avatar du membre
arghlub
Administrateur du site
Messages : 11560
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Grub boot-repair problème

Message par arghlub »

Salut;
on va essayer de résoudre ton souci :l
Ne poste pas tes retours de commande sur des «paste...»
perso j'arrive pas à le lire (je ne vais m'enregistrer chez eux juste pour lire ton log). .... mais evoie direct ton log ici entre lignes «code».
...
peut-être à plus ;)
Tour1 (custom) CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : LMint 22.3 | Debian 12 | MX Linux | XFCE
Tour2 (custom) CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 22.1 | MX Linux | XFCE
Portable2 MacBook Air A1466 | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MX Linux XFCE
─────( pour une informatique libre ! )─────
Plumeau123
Messages : 5
Enregistré le : sam. 3 janv. 2026 19:25

Re: Grub boot-repair problème

Message par Plumeau123 »

Voici les informations demandées:

Code : Tout sélectionner

boot-repair-4ppa2081                                              [20260103_1822]

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






Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub2 of
sdf2 into the MBR of sdf.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s



Unhide GRUB boot menu in sdf2/etc/default/grub

======================= Reinstall the grub2 of /dev/sdf2 =======================

chroot /mnt/boot-sav/sdf2 grub-install --version
grub-install (GRUB) 2.12-1ubuntu7.3

==> Reinstall the GRUB of /dev/sdf2 into the MBR of /dev/sdf

chroot /mnt/boot-sav/sdf2 grub-install /dev/sdf
Installing for i386-pc platform.
Installation finished. No error reported.

chroot /mnt/boot-sav/sdf2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Found linux image: /boot/vmlinuz-6.14.0-37-generic
Found initrd image: /boot/initrd.img-6.14.0-37-generic
Found linux image: /boot/vmlinuz-6.14.0-29-generic
Found initrd image: /boot/initrd.img-6.14.0-29-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdg1.  Check your device.map.
Found Windows 10 on /dev/sdh1
Adding boot menu entry for UEFI Firmware Settings ...

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

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sdf (Samsung PSSD T7 Shield) disk!

The boot files of [sdf2 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda 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 3b76cd5b-6f71-4c22-8ef1-782747f7d833 root hd5,msdos2 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdf and looks at sector 
    65535 of the same hard drive for core.img. core.img is at this location 
    and looks for (,gpt2)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_gpt biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdh 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_gpt biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid b0add70e-79a1-4319-8fcc-82076ad4a496 root hd5,gpt2 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdf1: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sdf2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 22.2
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdf3: __________________________________________________________________________

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

sdh1: __________________________________________________________________________

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

sdh2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sdh5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  According to the info in the boot sector, sdh5 starts 
                       at sector 63.
    Operating System:  
    Boot files:        

sdh6: __________________________________________________________________________

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

sdg: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/FD/sdg: /dev/sdg already mounted or mount point busy.
       dmesg(1) may have more information after failed mount system call.


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

OS#1 (linux):   Linux Mint 22.2 Zara (22.2) on sdf2
OS#2 (windows):   Windows 10 on sdh1

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

CPU architecture: 64-bit
Video: GP107 [GeForce GTX 1050 Ti] from NVIDIA Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 22.2, zara, x86_64)

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

BIOS/UEFI firmware: A07(8.15) from Dell Inc.
This live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



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

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sdf	: is-GPT,	hasBIOSboot,	has-noESP, 	usb-disk,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sdh	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdf2	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdf3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdh5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sdh1	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

Partitions info (2/3): _________________________________________________________

sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ntfs
sdf2	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ext4
sdf3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ntfs
sdh5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ntfs
sdh1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot, ntfs

Partitions info (3/3): _________________________________________________________

sda5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sdf2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdf
sdf3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdf
sdh5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdh
sdh1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdh

fdisk -l (filtered): ___________________________________________________________

Disk sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0x06e9e224
     Boot Start        End    Sectors  Size Id Type
sda1       14581 3907024064 3907009484  1.8T  f W95 Ext'd (LBA)
sda5  *    14644 3907024064 3907009421  1.8T  7 HPFS/NTFS/exFAT
Disk sdh: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0xb937c9a4
     Boot     Start       End   Sectors   Size Id Type
sdh1  *         2048 346451967 346449920 165.2G  7 HPFS/NTFS/exFAT
sdh2       346453953 976773119 630319167 300.6G  f W95 Ext'd (LBA)
sdh5       346454016 944005119 597551104 284.9G  7 HPFS/NTFS/exFAT
sdh6       944007168 976773119  32765952  15.6G 83 Linux
Disk sdf: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 3611A932-5E64-4028-811F-F52A4BB74F7B
         Start        End    Sectors   Size Type
sdf1      65535     393209     327675   160M BIOS boot
sdf2     393210  595849215  595456006 283.9G EFI System
sdf3  595849216 1953523711 1357674496 647.4G Microsoft basic data
Disk sdg: 7.46 GiB, 8006926336 bytes, 15638528 sectors
Disk identifier: 0xd94bd83b
     Boot   Start      End Sectors  Size Id Type
sdg1  *         64  5967263 5967200  2.8G  0 Empty
sdg2          8452    18691   10240    5M ef EFI (FAT-12/16/32)
sdg3       5967872 15638527 9670656  4.6G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:2000GB:scsi:512:4096:msdos:ATA WDC WD20EARX-00P:;
1:7465kB:2000GB:2000GB:::lba;
5:7498kB:2000GB:2000GB:ntfs::boot;
sdf:1000GB:scsi:512:512:gpt:Samsung PSSD T7 Shield:;
1:33.6MB:201MB:168MB:::bios_grub;
2:201MB:305GB:305GB:ext4::boot, esp;
3:305GB:1000GB:695GB:ntfs:Backup:msftdata;
sdg:8007MB:scsi:512:512:unknown:Kingston DataTraveler 2.0:;
sdh:500GB:scsi:512:4096:msdos:ATA CT500MX500SSD1:;
1:1049kB:177GB:177GB:ntfs::boot;
2:177GB:500GB:323GB:::lba;
5:177GB:483GB:306GB:ntfs::;
6:483GB:500GB:16.8GB:linux-swap(v1)::;

Free space >10MiB: ______________________________________________________________

sdf: 0.02MiB:32.0MiB:32.0MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                           PARTLABEL
sda                                                                                                                       
├─sda1                                               06e9e224-01                                                          
└─sda5 ntfs     01D6DB95FBB85520                     06e9e224-05                          Divers                          
sdb                                                                                                                       
sdc                                                                                                                       
sdd                                                                                                                       
sde                                                                                                                       
sdf                                                                                                                       
├─sdf1                                               cf88609f-0e92-49eb-9a87-fe675266b488                                 
├─sdf2 ext4     b0add70e-79a1-4319-8fcc-82076ad4a496 c50f79be-920f-4f5a-aa9a-449c4b991886                                 
└─sdf3 ntfs     039C2C6E2F97A34A                     6edf2e2c-fda7-4166-af8c-e9960a6a1660 Backup                          Backup
sdg    iso9660  2025-08-28-08-52-38-00                                                    Linux Mint 22.2 Cinnamon 64-bit 
├─sdg1 iso9660  2025-08-28-08-52-38-00               d94bd83b-01                          Linux Mint 22.2 Cinnamon 64-bit 
├─sdg2 vfat     68B0-18D6                            d94bd83b-02                                                          
└─sdg3 ext4     240601f3-bdba-4391-bb58-adb88cb0fe34 d94bd83b-03                          writable                        
sdh                                                                                                                       
├─sdh1 ntfs     01DB4D65A49A1A80                     b937c9a4-01                          Windows C                       
├─sdh2                                               b937c9a4-02                                                          
├─sdh5 ntfs     01DB4D650C4B2AD0                     b937c9a4-05                          Apps                            
└─sdh6 swap     b3968c98-46d4-428b-962e-9337d380fe76 b937c9a4-06                                                          

Mount points (filtered): _______________________________________________________

                                                             Avail Use% Mounted on
/dev/sda5                                                   506.1G  73% /mnt/boot-sav/sda5
/dev/sdf2                                                    59.4G  74% /mnt/boot-sav/sdf2
/dev/sdf3                                                   288.1G  55% /media/mint/Backup
/dev/sdg1                                                        0 100% /cdrom
/dev/sdh1                                                    17.9G  89% /mnt/boot-sav/sdh1
/dev/sdh5                                                   142.4G  50% /mnt/boot-sav/sdh5

Mount options (filtered): ______________________________________________________

/dev/sda5                                                   fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdf2                                                   ext4            rw,relatime,stripe=8191
/dev/sdf3                                                   fuseblk         rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
/dev/sdg1                                                   iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sdh1                                                   fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdh5                                                   fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

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

Ubuntu   b0add70e-79a1-4319-8fcc-82076ad4a496
Windows 10 (on sdh1)   01DB4D65A49A1A80
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sdf2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdf2 during installation
UUID=b0add70e-79a1-4319-8fcc-82076ad4a496 /               ext4    errors=remount-ro 0       1
/dev/disk/by-uuid/01DB4D65A49A1A80 /mnt/Windows040C auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/01D6DB95FBB85520 /mnt/Divers auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/01DB4D650C4B2AD0 /mnt/Apps auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-id/usb-Samsung_PSSD_T7_Shield_S6SNNJ0T808675M-0:0-part3 /mnt/Backup auto nosuid,nodev,nofail,x-gvfs-show 0 0
UUID=b3968c98-46d4-428b-962e-9337d380fe76   none    swap    sw      0   0

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

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
 151.232319832 = 162.384466944  boot/grub/i386-pc/core.img                     1
  36.436371803 = 39.123256320   boot/vmlinuz                                   2
 124.569161415 = 133.755118592  boot/vmlinuz-6.14.0-29-generic                 1
  36.436371803 = 39.123256320   boot/vmlinuz-6.14.0-37-generic                 2
 124.569161415 = 133.755118592  boot/vmlinuz.old                               1
  97.687493324 = 104.891147264  boot/initrd.img                                3
 100.186432838 = 107.574363136  boot/initrd.img-6.14.0-29-generic              2
  97.687493324 = 104.891147264  boot/initrd.img-6.14.0-37-generic              3
 100.186432838 = 107.574363136  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18133 Mar 17  2025 10_linux
-rwxr-xr-x 1 root root 43202 Mar 17  2025 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Mar 17  2025 20_linux_xen
-rwxr-xr-x 1 root root   786 Mar 17  2025 25_bli
-rwxr-xr-x 1 root root 13120 Mar 17  2025 30_os-prober
-rwxr-xr-x 1 root root  1174 Mar 17  2025 30_uefi-firmware
-rwxr-xr-x 1 root root   722 May  8  2025 35_fwupd
-rwxr-xr-x 1 root root   214 Mar 17  2025 40_custom
-rwxr-xr-x 1 root root   215 Mar 17  2025 41_custom
drwxr-xr-x 4 root root  4096 Jan  3 18:05 backup

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on sdf3

Unknown BootLoader on sdg

sprunge.us ko ()
Petite précision, j'ai toujours l'erreur "invalid arch independent ELF magic" de grub.
J'ai exécuter boot-repair à partir du live usb de Mint

Encore merci :)
Modifié en dernier par Plumeau123 le sam. 3 janv. 2026 20:28, modifié 1 fois.
Patrick
PC Dell | Intel© Core™ i5 CPU | GeForce GTX 1050 Ti | dualBoot: Linux Mint 22.2 Cinnamon / Windows 10
JUNGA
Messages : 89
Enregistré le : mer. 28 mai 2025 20:32

Re: Grub boot-repair problème

Message par JUNGA »

Hello
et tu ne pourrais pas faire un retour en arrière via Timeshift, en utilisant le support d'installation?
NE PAS OUBLIER TA SIGNATURE MATÉRIEL ETC...
PC TOSHIBA IntelHD Graphics 620 | DUALBOOT LM/W11 Cinammon 6.4.8, noyau 6.8.0-107
Core™ i3-7020U , RAM 16 Go, SSD interne W11 Pro Samsung 870 EVO 250 Gb
- SSD externLM22. Samsung 870 EVO 500 Gb
- SSD Samsung externe 870 EVO 250 Gb LMDE7Cinnamon
Plumeau123
Messages : 5
Enregistré le : sam. 3 janv. 2026 19:25

Re: Grub boot-repair problème

Message par Plumeau123 »

Bonjour JUNGA,

Effectivement, je pourrais regarder pour le Timeshift, par contre je ne crois pas que timeshift peut restaurer le MBR... est-ce le cas?
Je vais regarder pour ajouter le tout à ma signature.

Merci"
Patrick
PC Dell | Intel© Core™ i5 CPU | GeForce GTX 1050 Ti | dualBoot: Linux Mint 22.2 Cinnamon / Windows 10
Plumeau123
Messages : 5
Enregistré le : sam. 3 janv. 2026 19:25

Re: Grub boot-repair problème

Message par Plumeau123 »

Je viens de faire un retour en arriere avec Timeshift mais ca ne boot toujours pas. Meme probleme
Patrick
PC Dell | Intel© Core™ i5 CPU | GeForce GTX 1050 Ti | dualBoot: Linux Mint 22.2 Cinnamon / Windows 10
Plumeau123
Messages : 5
Enregistré le : sam. 3 janv. 2026 19:25

Re: Grub boot-repair problème

Message par Plumeau123 »

Petit update de mon problème.
J'ai réussi à booter ma partition Linux à l'aide d'une clé USB de Super Grub2 Disk. Youpi! :D
Par contre, toujours incapable de faire fonctionner mon grub qui donne toujours l'erreur de ELF magic peut importe ce que je tente :?
Quelqu'un d'autre à des idées que je pourrais tenter?
Merci!
Patrick
PC Dell | Intel© Core™ i5 CPU | GeForce GTX 1050 Ti | dualBoot: Linux Mint 22.2 Cinnamon / Windows 10
Avatar du membre
twocats
Messages : 7
Enregistré le : dim. 4 août 2019 12:46

Re: Grub boot-repair problème

Message par twocats »

Bonjour,
Tu peux te chrooter à partir d'un Live USB et réinstaller grub.
Tu recherche la partition racine (pas celle de boot) de ton système avec :

Code : Tout sélectionner

lsblk
Genre un truc comme "/dev/sdfX" (le X est à adapter).
Tu te chroot :

Code : Tout sélectionner

sudo mount /dev/sdfX /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
sudo chroot /mnt /bin/bash
sudo mount -a
Tu réinstalle grub :

Code : Tout sélectionner

sudo apt install grub-pc-bin grub-pc
sudo grub-install
sudo update-grub
Tu sort du chroot :

Code : Tout sélectionner

exit
umount -R /mnt
Redémarre l'ordinateur sans la clé de manière normale (tu devras peut-être forcé l'arrêt).
Distrib : Linux Mint 22.2 Desktop : X-Cinnamon
Kernel : 6.14.0-35-generic CPU : AMD Ryzen 7 9700X 8-Core Processor RAM : 30Gi
CG : AMD Radeon RX 9060 XT
Répondre