Dans /usr/lib/grub j'ai bien le dossier 'i386-pc' et dans /boot/grub j'ai un .txt et 'grubenv'. sur le liveusb

Sur la partition montée j'ai les dossiers ;
''x86_64-efi'' ''x86_64-efi-signed''


Dans un terminal ''normale'' .
mint@mint ~ $ sudo grub-install --boot-directory=/boot/... /dev/sda
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
grub-install.real: error: cannot open `/usr/lib/grub/i386-pc/moddep.lst': No such file or directory.
Dqns le chroot /
mint / # grub-install --boot-directory=/boot/... /dev/sda
Installing for x86_64-efi platform.
grub-install.real: error: cannot find EFI directory.
Ok tu utilises bien UEFI si tu as x86_64-efi de monté, donc la commande c'est celle là :
grub-install --target=x86_64-efi --efi-directory=/chemin/vers/dossier/efi --bootloader-id=grub
Généralement le répertoire EFI se situe dans la partition /boot, à toi de vérifier et de mettre le bon chemin.
Oui le répertoire efi est bien dans le dossier /boot/ et apres un recherche rapide il ne se trouve null part d'autre ailleur.

Toujours la meme erreur ;
mint / # grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
Installing for x86_64-efi platform.
grub-install.real: error: /boot/efi doesn't look like an EFI partition.
Merci de ton aide.
Tu as quoi dans /boot/efi ?
Bon fait un fdisk -l pour qu'on sache où se trouve la partition EFI, ça devrait te retourner un truc du genre :
Device       Start      End  Sectors  Size Type
...
/dev/sdaX     6144   255999   249856  122M EFI System
...
Model: ATA HGST HTS541010A9 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  420MB   419MB   ntfs            Basic data partition          hidden, diag
 2      420MB   693MB   273MB   fat32           EFI system partition          boot
 3      693MB   827MB   134MB                   Microsoft reserved partition  msftres
 4      827MB   161GB   160GB   ntfs            Basic data partition          msftdata
 8      161GB   191GB   30.0GB  ext4
 9      191GB   199GB   8000MB  linux-swap(v1)
10      199GB   928GB   729GB   ext4
11      928GB   975GB   47.0GB  ext4
 5      975GB   975GB   860MB   ntfs                                          hidden, diag
 6      975GB   976GB   367MB   ntfs                                          hidden, diag
 7      976GB   1000GB  24.5GB  ntfs            Basic data partition          hidden, msftdata
Je n'ai pas monté la bonne partition ?
Car dans le premier lien il faut monter ''/'' qui chez moi correspond à ''sda8''.
Il faut que tu montes aussi /dev/sda2 je pense, c'est ta partition EFI.

mount /dev/sda8 /mnt
mount /dev/sda2 /mnt/boot
Une fois monté, post ce qu'il y a dedans dans ce topic.
mint@mint ~ $ ls -al /mnt/
total 124
drwxr-xr-x  23 root root  4096 Jul 15 09:53 .
drwxr-xr-x   1 root root   240 Sep  9  2016 ..
drwxr-xr-x   2 root root  4096 Jul 15 09:47 bin
drwxr-xr-x   5 root root  4096 Jan  1  1970 boot
drwxr-xr-x   2 root root  4096 Jan  7  2016 cdrom
drwxr-xr-x   4 root root  4096 Nov 28  2015 dev
drwxr-xr-x 160 root root 12288 Sep  9 12:27 etc
drwxr-xr-x   3 root root  4096 Sep  8 11:58 home
lrwxrwxrwx   1 root root    33 Jan  7  2016 initrd.img -> boot/initrd.img-3.19.0-32-generic
drwxr-xr-x  26 root root  4096 Jul 15 09:47 lib
drwxr-xr-x   2 root root  4096 May 28 19:27 lib32
drwxr-xr-x   2 root root  4096 Jul 15 09:47 lib64
drwx------   2 root root 16384 Jan  7  2016 lost+found
drwxr-xr-x   3 root root  4096 Jan  7  2016 media
drwxr-xr-x   3 root root  4096 Sep  9 10:23 mnt
drwxr-xr-x   2 root root  4096 Apr 10  2014 proc
drwx------  12 root root  4096 May 22 20:01 root
drwxr-xr-x  12 root root  4096 Nov 28  2015 run
drwxr-xr-x   2 root root 12288 Aug  6 11:40 sbin
drwxr-xr-x   2 root root  4096 Nov 28  2015 srv
drwxr-xr-x   2 root root  4096 Mar 13  2014 sys
drwxrwxrwt  11 root root 12288 Sep  9 12:27 tmp
drwxr-xr-x  11 root root  4096 Mar 21 17:50 usr
drwxr-xr-x  12 root root  4096 Jan 16  2016 var
lrwxrwxrwx   1 root root    30 Jan  7  2016 vmlinuz -> boot/vmlinuz-3.19.0-32-generic
mint@mint ~ $ ls -al /mnt/boot/
total 48
drwxr-xr-x  5 root root  4096 Jan  1  1970 .
drwxr-xr-x 23 root root  4096 Jul 15 09:53 ..
-rwxr-xr-x  1 root root 12288 Jan  6  2016 BCD
-rwxr-xr-x  1 root root 12288 Jan  6  2016 BCD.LOG
-rwxr-xr-x  1 root root     0 Jan  6  2016 BCD.LOG1
-rwxr-xr-x  1 root root     0 Jan  6  2016 BCD.LOG2
drwxr-xr-x  2 root root  4096 Jun 26  2013 boot
drwxr-xr-x  4 root root  4096 Sep  8 10:26 boot-sav
-r-xr-xr-x  1 root root   512 Jan  7  2016 BOOTSECT.BAK
drwxr-xr-x  6 root root  4096 Sep  8 11:08 EFI

Dans EFI :
mint@mint ~ $ ls -al /mnt/boot/EFI/
total 24
drwxr-xr-x 6 root root 4096 Sep  8 11:08 .
drwxr-xr-x 5 root root 4096 Jan  1  1970 ..
drwxr-xr-x 2 root root 4096 Sep  9 12:26 Boot
drwxr-xr-x 8 root root 4096 Sep  8 11:08 HP
drwxr-xr-x 4 root root 4096 Jun 26  2013 Microsoft
drwxr-xr-x 2 root root 4096 Jan  7  2016 ubuntu
Donc la commande fonctionne maintenant ?
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=grub
Il me dit que tout c'est bien passer mais lors du redemarrage ce n'est pas le cas
mint@mint ~ $ sudo mount /dev/sda8 /mnt/
mint@mint ~ $ sudo mount /dev/sda2 /mnt/boot
 
mint@mint ~ $ sudo mount --bind /dev /mnt/dev &&  sudo mount --bind /dev/pts /mnt/dev/pts &&  sudo mount --bind /proc /mnt/proc &&  sudo mount --bind /sys /mnt/sys

mint@mint ~ $ sudo chroot /mnt

mint / # sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo: unable to resolve host mint
Generating grub configuration file ...
  No volume groups found
Found Linux Mint 17.3 Rosa (17.3) on /dev/sda11
Adding boot menu entry for EFI firmware configuration
done
mint / # grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=grub
Installing for x86_64-efi platform.
Installation finished. No error reported.
mint / # 
De plus il ne trouve plus le mint de la partition sda8 il trouve suis de sda11 [test d'install pour voir si il me re-install pas le grub].
Répondre…