You are not logged in.
I am beginner Archlinux user.I made on archlinux on zfs system and I want to install any machine.I was able to install the operating system on a machine that supports legacy boot but I couldn't install it on a device that only supports uefi. In order to do this, I open a 512 MB space with gparted (Efi system) on the machine I will install.
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader=GRUB --recheck
Actually, I don't know where I should mount it so that I can install efi. When I installed in bios boot, I wasn't mounting anything, just adding zfs=pool.. to the grub and grub was working perfectly.
In short, I don't know where I need to mount it or write something to the group to install efi, I couldn't find anything as a result of my research.
thanks everyone
Offline
That mount point looks fine, the grub-install invocation should work fine except that you'd use --bootloader-id=GRUB instead of just bootloader, if you have a MSI board you might want to add --removable to the grub-install command so the fallback path get's populated. grub-mkconfig should still be grub-mkconfig -o /boot/grub/grub.cfg in any case.
You didn't mention what doesn't work. Is GRUB not listed in the EFI boot loader menu, did the grub-install command fail, does grub start but not list kernels... ?
Offline
Actually, the situation is as follows. I have an operating system and my disks are partitioned with bios boot and solaris root. I want to take the disk of this system and install it on a new machine. I am installing it on machines running in legacy boot without any problems. but I can't install it on a machine that only supports uefi.
I partition the disks as efi system on uefi machine.Then I receive the disk.and when setting up grub i use this "grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader=GRUB --recheck" not working I'm trying to create an efi folder and mount it to the disk, but it doesn't work.
I didn't understand exactly how to do it. I don't know if I can mount it somehow without creating a folder.
Can you help me how can i do it. I did a lot of research on archwiki, but what was written there was not effective.
My OS is here rpool/ROOT/default - /mnt/rpool
Offline
If your intention is to randomly unplug and throw this disk around on multiple systems then you absolutely need to do the --removable part to populate the fallback path: https://wiki.archlinux.org/title/GRUB#D … _boot_path
Where you mount the ESP for the initial grub-install command is irrelevant and you never need to mount it again provided you do the initial setup correctly. To do the initial setup correctly you need to minimally be chrooted into your actual installation. If you intend to make use of GRUB's read support of zfs and your vmlinuz-linux and initramfs-linux.img files are located in /boot you can then mount the ESP wherever (... so /efi is fine) and run
grub-install --target=x86_64-efi --efi-directory=/efi --removable
this will configure a GRUB that looks for it's configuration and kernel images under /boot (which is on your zfs)
Your main problem seems to be that you don't understand how EFI works and how it differs from a BIOS boot in which case I highly recommend you read: https://www.happyassassin.net/posts/201 … work-then/
Offline
First of all, thank you very much for your help .this is how i solved the problem
I logged in with "mkfs.vfat /dev/sda1" "mkdir /boot/efi" and then arch-chroot on the machine I will install. I did "mount /dev/sda1 /boot/efi". next (sda1 boot partition)
grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable and device booted with grub.
After getting past the boot screen, the screen stays black and I cannot access the console. Could this have something to do with my boot settings or for some other reason?
Offline