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

Possible Duplicate:
Can't boot without Flash Drive plugged in

I tried to install Ubuntu 12. 04 using USB on HP pavilion dv4 which has Windows 7 home premium. The installation went smooth, but after rebooting it directly booted into Windows 7. When I inserted the USB device it showed the grub menu. I suppose the boot loader got installed on the USB device.

Can any one give me a solution to this?

share|improve this question

marked as duplicate by jokerdino, fossfreedom Jun 23 '12 at 9:12

This question was marked as an exact duplicate of an existing question.

    
You mean USB Pendrive? What you had in the USB? An Ubuntu ISO? What option did you choose: 1. Install with Win. 2. Install alone. or what? What was its previous size and post-installation? – Lucio Jun 23 '12 at 1:36
2  
possibly this, askubuntu.com/q/125494/47291 – Mateo Jun 23 '12 at 2:14

From your booted Ubuntu system, open a terminal, then use the following commands to install grub to the internal drive :

sudo grub-install /dev/sdX

sudo update-grub

Replacing sdX with the actual drive, which will probably be sda, but use disk utility to double check if you are unsure.

share|improve this answer

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