A lire l'erreur tu n'aurais pas par tout hasard installé Windows sur Linux?
Boot grub impossible
Vu que tu sembles utiliser UEFI, il faut préciser le chemin vers le répertoire EFI, généralement c'est /boot/efi mais vérifie quand même. As-tu bien fait le montage des partitions (surtout celle qui contient /boot) et le chroot ?
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
Après il se peut que Grub se trompe en passant en mode UEFI alors que tu utilises BIOS, dans ce cas essaye :grub-install --target=i386-pc /dev/sdx
pour forcer grub à passer en mode bios-legacy. Je viens de remarquer aussi que grub-mkconfig n'a pas détecté Windows 10, essaye d'installer os-prober puis relance.- Modifié
Non j'ai bien installer Linux apres Windows et ca a bien fonctionner pendant une bonne année jusqu'a que je me balade dans les menu du grub...setsuneh wrote:A lire l'erreur tu n'aurais pas par tout hasard installé Windows sur Linux?
Pour moi j'utilise bien le BIOS et non UEFI. Dans la partition que j'ai montée 'sda8' et qui correspond a mon '/' j'ai un dossier 'efi' mais vide.
mint@mint ~ $ sudo mount /dev/sda8 /mnt/foo
mint@mint ~ $ sudo mount --bind /dev /mnt/foo/dev &&
> sudo mount --bind /dev/pts /mnt/foo/dev/pts &&
> sudo mount --bind /proc /mnt/foo/proc &&
> sudo mount --bind /sys /mnt/foo/sys
mint@mint ~ $ sudo chroot /mnt/foo
mint / # sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo: unable to resolve host mint
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-32-generic
Found initrd image: /boot/initrd.img-3.19.0-32-generic
No volume groups found
Adding boot menu entry for EFI firmware configuration
done
mint / # grub-install /dev/sda
Installing for x86_64-efi platform.
grub-install.real: error: cannot find EFI directory.
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.
.
mint / # grub-install --target=i386-pc /dev/sda
grub-install.real: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
Il faudrait pas que je remplace '/boot/efi' par le chemin de la partition que j'ai monter '/mnt/foo/boot/efi' ?Il faut que tu détermines le dossier cible, sous archlinux c'est i386-pc mais Mint a du définir un autre nom, regarde sous /usr/lib/grub/ et /boot/grub
Essaye avec :
Essaye avec :
grub-install --boot-directory=/boot/... /dev/sda
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 ;
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 ?
Rien il est vide
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].