You are not logged in.

#1 2015-12-31 19:56:54

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Yet another grub efi install error

I am trying to install grub and I didn't physically made a partition for EFI stuff, here's my partition (I erased windows stuff since I just want to have arch as an os):

sda1 143M Linux filesystem
sda2 14G   Linux root (x86-64)
sda3 915G Linux home
sda4 2-4G  Linux swap

I have also installed succesfully grub using:

pacstrap /mnt grub-bios
pacstrap /mnt efibootmgr

but I cannot install grub:

# grub-install /dev/sda

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

or if I do:

grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=grub --recheck

Installing for x86_64-efi platform
grub-install: error: failed to get canonical path of `'.

Last edited by Thorvald (2015-12-31 19:57:44)

Offline

#2 2015-12-31 20:19:20

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Yet another grub efi install error

Thorvald wrote:

I didn't physically made a partition for EFI stuff

I'm quite sure that's your problem.
You can't install bootloader on UEFI if EFI partition doesn't exist.

please use [­code] tags when posting code

Offline

#3 2015-12-31 20:30:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Yet another grub efi install error

And, EFI requires that the EFI partition be FAT.  (Well, not exactly true, but you cannot use typical Linux filesystems such as ext for your EFI partition)

Last edited by ewaller (2015-12-31 21:04:22)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2015-12-31 20:49:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Yet another grub efi install error

In addition, "$esp" must be replaced with the full path to the mountpoint of the EFISYS partition.

It seems pretty obvious from your post that you haven't read through the Beginner's Guide:
https://wiki.archlinux.org/index.php/Beginners'_guide

I would strongly recommend using that rather than whichever YouTube video or LifeHacker guide you are following currently wink


Jin, Jîyan, Azadî

Offline

#5 2015-12-31 21:03:50

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: Yet another grub efi install error

So what's the best option? Reboot the system and start all over again?

Offline

#6 2015-12-31 21:27:16

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Yet another grub efi install error

If everything else is in order in your installation, there's no reason to reinstall.
Just create a new EFI system partition (if you can allocate disk space for it), and install the bootloader as usual.

Offline

#7 2015-12-31 22:10:43

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: Yet another grub efi install error

So I started again fresh following the guide at https://wiki.archlinux.org/index.php/Beginners%27_guide.

I am stuck in the step:

UEFI/GPT

# bootctl install
File system "/boot" is not a FAT EFI System partition (ESP) file system

I know somewhere is ESP, because I made it in step UEFI/GPT examples

(parted) mkpart ESP fat32 1MiB 513MiB
(parted) set 1 boot on

So what's the catch here? (I also installed intel-ucode but didn't enable microcode updates, because I need grub for it...)

Last edited by Thorvald (2015-12-31 22:11:03)

Offline

#8 2015-12-31 22:30:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Yet another grub efi install error

Thorvald wrote:

So what's the catch here?

You need to format the partition with a FAT(32) filesystem.

In your defence, parted's output isn't exactly a model of crystal clarity


Jin, Jîyan, Azadî

Offline

#9 2016-01-01 02:35:43

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: Yet another grub efi install error

This should be done in the command

 (parted) mkpart ESP fat32 1MiB 513MiB

right??? It gives vfat format, how do I modify it?

Offline

#10 2016-01-01 02:42:23

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: Yet another grub efi install error

Alright, neither

# mkfs.fat -F32 /dev/sda1

changes to fat32 if I check the filesystem using cfdisk, it still gives vfat

Last edited by Thorvald (2016-01-01 02:57:57)

Offline

#11 2016-01-01 03:17:27

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

Re: Yet another grub efi install error

To the kernel FAT 12/16/32 are all "vfat". Also FAT32 is not strictly required, your UEFI will be okay with either of those if it's SANE enough.

Offline

#12 2016-01-01 03:35:50

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: Yet another grub efi install error

I don't know, the laptop is new so I think everything should be fine with the hardware.

I'm doing it all over again, perhaps it is the step

Copy any other configuration files to the new system in /mnt (such as netctl profiles in /etc/netctl), then chroot to it:

I just execute the command that follows, I don't know  if I have to do something in this step

Offline

#13 2016-01-01 04:28:32

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: Yet another grub efi install error

It worked, for now. I think the whole problem was that before I did

# arch-chroot /mnt 

and then did the rest of the install

Last edited by Thorvald (2016-01-01 14:33:58)

Offline

Board footer

Powered by FluxBB