So I have Ubuntu and high sierra working fine, but yesterday I decided to expand the ubuntu disk space. So I free up space in the macos by deleting application and then doing a partition(this is how I remember allocating space for ubuntu when I installed it). The partition was done in osx. After a reboot, the option to boot osx is gone, so I can only boot ubuntu with reFind. I'm guessing the macos might have unmounted it self after the partitioning or it might have to do with the new mac file system which reFind doesn't recognise.
Booting into recovery with command-R all I get is internet recovery and error code of -2002F meaning I cannot connect to apple server.
Thanks for the help!