[SOLVED] /usr/lib/grub/x86_64-efi/modinfo.sh doesn’t exist.

So if you’re trying to install grub and getting this error:

grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.

Important note: Could be that you actually don’t wont to run in UEFI mode (before windows 8.1). So you need to disable UEFI from BIOS and then restart and you get rid of the error. 

You might try this:

The steps:

1. mkdir /mnt/sdb
2. mount /dev/sdb3 /mnt/sdb/
3. grub2-install /dev/sdb --target=i386-pc

Leave a Reply

Your email address will not be published. Required fields are marked *