Sorry for asking an already asked question, but I couldn't find anything that solved my problem. I did an extensive research on the internet (many users had similar problems) still I'm not able to fix it.
So, I messed up my laptops booting system: I installed Ubuntu in Legacy mode alongside a pre-installed Windows10 in UEFI. As you may know, one should't do it. I tried to restore things several times (by deleting the Ubuntu partition first and trying to install it again in EFI mode; by setting
prefix to the right partition/path; etc...) - but nothing worked.
At the moment I cannot boot neither Windows nor Ubuntu.
When I try to set the
/boot/grub/i386-pc and then enter
insmod normal or
insmod linux I get:
filesystem '(hd0,X)/boot/grub/i386-pc/x86_64-efi/blabla.mod' not found
That's is because there is no "x86_64-efi" folder at all! The rescue grub automatically sets this folder in the path and I don't know why.
The only thing I can do is booting Ubuntu from my pen drive, though when I start the boot-repair it says:
The current session is in legacy mode. Please reboot the computer, and use this software in an EFI session. ...
Here is the link to my Pastebin.
I still can see that Windows10 partitions in Gparted, but I don't know how to get it to work/boot again. Do you have any suggestions?