Hello guys, I need help, I have a trial boot, Fedora 36, Pop OS 22.04 LTS and Windows 11, I’m trying to update my grub, but this error occurs:
Can someone help me please?
Hello guys, I need help, I have a trial boot, Fedora 36, Pop OS 22.04 LTS and Windows 11, I’m trying to update my grub, but this error occurs:
Can someone help me please?
Can you translate it?
Ok @0uk4x
[jack@fedora ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
[sudo] password for jack:
Generating grub configuration file…
/usr/sbin/grub2-probe: error: failed to get canonical path of “/boot/efi/EFI/fedora/fonts/unicode.pf2”.
No path or device is specified.
Usage: grub2-probe [OPTION…] [OPTION]… [PATH|DEVICE]
Try ‘grub2-probe --help’ or ‘grub2-probe --usage’ for more information.
[jack@fedora ~]$
What’s the output of this command?
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
Your command line in that image said sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
If that actually did anything then you have messed up the pointer file that is placed there by default with a fedora install (since the release of Fedora 34) and it will require a couple steps for recovery.
sudo rm /boot/grub2/grub.cfg /boot/efi/EFI/fedora/grub.cfg
sudo dnf reinstall grub2-efi* grub2-common
These steps will recreate the proper grub.cfg files at both locations.
In the future please only run grub2-mkconfig -o /boot/grub2/grub.cfg
to avoid borking up the default grub config.
[jack@fedora ~]$ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI
[jack@fedora ~]$
I’ve already tried to install grub, following the commands from Working with the GRUB 2 Boot Loader :: Fedora Docs, but without success.
I managed to solve the grub update problem:
Solution:
1 - I accessed the path: /usr/share/grub
2 - I copied the unicode.pf2 file
3 - I accessed the path /boot/efi/EFEI/fedora/
4 - I created a directory with the name fonts
5 - Paste the unicode.pf2 file into the fonts directory
Way
/boot/efi/EFEI/fedora/fonts
6 - I used the command to update grub:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
7 - The grub update was successful:
[jack@fedora ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file...
Linux image found: /boot/vmlinuz-5.19.6-200.fc36.x86_64
Found initrd image: /boot/initramfs-5.19.6-200.fc36.x86_64.img
Linux image found: /boot/vmlinuz-5.19.4-200.fc36.x86_64
Found initrd image: /boot/initramfs-5.19.4-200.fc36.x86_64.img
Linux image found: /boot/vmlinuz-5.18.19-200.fc36.x86_64
Found initrd image: /boot/initramfs-5.18.19-200.fc36.x86_64.img
Linux image found: /boot/vmlinuz-0-rescue-22df1cd485c84a3f97771273e2ddbe69
Found initrd image: /boot/initramfs-0-rescue-22df1cd485c84a3f97771273e2ddbe69.img
Found Windows Boot Manager at /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Found Pop!_OS 22.04 LTS (22.04) in /dev/nvme0n1p10
Adding menu entry for UEFI Firmware Settings...
Found Windows Boot Manager at /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Found Pop!_OS 22.04 LTS (22.04) in /dev/nvme0n1p10
concluded
[jack@fedora ~]$
Thanks guys for the tips and for trying to help me!