I got a Toshiba Sattelite S70-b-110, with windows 8.1 pre-installed. I partitioned my HDD into 4 : C:/ (Windows install) ; P:/ (Windows Data and installed programs) ; Ubuntu install (/) ; Ubuntu swap ;
I had installed Ubuntu 14.04 and everything was great! However, i needed 12.04 to run some programs, and I decided to uninstall Ubuntu the wrong way: I booted on Windows and deleted the ubuntu partition. Result: PC didnt load grub, and I couldn't boot.
I managed to bypass the situation and formatted my PC factory new, with Windows 8.1.
Then i partitioned the disk again, and went for Ubuntu 12.04. Installation was successful, but my grub didn't show Windows 8, and automatically booted on Ubuntu. Then i went online to search for answers, and I completely ruined the situation..
I followed this question, and I tried changing /etc/grub.d/30_windows and /etc/grub.d/40_custom , nothing worked.
Then i tried to run Ubuntu through USB and boot-repair , and then everything went crazy. I got "Invalid arch independent ELF magic" , and then I ran Ubuntu again from USB and used:
sudo mount /dev/sda7 /mnt; sudo grub-install --boot-directory=/mnt /dev/sda
After I rebooted, I could see Windows Boot UEFI Loader but when I tried to boot I got an error: "invalid signature". I could boot on Ubuntu though.
I'm now asking for help on this matter. I want to be able to boot on both Ubuntu 12.04 (which I already can) and Windows 8.1.
Additional info: http://paste.ubuntu.com/8547720/
Sorry for possible double entries, but I really want to make sure that I don't ruin my windows partition, since I forgot to backup my files and I really need them.
Thanks in advance,
Pedro Marques