You are not logged in.

#1 2017-04-10 02:52:21

lightng29
Member
Registered: 2017-04-10
Posts: 3

[SOLVED] Grub-install problem : cannot find EFI directory

Hello Guys,

This is my first time installing Arch on an actual system.
I did install previously on VMWare and i was able to install it with out any problem

When i try to install the same on my hp laptop, i have problem installing grub.
when i am inputting grub-install /dev/sda

it gives me the error grub-install:error: cannot find EFI directory
I put my laptop into legacy boot and started the installation process as the live usb is not bring detected by UEFI system

also, my partitions are like this

sda1 -1GB - boot
sda2- 3.5GB - swap
sda3 -400GB (Aprrox.) - home

Thanks
Ravi

Last edited by lightng29 (2017-04-10 21:30:44)

Offline

#2 2017-04-10 02:56:02

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Grub-install problem : cannot find EFI directory

I hope you also have a root partition in addition to boot and home...

Follow the wiki (note that the commands in the wiki are different from what you used).

https://wiki.archlinux.org/index.php/GR … ll_to_disk

Last edited by 2ManyDogs (2017-04-10 02:56:50)

Offline

#3 2017-04-10 03:27:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: [SOLVED] Grub-install problem : cannot find EFI directory

Please edit your topic title to actually describe the problem you are having.

https://wiki.archlinux.org/index.php/Co … ow_to_post


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

#4 2017-04-10 04:41:38

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [SOLVED] Grub-install problem : cannot find EFI directory

lightng29 wrote:

it gives me the error grub-install:error: cannot find EFI directory
I put my laptop into legacy boot and started the installation process as the live usb is not bring detected by UEFI system

That doesn't seem to be the fact though. Apparently the live usb is booted in UEFI mode, that's why grub-install assumed --target x86_64-efi and hence requires the --efi-directory parameter.

If you are fine with / insist on having a legacy boot installation, you can simply proceed with

grub-install --target i386-pc /dev/sda

If you want a UEFI boot installation, then you need to change your partitioning scheme by having a FAT-formatted EFI System Partition (which can be used for /boot as well), and run a corresponding grub-install command.

Last edited by tom.ty89 (2017-04-10 04:43:02)

Offline

#5 2017-04-10 06:26:13

lightng29
Member
Registered: 2017-04-10
Posts: 3

Re: [SOLVED] Grub-install problem : cannot find EFI directory

tom.ty89 wrote:
lightng29 wrote:

it gives me the error grub-install:error: cannot find EFI directory
I put my laptop into legacy boot and started the installation process as the live usb is not bring detected by UEFI system

That doesn't seem to be the fact though. Apparently the live usb is booted in UEFI mode, that's why grub-install assumed --target x86_64-efi and hence requires the --efi-directory parameter.

If you are fine with / insist on having a legacy boot installation, you can simply proceed with

grub-install --target i386-pc /dev/sda

If you want a UEFI boot installation, then you need to change your partitioning scheme by having a FAT-formatted EFI System Partition (which can be used for /boot as well), and run a corresponding grub-install command.

I did try that command the error i got was
error: will not procced with blocklists

@WorMzy : Did edit the Subject
@2ManyDogs : I am gonna start from begining this time following wiki

Thanks guys

Offline

#6 2017-04-10 07:02:00

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [SOLVED] Grub-install problem : cannot find EFI directory

lightng29 wrote:

error: will not procced with blocklists

Before this error there should be some warnings that tell you what exactly you did wrong. Examples are installing grub to GPT disk with no "BIOS boot partition", or installing grub to a partition instead of a disk.

Offline

#7 2017-04-10 13:21:35

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Grub-install problem : cannot find EFI directory

lightng29 wrote:

@2ManyDogs : I am gonna start from begining this time following wiki

Good idea. Use the Installation Guide and the topics linked from there, and read and copy the commands carefully before you use them.

Offline

#8 2017-04-10 21:29:46

lightng29
Member
Registered: 2017-04-10
Posts: 3

Re: [SOLVED] Grub-install problem : cannot find EFI directory

Thanks guys, I  resolved the issue

There were couple of things i was doing wrong.
The main one was trying to execute mbr style partition in gpt, so i had the partitions setuo wrong and the commands were also wrong.
So studying a lil about different types of partitioning and few other articles i was able to figure it out
I have a successful installation of Arch with KDE

So i need your advise on how to procced with customizing KDE if you have any resources please point me towards them


Cheers

Offline

#9 2017-04-10 23:33:36

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Grub-install problem : cannot find EFI directory

Once again, the wiki is your friend: https://wiki.archlinux.org/index.php/KDE

If you have problems with KDE and have specific questions, open a new thread for each question -- please don't continue in this thread.

Offline

Board footer

Powered by FluxBB