Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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

1 Answer 1

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.