1

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?

kashyap
  • 71

1 Answers1

0

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.