I am installing Ubuntu on my macbook with an USB stick. The USB stick booted and i started the installation. When it asks me to restart to complete the installation i do so. But when i start up again in only boots from the USB and i have to start all over again. If i take out the USB stick it does not boot at all. If i open the internal drive in a live session from my USB stick i can however see the folders and files that ubuntu has installed. If i hold alt while starting up i get another option for booting other than the USB stick which has the name "windows" even though i never have had installed windows or tried to do so. When i try to boot that option it goes into a command line which says "error: filesystem unknown" and "grub rescue".
After advice from an IRC i tried installing rEFInd. I tried all the installation methods however none of them work.
How do i fix this so i can boot up ubuntu from my internal drive?