I am trying to make my usb pen drive bootable according to this: https://www.pcsuggest.com/create-a-multiboot-usb-drive-with-grub-in-linux/, what I have done:

# fdisk /dev/sdb #made new partition /dev/sdb1 4GB

# mkfs.vfat -F 32 /dev/sdb1 #vfat filesytem

# mount /dev/sdb1 /mnt; cd /mnt; mkdir boot boot_iso #mount, make 2 dirs

# grub-install /dev/sdb --target=x86_64-efi --boot-directory=boot/ --force-extra-removable --force #install GRUB

which triggered error:

Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

What should I do? I do not have any EFI directory, I want to create one

  • If you do want an EFI partition then use Gparted (or similar) and ask it to create an EFI partition (quite small, I believe is 100 MByte or so) usually at the start of the disk. – Isaac Jul 11 at 12:44
  • so I need to make another partition and then 100M and then used it with grub-install /dev/sdb2 --target=x86_64-efi-signed? – Herdsman Jul 11 at 12:50
  • @Isaac or how to do that? – Herdsman Jul 11 at 12:52
  • Read here (use sgdisk): fedoramagazine.org/managing-partitions-with-sgdisk – Isaac Jul 11 at 12:57
  • But, As I already said, gparted should be easier: askubuntu.com/questions/743095/… – Isaac Jul 11 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.