This question already has an answer here:
I was running Win 7 and Ubuntu 12.04 alongside each other on diffirent partitions. I recently upgraded to Win 8 and after installing it, it booted directly on Win 8.
I've put in my pendrive to run Ubuntu from it, and I can see that my Ubuntu installation is still installed on the harddrive.
How do I get the bootloader to work again without reinstalling Ubuntu again?