Ubuntu – Grub rescue in new installation invalid arch-dependent ELF magic

bootgrub2installationuefi

I installed ubuntu over a W8 installation (my objective was that only ubuntu remains), the installation completed well and ask to reboot, after that, it only gives me a black screen and

grub rescue>

appeared on the screen. I tried to follow the guide from here: Fixing GRUB error: “error: unknown filesystem” I was capable of finding the .mod files, but a series of issues emerges.

*If found the files in (hd0,gpt5), is the "gpt" a concern???
* after setting

set prefix=(hd0,gpt5)/boot/grub

and trying to load the module

insmod normal

computer says:

error: file '/boot/grub/x86_64-efi/normal.mod' not found

I dont know why it adds the extra 'x86_64-efi' in the directory. Given that the solution doesnt work, I tried loading the module with the complete directory:

insmod (hd0,gpt5)/boot/grub/normal.mod

But this time computer says "invalid arch-dependent ELF magic". I havent been myself capable of advance more than this on my own, please help.

UPDATE

I was capable of run "try ubuntu" from the live usb, I can see all my partitions, the partition with the ubuntu files, the partition with all my data, I would only like to know how to make that ubuntu starts on reboot, nothing else, please help.

Best Answer

UPDATE:

The solution finally came by using boot repair as suggested by other threads. The recommended changes work well for me, now I have another smaller issues, but I going to start another question, because it seems to me that it is an unrelated problem. Thanks everyone for your help.

Related Question