You are not logged in.

#1 2022-12-29 15:03:18

mikinis
Member
Registered: 2022-12-29
Posts: 3

[SOLVED] Error while trying to install GRUB

Hello. I'm trying to install GRUB on my pc with command:

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

but as an output I get this error message:

Installing for x86_64-efi platform.
Could not prepare Boot variable: Function not implemented
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.

My efi partition looks fine, both boot and esp flags are on. It's my very first time installing arch manually so I might have messed something up earlier, but it would be very nice to know what I am doing wrong. Thank you for help in advance.

Last edited by mikinis (2022-12-29 18:18:07)

Offline

#2 2022-12-29 15:08:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: [SOLVED] Error while trying to install GRUB

What mainboard vendor/laptop model? If all other steps work fine but your firmware refuses to let an entry be added, you either need to check said firmware's own capabilities on whether you can manually mark an EFI binary as trusted, or alternatively opt for the fallback path by ammending --removable to that grub-install invocation.

Online

#3 2022-12-29 15:17:24

mikinis
Member
Registered: 2022-12-29
Posts: 3

Re: [SOLVED] Error while trying to install GRUB

Motherboard is Hewlett-Packard 3396 with serial number CZC3357X2T. As a newbie I have no idea how to check it's capabilities.

Offline

#4 2022-12-29 15:45:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: [SOLVED] Error while trying to install GRUB

That would be go into the setup and look for an option to add EFI entries to its bootloader something akin to https://askubuntu.com/a/663388 (see also the rest of that thread a few suggestions there as well). On a googler I find lots of people that complain this isn't possible but a few mention to have had success, is your efivars mounted ro? Check the output of mount.

You're generally sure you are booted in EFI and not BIOS mode right? When selecting an appropriate entry to boot a live disk it should be denoted with [UEFI] or similar.

Online

#5 2022-12-29 17:46:41

mikinis
Member
Registered: 2022-12-29
Posts: 3

Re: [SOLVED] Error while trying to install GRUB

You know what? I was booted on BIOS mode. Already installed grub succesfully from arch wiki GRUB installation guide. Gosh, Youtube tutorials can be confusing. Turns out I was trying to install system in UEFI way (as tutorial showed), while having only boot mode enabled. Thank you for help fellow anime profile picture.

Offline

#6 2022-12-29 17:54:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: [SOLVED] Error while trying to install GRUB

This is the reason we do not support youtube and third party guides, always follow the documentationin the wiki. If this is [SOLVED] please mark it as such by editing the title in your first post: https://wiki.archlinux.org/title/Genera … ow_to_post

Online

Board footer

Powered by FluxBB