I'm having trouble with the grub rescue. I am following the tutorial How to fix "error: unknown filesystem. grub rescue>, but I have the following problem.
I have to run the command
set prefix=(X,Y)/path
making (X,Y)/path
the path where the .mod
files are located. I found that directory to be (hd0,gpt7)/usr/lib/grub/x86_64-efi
. When I set that prefix and try to run the insmod
commands, I get:
error: file '/usr/lib/grub/x86_64-efi/i386-pc/linux.mod' not found
What I think the problem is here, I have located the linux.mod
file in the directory /x86_64-efi
, but then GRUB tries to find it at /x86_64-efi/i386-pc
, adding that directory that doesn't even exist there (I checked its existence with ls
).
I made another test after this. I did:
set prefix=(hd0,gpt7)/usr/lib/grub
But I got the same error:
error: file '/usr/lib/grub/i386-pc/linux.mod' not found
It seems as it always adds the path i386-pc
.
How can I force GRUB to look for the files in the directory I want? Or is my problem something else?