1

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/

ghoti
  • 65
  • Please take a look at the answer to: Problems with booting ubuntu after formatting boot partition. I hope this helps. – karel May 22 '14 at 09:45
  • 1
    Thanks for pointing me to that thread. I tried the steps mentioned. It fails during the usage of Boot Repair and tells me that I am booted in non-EFI mode.

    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

1 Answers1

0

There is no nice way to say it is fukked. The boot partition is a sacred place. It wasn't always set up in this manner though. By placing that data on its own partition, it added another dynamic of protection in case data loss occurred; however people still persist to have problems keeping their boot environment from getting hit.

Linux is unforgiving. But you can recover your data by using an install disc to get into an environment and mount your partitions. There is also a method of recovery along that same path if you get crafty. Search for a recovery tutorial and the solution will present itself.

If you're really serious about recovering the partition, you could use deep scan recovery software to recover the data, but I assure you it's more trouble than it's worth.

  • 1
    This is too vague to be a useful answer. e.g. How do you use an install disc to mount partitions? What deep scan recovery software? – Carl H Dec 10 '15 at 08:34