You are not logged in.

#1 2022-05-10 19:15:26

arch_fuz
Member
Registered: 2015-01-31
Posts: 19

Grub | reinstall with different location

Hi.
I have a running arch system with gpt/UEFI using grub boot loader. Everything is working, machine is booting properly.
Now for some reasons I want to make my HD being bootable in another machine also. Unfortunatly the alternative box comes with a Asus Mainboard. Developers of firmware did their own way of implementing EFI boot. After hours of search I was able to boot the HD in this box by renaming and providing the grubx64.efi at another location with a different name.

This is what I did to get it up and running:

cp /boot/efi/EFI/arch/grubx64.efi  /boot/efi/EFI/boot/bootx64.efi

The installation partition for EFI is /dev/sda1 and this is mounted at /boot/efi.

Provided, I want to keep my existing /etc/default/grub configuration, how would one proceed to
a) remove the the existing grubx64.efi and
b) install it in the desired location

without breaking the boot process? :)

Thanks,
fuz

Offline

#2 2022-05-10 19:35:26

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,239

Re: Grub | reinstall with different location

arch_fuz wrote:

Provided, I want to keep my existing /etc/default/grub configuration, how would one proceed to
a) remove the the existing grubx64.efi

No need to do so

and
b) install it in the desired location

You've already done this when you copied it over.

No additional steps are required.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-05-10 19:54:04

arch_fuz
Member
Registered: 2015-01-31
Posts: 19

Re: Grub | reinstall with different location

Thank you very much for your help and the quick reply.

Would you mind explain to me why I am done?
I wonder how will grub know where to store a new grubx64.efi or better a new bootx64.efi file once it needs to? Or will it never be touched again and the boot loader searches the whole /boot/efi/EFI/ directory tree until it finds a file it could use?

Do not get me wrong, I am happy if there is nothing left to do smile
Just I did not get the point why not smile

Thanks,
fuz

Offline

#4 2022-05-10 19:59:57

arch_fuz
Member
Registered: 2015-01-31
Posts: 19

Re: Grub | reinstall with different location

And...
Is it OK to just

rm -rf /boot/efi/EFI/arch/grubx64.efi

to get rid of it and use the fresh copied one at /boot/efi/EFI/boot/bootx64.efi from now on?

Thanks,
fuz

Offline

Board footer

Powered by FluxBB