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.

I recently installed Ubuntu on a flash drive. The intent was to use Ubuntu when the USB is inserted and Windows when it is not. But now I receive a prompt asking me to choose the operating system I want to boot, even when I have no USB inserted. It's redundant and unnecessary. Is there a way to remove that so that it loads Ubuntu when it is there and Windows when it is not, like it is supposed to?

share|improve this question
1  
Where was the bootloader installed? To the hard drive, or to the USB thumb drive? –  cadadr Dec 2 '12 at 23:47
    
Everything was installed to the flash drive. –  Ryan K Dec 2 '12 at 23:50

1 Answer 1

Grub-bootloader will be installed in the first HDD (this is by default). So if you didn't change that manually , then grub is now installed in /dev/sda , which is your HDD and not USB.

As a solution I suggest

1) Boot from CD/DVD of Windows and fix MBR. (repair - option)

2) Reinstall Ubuntu and make sure that grub-bootloader will be installed in the USB (and not HDD). USB can be /dev/sdb or /dev/sdc ...etc (but not /dev/sda). You will see this option if you choose "something else" during installation.

3) If you want to achieve this goal

it loads Ubuntu when it is there and Windows when it is not

you have to "play" with BIOS all the time. If you have "one boot key" which allows you to select a device to boot (at my laptop is F12) then is easier. But if you don't have this key , anytime you want to boot in to Ubuntu you have to go in to BIOS configuration page and change the boot-device order and place fist the USB (you have already attached).

share|improve this answer

Your Answer

 
discard

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.