I accidentally formatted the partition that contained the GRUB loader, so I cannot boot into Ubuntu 14.04 LTS.
Background to the saga:
I have an iMac with OSX and Ubuntu 14.04 LTS installed side by side. And am using REFIND to choose between the two.
After upgrading OSX to OSX Mavericks I could no longer boot into Ubuntu because I got the error:
error: unknown filesystem
grub rescue >
(During the upgrade process the OSX Installer added another Recovery partition, so I now have 2 of those. I think this lead to the problems with my partition that holds the GRUB loader).
However I then went and, in a moment of insanity, did something silly and dug myself a deeper hole:
I booted using an Ubuntu Live CD, and fired up gparted.
Then without really thinking, I changed the filesystem on the GRUB partition from "unknown" to FAT32, effectively also erasing anything that was on this GRUB partition.
So my question is, can I get myself out of this mess?
If yes, how?
Edit 1 - 23.05.2014:
I tried the suggestion mentioned by user Karel, who pointed me to this thread: Problems with booting ubuntu after formatting boot partition
I got to the point where I launched an Ubuntu Live CD and tried using Boot Repair.
But that failed, the error message said I am in Legacy mode and need to be in EFI mode. I am assuming it refers to the Ubuntu Live CD? If yes, how could I boot the Ubuntu Live CD in EFI mode?
Also here is the info summary from Boot Repair: http://paste.ubuntu.com/7505869/
I guess it means that the Ubuntu Live CD is booting in non-EFI mode. Can I get it to boot in EFI mode or am I not understanding the error?
Here is the pastebin info it gave me: http://paste.ubuntu.com/7505869/
– ghoti May 23 '14 at 18:36