You are not logged in.
In fact I can successfully install grub when I use the archlinux ISO before 2021.3. And a few days ago, I reinstall archlinux again and found I can't successfully install grub.
I run " grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id = GRUB" , and it failed to install. And when I add --removeable, I can install it. But When I reboot my computer there is no welcome screen of grub. I just got a black screen.
Is there anyone knowing what's the problem ?
Offline
What "failed to install" message do you get exactly? Are you sure you are booting in UEFI mode? Which exact system/mainboard/laptop model is this?
Offline
I'm sure it's booting in UEFI mode. Infact everything is OK when I use the archlinux ISO before 2021.3 . The message I didn't remember. I can post it tonight when I come back.
What "failed to install" message do you get exactly? Are you sure you are booting in UEFI mode? Which exact system/mainboard/laptop model is this?
Offline
BTW are you sure that your EFI System Partition is mounted on /boot/EFI not /boot/efi or /efi? Normally people mount the ESP on /boot/efi or /efi and the folder /boot/efi/EFI or /efi/EFI will be auto-created when running grub-install.
Offline
Yes, I follow the guide on Internet to
mkdir /mnt/boot
mkdir /mnt/boot/EFI
and now I've solved my problem. I found when I use fdisk to do the partition, I should also use the command "t" to change the file type of the EFI partition.
BTW are you sure that your EFI System Partition is mounted on /boot/EFI not /boot/efi or /efi? Normally people mount the ESP on /boot/efi or /efi and the folder /boot/efi/EFI or /efi/EFI will be auto-created when running grub-install.
Last edited by hepuyuan100 (2021-06-16 09:28:01)
Offline
Because I creat the dir by mkdir /mnt/boot/EFI and then mount /dev/... /mnt/boot/EFI
now the folder is /boot/EFI/EFI. I want to know whether I can change the name of the folder. Like from /boot/EFI/EFI to /boot/efi/EFI(which is what you said)
BTW are you sure that your EFI System Partition is mounted on /boot/EFI not /boot/efi or /efi? Normally people mount the ESP on /boot/efi or /efi and the folder /boot/efi/EFI or /efi/EFI will be auto-created when running grub-install.
Last edited by hepuyuan100 (2021-06-16 09:31:37)
Offline
You can change the name to whatever you want it doesn't matter. as long as the relevant operations which should land on the ESP happen it doesn't matter what underlying mountpoint you use on linux.
Offline
As mentioned, you don't necessary have to change it, I asked just to confirm you did the operation on correct mountpoint. Just leave it as how it's now. (If it ain't broke, don't fix it!)
Last edited by leekz-my (2021-06-16 10:01:18)
Offline