I think I can tell you why it happened, not sure exactly how to fix it though. When you install an OS it installs it's boot loader on the partition that is marked active regardless of what partition the OS is installed to. When you installed Ubuntu it installed its boot loader Grub. Grub was...