Accidental corrupted recovery mode partition and cannot longer boot to it

bootdual-bootrecovery

I recently installed Ubuntu in a partition of my hard drive in a MacBook Pro (Early 2011) running macOS Sierra. My recovery partition was corrupted in the process and I cannot longer access recovery mode. Internet Recovery works fine, but it is the original recovery that came with my mac (OS X Lion Recovery) and I cannot disable SIP from there since Lion did not support it. What should I do?

Best Answer

I solved it by creating a bootable USB macOS installer with createinstallmedia from terminal. Then I booted from it and disabled System Integrity Protection and installed Refind from there. I tried booting to Recovey HD from Refind and it worked just fine.