• LINUX > réinstaller le boot loader

      Le boot loader is a small program that loads the operating system into memory and starts it running. If the boot loader is corrupted or missing, this can cause boot problems in Linux Mint. Reinstalling the bootloader can fix this issue and get your system booting again.

      To reinstall the bootloader, you must boot from a Linux Mint Live USB or CD/DVD

      sudo fdisk -l
      Disque /dev/sda : 111,81 GiB, 120034123776 octets, 234441648 secteurs
      ...
      Périphérique   Début       Fin  Secteurs Taille Type
      /dev/sda1       2048   1050623   1048576   512M Système EFI
      /dev/sda2    1050624 234440703 233390080 111,3G Système de fichiers Linux
      
      Disque /dev/sdi : 465,78 GiB, 500107862016 octets, 976773168 secteurs
      Disk model: 00LPCX-24C6HT0  
      Unités : secteur de 1 × 512 = 512 octets
      Taille de secteur (logique / physique) : 512 octets / 512 octets
      taille d'E/S (minimale / optimale) : 512 octets / 512 octets
      Type d'étiquette de disque : gpt
      Identifiant de disque : B6D8CABE-DB64-43C9-8DE5-85570E908B9E
      
      Périphérique   Début       Fin  Secteurs Taille Type
      /dev/sdi1       2048      4095      2048     1M Amorçage BIOS
      /dev/sdi2       4096   1054719   1050624   513M Système EFI
      /dev/sdi3    1054720 976771071 975716352 465,3G Système de fichiers Linux

       

      Next, mount the Linux Mint partition by entering the following command, replacing “sdaX” with the partition number you noted earlier:

      sudo mount /dev/sdiX /mnt

      Puis, on doit chroot into the Linux Mint installation :

      sudo chroot /mnt

      This will allow you to run commands as if you were booted into the Linux Mint installation.

      Now, you can reinstall the boot loader by entering the following command:

      For BIOS systems:

      sudo grub-install /dev/sdi

      For UEFI systems:

      sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=linuxmint --recheck --no-floppy

      Once the installation is complete, update the grub configuration by entering the following command:

      sudo update-grub

      Exit the chroot environment by entering the following command:

      exit

      Unmount the partition by entering the following command:

      sudo umount /mnt

      Restart your computer and check if the boot problem has been resolved. Reinstalling the bootloader can be a complex process, so follow these steps carefully and make backups of your important data before proceeding.

       

 

Aucun commentaire

 

Laissez un commentaire