Before reading, it may help to know I have a 13" Macbook Pro (model 7,1. Mid-2010).
Recently, the HFS+ filesystem on my OSX became corrupt and after many trials and errors, it was clear I was going to need to backup, format, and reinstall OSX. After I got OSX reinstalled (10.6.8), I updated to 10.9.1 and everything seemed to be working properly. However, I booted into Ubuntu and found that the boot loader couldn't find my filesystem and I was getting a grub rescue screen. I followed the first half of this answer (up until
normal), and my grub menu appeared, untouched.
Now, when I continue following the instructions, it says to reinstall grub. So beforehand, I did a little look into the partition setup to make sure that I was installing it in the right place (I want to install it on my boot loader, not in the root partition. That way I can use rEFInd or hold the alt/option key to select if I want to boot into Ubuntu or OSX, then upon choosing Ubuntu I'll see the grub menu. Obviously this case isn't ideal because I get to choose twice which operating system, but I don't want to mess up anything with the EFI startup... we all know how crabby it can get).
Upon looking into the partitions on Ubuntu, I found that GParted is seeing a Recovery HD partition and
fdisk -l isn't. So, to GParted
/dev/sda3 is the recovery partition, but to
fdisk -l, I'm seeing
/dev/sda3 as the boot partition... I figured that the offset between the two is creating weird behavior on startup. Even if that's not the case, I want to get this figured out before reinstalling grub so I know where I'm installing it.
Does anyone know why there are inconsistencies between the two records? Is OSX not hiding the recovery partition properly, or should it not be there at all? Generally, I want to know how I can get these records consistent, and if that requires removing the recovery partition (which I've never seen before!), that's fine with me.
For the record, the recovery partition isn't showing up in Disk Utility, but it does show up when I run
diskutil list in OSX's terminal. Also, to set up my partitions, I followed my own answer here. As you can see by the screen shots, GParted was not detecting the recovery partition before formatting and reinstalling OSX.
Edit: Ubuntu users -- I've linked to this question as part of an answer here if you're having an issue with grub rescue after reinstalling or making chances to OSX.