Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to linux. I installed xubuntu using a usb live disk. It installed correctly however grub (the multi os loader) is on the usb. When I boot without the usb it only loads windows. The installation is good since I can boot from the usb, once booted I can remove the stick and verify that the installation is on the hard drive.
How do i move safely move the boot mechanism from the usb to the hard drive?

share|improve this question
Possible duplicate of Grub rescue problem after installing ubuntu. That's about restoring GRUB when it's installed to the wrong device's MBR, which seems to be what's asked here. Another related question is How can I repair grub? (How to get Ubuntu back after installing Windows?). (That's a the more general question, not limited to situations where Windows triggered the problem.) – Eliah Kagan Jan 22 '13 at 6:53

Just found the answer to my own question in case someone needs this in the future. The trick is to use boot-repair and make sure to select advance then install the mbr on the main hard drive (eg sba1). Follow this url for more info -

share|improve this answer

Boot with your usb attached, and type at a root terminal:

grub-setup /dev/sda

Remove your usb and reboot.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.