Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: dr-kart on 25 June 2022, 07:37:10

Title: Bios update wiped artix UEFI entry
Post by: dr-kart on 25 June 2022, 07:37:10
Quote
UEFI motherboards wipe their NVRAM entries when you update the firmware
although my win11 entry was left intact
 :o  Now I need to get my UEFI artix entry back

Thing is that I have 2nd hdd with legacy grub installed. Thus I could choose there to boot from my 1st hdd's artix partition. And then I tried
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
and
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
resulting in 
EFI variables are not supported on this system

So what's the easiest way to back artix entry on my 1st hdd?


Title: Re: Bios update wiped artix UEFI entry
Post by: rayburn on 25 June 2022, 09:28:18
I would suggest trying some of these solutions from the Artix wiki:

https://wiki.artixlinux.org/Main/Troubleshooting
Title: Re: Bios update wiped artix UEFI entry
Post by: gripped on 25 June 2022, 11:06:38
https://wiki.archlinux.org/title/GRUB#UEFI
Has some information about this.

Also you can add UEFI boot entries with efibootmgr. Touched on at the above link but more here
https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface#efibootmgr


Title: Re: Bios update wiped artix UEFI entry
Post by: Lancia on 26 June 2022, 07:48:15
although my win11 entry was left intact
 :o  Now I need to get my UEFI artix entry back

Thing is that I have 2nd hdd with legacy grub installed. Thus I could choose there to boot from my 1st hdd's artix partition. And then I tried
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
and
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
resulting in 
EFI variables are not supported on this system

So what's the easiest way to back artix entry on my 1st hdd?




Why are you re-installing the grub EFI bootloader?
Your UEFI firmware's entry to the EFI executable was wiped, not the executable itself
Go to your UEFI firmware's menu, I'm pretty sure there is an option to search EFI partitions for executables, you can add the grub EFI bootloader from there.
Title: Re: Bios update wiped artix UEFI entry
Post by: dr-kart on 26 June 2022, 09:45:38
...UEFI firmware's menu, I'm pretty sure there is an option to search EFI partitions...
No, there is not. Unfortunately.
Title: Re: Bios update wiped artix UEFI entry
Post by: cat herders of linux on 26 June 2022, 12:16:18
The only way I know to mess with Linux uefi is to install Linux first then Install windows.
Title: Re: Bios update wiped artix UEFI entry
Post by: dr-kart on 26 June 2022, 13:14:59
sure thing.
That's why win11 was the first to install in my case.
Title: Re: Bios update wiped artix UEFI entry
Post by: Lancia on 26 June 2022, 13:22:42
Can you give us a list of all your block devices? do a lsblk -f
Title: Re: Bios update wiped artix UEFI entry
Post by: dr-kart on 26 June 2022, 13:26:16
                                                                              
├─sda1 vfat   FAT32              76EB-6981                              36,6M    62% /boot/efi
├─sda2                                                                              
├─sda3 ntfs                      6004F48004F54A8C                                   
└─sda4 ext4   1.0                54f2804c-800d-547b-bbfd-2442a8b16056    188G    56% /
         
  
Title: Re: Bios update wiped artix UEFI entry
Post by: dr-kart on 26 June 2022, 13:28:52
sda3 - win11
sda4 - artix (the subject of topic)

Title: Re: Bios update wiped artix UEFI entry
Post by: VictorBrand on 26 June 2022, 18:38:01
Your UEFI entry was configured during Artix install, thus it can be reconfigured again. Try booting from Artix installation media, then chroot into your system as during the manual install, and run update-grub from there. This should update EFI variables.