You are not logged in.

#1 2018-09-19 17:20:30

Belph
Member
Registered: 2018-04-08
Posts: 26

[solved] Grub cannot find EFI directory

When using "grub-install" I always get "grub-install: error: cannot find EFI directory"

A couple of month ago I could just use grub-install without any error and I didn't change any hardware since then sad

"LS /sys/firmware/EFI/efivars" returns a whole bunch of files.

I tried creating a partition on a GPT drive with the type EFI system out of desperation but can't mount it to /mnt/boot. I am getting this error
mount: /mnt/boot: wrong fs type, bad option, bad superblocks on /dev/sdc2, missing codepage or helper program, or other error

I have no clue what to do now. I've been trying to partition differently a couple of times but nothing worked. sad

Regards Belph

Last edited by Belph (2019-01-05 19:40:14)

Offline

#2 2018-09-19 17:32:44

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,617
Website

Re: [solved] Grub cannot find EFI directory

What guide are you following to install Arch?

Please post the output of

# parted -l

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2018-09-19 17:41:01

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

Oof, I don't know how to post the output here without typing it in. But it shows me that the partition table is loop and not GPT. I assume that is he important information there, right?

Offline

#4 2018-09-19 17:48:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,617
Website

Re: [solved] Grub cannot find EFI directory

I suspect that loop device will be the iso you are booted into.

https://wiki.archlinux.org/index.php/Li … in_clients


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2018-09-19 17:50:48

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

WorMzy wrote:

I suspect that loop device will be the iso you are booted into.

https://wiki.archlinux.org/index.php/Li … in_clients

If you mean if that is the USB stick that I am booted it right now, then no, that one has msdos as partition table.

It is actually the SSD I want to install Arch on that has loop as partition table.

Offline

#6 2018-09-19 17:52:21

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,426

Re: [solved] Grub cannot find EFI directory

Online

#7 2018-09-19 17:59:34

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

Model: ATA HGST HTS545050A7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system  Flags
1      0.00B  500GB  500GB  ext4


Model: ATA TOSHIBA DT01ACA1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
1      0.00B  1000GB  1000GB  ext4


Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdc: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system  Flags
1      0.00B  120GB  120GB  ext4


Model: Sony Storage Media (scsi)
Disk /dev/sde: 7801MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
1      1049kB  7801MB  7800MB  primary  fat32        boot, lba

Offline

#8 2018-09-19 18:30:25

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,617
Website

Re: [solved] Grub cannot find EFI directory

Please use code tags: https://wiki.archlinux.org/index.php/Co … s_and_code

Also, you forgot to answer my earlier question:

WorMzy wrote:

What guide are you following to install Arch?

That may well answer my next question: do you know how you ended up with loop partition tables on all but one of your physical disks?

Please also post the output of

wipefs /dev/sda

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2018-09-19 18:32:05

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

WorMzy wrote:

Please use code tags: https://wiki.archlinux.org/index.php/Co … s_and_code

Also, you forgot to answer my earlier question:

WorMzy wrote:

What guide are you following to install Arch?

That may well answer my next question: do you know how you ended up with loop partition tables on all but one of your physical disks?

Please also post the output of

wipefs /dev/sda

I am sorry, I've been using the Arch Installation guide here on the website. And for grub just the wiki page about grub.

I have no clue how they all became loop.

Offline

#10 2018-09-19 18:34:03

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

Belph wrote:
WorMzy wrote:

Please use code tags: https://wiki.archlinux.org/index.php/Co … s_and_code

Also, you forgot to answer my earlier question:

WorMzy wrote:

What guide are you following to install Arch?

That may well answer my next question: do you know how you ended up with loop partition tables on all but one of your physical disks?

Please also post the output of

wipefs /dev/sda

I am sorry, I've been using the Arch Installation guide here on the website. And for grub just the wiki page about grub.

I have no clue how they all became loop.

I used the wipefs command on sdc since that is the drive I want to install arch on but it's still loop

Offline

#11 2018-09-19 18:37:35

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,617
Website

Re: [solved] Grub cannot find EFI directory

The wipefs output is for diagnosis purposes, please post the output as requested.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#12 2018-09-19 18:39:25

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

WorMzy wrote:

The wipefs output is for diagnosis purposes, please post the output as requested.


DEVICE OFFSET TYPE UUID                                 LABEL
sdc    0x438  ext4 5e3ac50f-e4a9-42e9-a40e-acfb09b45858

Offline

#13 2018-09-19 18:51:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,617
Website

Re: [solved] Grub cannot find EFI directory

Again, please edit your posts to use code tags.

So it looks like you've created the filesystem on the raw disk (/dev/sdc), rather than on a partition (e.g. /dev/sdc1). I'm not sure if it's possible to remedy that without starting over, but I'm going to go ahead an recommend that you do that anyway. It seems you have a habit of skim reading, which may be how you found yourself in this situation. Read the wiki carefully, and take your time. Make sure you understand what you are doing before you do it.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#14 2018-09-19 18:57:33

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

WorMzy wrote:

Again, please edit your posts to use code tags.

So it looks like you've created the filesystem on the raw disk (/dev/sdc), rather than on a partition (e.g. /dev/sdc1). I'm not sure if it's possible to remedy that without starting over, but I'm going to go ahead an recommend that you do that anyway. It seems you have a habit of skim reading, which may be how you found yourself in this situation. Read the wiki carefully, and take your time. Make sure you understand what you are doing before you do it.

I've tried a lot of things after it didn't work the first time. Also a reason why I might get I information wrong is due to a language barrier. Would you say I should start over the guide from the very beginning? I've done that several times already. I just seen to mess up the partitioning every time, also I am confused since it doesn't work like it used to anymore.

Offline

#15 2018-09-19 19:00:36

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

Model: ATA HGST HTS545050A7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  500GB  500GB  ext4


Model: ATA TOSHIBA DT01ACA1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0.00B  1000GB  1000GB  ext4


Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdc: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 2      1049kB  538MB  537MB
 1      538MB   120GB  119GB


Model: Sony Storage Media (scsi)
Disk /dev/sde: 7801MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  7801MB  7800MB  primary  fat32        boot, lba

That's how I had set it up the first few times I tried it today, I think. Just redid how I started today.

EDIT: sdc is the one I want to use.

Last edited by Belph (2018-09-19 19:04:08)

Offline

#16 2018-09-20 08:42:53

Belph
Member
Registered: 2018-04-08
Posts: 26

Re: [solved] Grub cannot find EFI directory

Model: ATA HGST HTS545050A7 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  500GB  500GB  ext4


Model: ATA TOSHIBA DT01ACA1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system  Flags
 1      0.00B  1000GB  1000GB  ext4


Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdc: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 2      1049kB  538MB  537MB  fat32              boot, esp
 1      538MB   120GB  119GB  ext4


Model: Sony Storage Media (scsi)
Disk /dev/sde: 7801MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  7801MB  7800MB  primary  fat32        boot, lba

So this is how my partitions are right now. I made the bootable esp partition and mounted it to the /mnt/boot just like it says in the a chance installation guide here https://wiki.archlinux.org/index.php/Installation_Guide

Now within the grub installation guide here https://wiki.archlinux.org/index.php/GR … _Partition

Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sdc: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 2      1049kB  538MB  537MB  fat32              boot, esp
 1      538MB   120GB  119GB  ext4

I think now I should check if there is a EFI directory on that partition

To confirm this is the ESP, mount it and check whether it contains a directory named EFI, if it does this is definitely the ESP.

But I am struggling with that I think. I mounted the partition to /mnt/boot as mentioned before but within this folder there is just a grub folder.

Offline

#17 2018-09-20 17:00:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,617
Website

Re: [solved] Grub cannot find EFI directory

You can skip that check, since you've just created the ESP yourself. That it doesn't contain an EFI folder is expected.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB