This question already has an answer here:
I'm kinda new to Linux. I wanted to install Ubuntu, so I installed Ubuntu alongside Windows 7, (I partitioned my HDD and left it unallocated) Ubuntu did not ask where to install and stuff, it just installed.
So I rebooted the PC, to boot Ubuntu, but there was no GRUB, it booted straight to Windows 7. So I found this question: No Grub after installing Ubuntu beside Windows 7
So I wanted to try what it said in the answer of that question, so I inserted my LiveUSB, and booted from it, and the GRUB APPEARED! I don't know why when I boot from that USB, GRUB appears. So I booted Ubuntu and it works. But I see the GRUB only when the USB flash drive is connected. So it looks like the GRUB installed in the USB.
My question is, how can I transfer GRUB to my default partition, so I can get GRUB without having to boot from the LiveUSB.