[Solved] grub-install, real: error: cannot find EFI directory

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
farkas
Level 5
Level 5
Posts: 552
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

[Solved] grub-install, real: error: cannot find EFI directory

Post by farkas »

At the end of running Update Manager I get an error message.
So far it has not caused any other problems, everything else is working.
I upgrade to Mint 19 from 18.3 and it went smoothly.
I'm attaching screen shots of the error messages.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.
A generation which ignores history has no past and no future.
gm10

Re: grub-install, real: error: cannot find EFI directory

Post by gm10 »

Go Mint menu > Disks and find the partition with Partition Type: EFI System and make sure it is mounted and gets mounted at system startup (cogs icon > edit mount options) as /boot/efi, then try again.

If there is any doubt, copy & paste the output of these terminal commands into your next post and we'll talk you through it:

Code: Select all

inxi -Fxzp

Code: Select all

lsblk -f

Code: Select all

cat /etc/fstab

Code: Select all

df -h /boot/efi
User avatar
farkas
Level 5
Level 5
Posts: 552
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

Re: grub-install, real: error: cannot find EFI directory

Post by farkas »

Here is a screen shot of Mount Options and the outputs of the commands

steve@steve ~ $ inxi -Fxzp
System: Host: steve Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
Distro: Linux Mint 19 Tara
Machine: Device: desktop System: ASUS product: All Series serial: N/A
Mobo: ASUSTeK model: Z97-A-USB31 v: Rev 1.xx serial: N/A
UEFI: American Megatrends v: 2501 date: 06/24/2015
Battery hidpp__0: charge: N/A condition: NA/NA Wh
model: Logitech Wireless Mouse M325 status: Discharging
CPU: Quad core Intel Core i5-4690K (-MCP-)
arch: Haswell rev.3 cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 28002
clock speeds: max: 4300 MHz 1: 4300 MHz 2: 4298 MHz 3: 4274 MHz
4: 4300 MHz
Graphics: Card: NVIDIA GM206 [GeForce GTX 950] bus-ID: 01:00.0
Display Server: x11 (X.Org 1.19.6 )
drivers: nouveau (unloaded: modesetting,fbdev,vesa)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: NV126 version: 4.3 Mesa 18.0.5 Direct Render: Yes
Audio: Card-1 NVIDIA Device 0fba driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Intel 9 Series Family HD Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Sound: Advanced Linux Sound Architecture v: k4.15.0-33-generic
Network: Card: Intel Ethernet Connection (2) I218-V
driver: e1000e v: 3.2.6-k port: f040 bus-ID: 00:19.0
IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 1256.3GB (33.4% used)
ID-1: /dev/sda model: MKNSSDRE256GB size: 256.1GB
ID-2: /dev/sdb model: WDC_WD10EZEX size: 1000.2GB
Partition: ID-1: / size: 219G used: 52G (25%) fs: ext4 dev: /dev/sda2
ID-2: /mnt/bace1082-0403-40df-8db4-73a49b3f9f64 size: 917G used: 325G (38%)
fs: ext4 dev: /dev/sdb1
ID-3: swap-1 size: 17.11GB used: 0.00GB (0%)
fs: swap dev: /dev/sda3
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C
Fan Speeds (in rpm): cpu: 0
Info: Processes: 198 Uptime: 6:54 Memory: 7135.6/15977.1MB
Init: systemd runlevel: 5 Gcc sys: 7.3.0
Client: Shell (bash 4.4.191) inxi: 2.3.56
steve@steve ~ $ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat 9EC0-DA7D
├─sda2 ext4 f4ea408c-2077-401a-b2e6-1ce1a4298856 /
└─sda3 swap 8f32a8ce-e0bd-463a-b4c1-911961d36c44 [SWAP]
sdb
└─sdb1 ext4 bace1082-0403-40df-8db4-73a49b3f9f64 /mnt/bace1082-0403-40df
sr0
steve@steve ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=f4ea408c-2077-401a-b2e6-1ce1a4298856 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
# swap was on /dev/sda3 during installation
UUID=8f32a8ce-e0bd-463a-b4c1-911961d36c44 none swap sw 0 0
/dev/disk/by-id/usb-_USB_Flash_Memory_CC52AF4C82BECDC1B4AA7560-0:0-part1 /mnt/usb-_USB_Flash_Memory_CC52AF4C82BECDC1B4AA7560-0:0-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/bace1082-0403-40df-8db4-73a49b3f9f64 /mnt/bace1082-0403-40df-8db4-73a49b3f9f64 auto nosuid,nodev,nofail,x-gvfs-show 0 0
steve@steve ~ $ df -h /boot/efi
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 219G 52G 156G 25% /
steve@steve ~ $
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.
A generation which ignores history has no past and no future.
gm10

Re: grub-install, real: error: cannot find EFI directory

Post by gm10 »

Excellent. Instead of talking you through using the Disks tool, I'll just give you a bunch of stuff to copy & paste, usually safer. So in a terminal run:

Code: Select all

xed admin:///etc/fstab
authenticate and then replace the entire contents with this:

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=f4ea408c-2077-401a-b2e6-1ce1a4298856 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=9EC0-DA7D	/boot/efi	vfat	umask=0077	0	1
# swap was on /dev/sda3 during installation
UUID=8f32a8ce-e0bd-463a-b4c1-911961d36c44 none swap sw 0 0
/dev/disk/by-id/usb-_USB_Flash_Memory_CC52AF4C82BECDC1B4AA7560-0:0-part1 /mnt/usb-_USB_Flash_Memory_CC52AF4C82BECDC1B4AA7560-0:0-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/bace1082-0403-40df-8db4-73a49b3f9f64 /mnt/bace1082-0403-40df-8db4-73a49b3f9f64 auto nosuid,nodev,nofail,x-gvfs-show 0 0
Save and exit, then run

Code: Select all

sudo mkdir -p /boot/efi
and finally

Code: Select all

sudo mount /boot/efi
You should now be able to install the updates that previously failed, now and in the future.
User avatar
farkas
Level 5
Level 5
Posts: 552
Joined: Mon Sep 21, 2015 6:10 pm
Location: Oregon

Re: grub-install, real: error: cannot find EFI directory

Post by farkas »

Thanks!
I followed your instructions and rebooted. No problem. I'll let you know if they work when new updates are available.

It worked, again thank for your help!
If your query has been resolved, edit your first post and add [SOLVED] to the subject line.
If you found a solution on your own please post it.
A generation which ignores history has no past and no future.
Locked

Return to “Installation & Boot”