You are not logged in.

#1 2019-01-04 15:33:38

ctaetcsh
Member
Registered: 2018-12-01
Posts: 4

[SOLVED] GRUB Install on UEFI system error

I am attempting to install GRUB onto a UEFI system, the UEFI partition is /dev/sda1 and is mounted at /mnt/boot.
When I run:

grub-install --target=x86_64 --efi-directory=/mnt/boot --bootloader-id=GRUB

It spits out this error:

grub-install: error: /usr/lib/grub/x86_64/modinfo.sh doesn't exist. Please specify --target or --directory.

If additional information is required, I am happy to provide.

Last edited by ctaetcsh (2019-01-05 03:14:55)

Offline

#2 2019-01-04 15:47:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,431

Re: [SOLVED] GRUB Install on UEFI system error

Compare your command to the command in https://wiki.archlinux.org/index.php/GR … allation_2

Your --target line is incorrect and should read  --target=x86_64-efi

Offline

#3 2019-01-04 15:50:57

ctaetcsh
Member
Registered: 2018-12-01
Posts: 4

Re: [SOLVED] GRUB Install on UEFI system error

After correcting my mistake, running grub-install --target=x86_64-efi --efi-directory=/mnt/boot --bootloader-id=GRUB results in the error:

grub-install: error: failed to get canonical path of `/mnt/boot'.

It is unclear to me if I need to have ESP be the mounted point or the partition.

Offline

#4 2019-01-04 15:53:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,431

Re: [SOLVED] GRUB Install on UEFI system error

The mount point, post outputs of

lsblk
mount

in [ code ] blocks in doubt.

FWIW if you are already in the chroot and did the other setup correctly it would be at /boot

Last edited by V1del (2019-01-04 15:54:44)

Offline

#5 2019-01-04 15:57:17

ctaetcsh
Member
Registered: 2018-12-01
Posts: 4

Re: [SOLVED] GRUB Install on UEFI system error

sda 8:0 0 232.9G 0 disk
sda1 8:1 0 512M 0 part /boot <<This one is the EFI partition
sda2 8:2 0 7.8G 0 part 
sda3 224.6G 0 part / 
/dev/sda3 on / type ext4
/dev/sda1 on /boot type vfat

Offline

#6 2019-01-04 16:00:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,431

Re: [SOLVED] GRUB Install on UEFI system error

O whoops, lsblk -f would be more telling, however, as suspected, your mount point is /boot . As you changed root, you are now from the point of view of the installed system, so your /mnt/boot is properly located at /boot

Offline

#7 2019-01-04 16:01:08

ctaetcsh
Member
Registered: 2018-12-01
Posts: 4

Re: [SOLVED] GRUB Install on UEFI system error

Installation of GRUB completed successfully. Thank you for the help V1del!

Offline

#8 2019-01-04 16:08:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,431

Re: [SOLVED] GRUB Install on UEFI system error

No problem, please mark as [SOLVED] or similar by editing the title in your first post.

Offline

Board footer

Powered by FluxBB