View previous topic :: View next topic |
Author |
Message |
manu.rhel n00b
Joined: 11 Apr 2014 Posts: 44
|
Posted: Sat Aug 03, 2024 10:46 am Post subject: Grub-Install error |
|
|
Hi Experts,
getting below error when trying grub-install -
Quote: | # grub-install --target=x86_64-efi --efi-directory=/boot/efi
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
|
I am out of ideas as to what am I missing here. Please suggest and thanks in advance.
In BIOS, is enabled
Mount points -
Quote: | /dev/nvme0n1p3 on / type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
/dev/nvme0n1p2 on /boot type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/nvme0n1p4 on /var type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
/dev/nvme0n1p5 on /home type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
|
df -h o/p
Quote: | Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p3 49G 9.2G 40G 19% /
/dev/nvme0n1p2 460M 76M 385M 17% /boot
/dev/nvme0n1p1 499M 152K 498M 1% /boot/efi
/dev/nvme0n1p4 50G 2.7G 48G 6% /var
/dev/nvme0n1p5 832G 6.2G 825G 1% /home
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
udev 10M 0 10M 0% /dev
tmpfs 63G 0 63G 0% /dev/shm
none 63G 928K 63G 1% /run
|
|
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Sat Aug 03, 2024 11:22 am Post subject: Re: Grub-Install error |
|
|
manu.rhel wrote: | ...
Code: | # grub-install --target=x86_64-efi --efi-directory=/boot/efi
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
...
|
|
Did you forget to mount /proc, /sys, /dev, /run filesystems?
Specifically, efivarfs is not mounted which is the direct cause of the error. |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 489
|
Posted: Sat Aug 03, 2024 11:25 am Post subject: |
|
|
The best solution: Boot your system in EFI mode and mount all needed parts also to the chroot.
Another approach: Add the "--no-nvram" flag to "grub-install" and boot from the UEFI settings. |
|
Back to top |
|
|
manu.rhel n00b
Joined: 11 Apr 2014 Posts: 44
|
Posted: Sat Aug 03, 2024 2:46 pm Post subject: |
|
|
Thanks everyone for your prompt response, Mounts are there as you can see below, I am still getting that error shared in. my previous update -
Quote: | efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=16377913,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=26218612k,nr_inodes=819200,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
|
Please suggest. |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 489
|
Posted: Sun Aug 04, 2024 8:10 am Post subject: |
|
|
Is this the output of your live-system or from within the chroot?
It would be great if you share all the commands you entered and the output. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|