3

I have an USB Ubuntu image which I have created previously and it worked.

  • Is it possible to have menu or automatically choose between systems at start?
  • Ideally I would like to have it done that way:
    • boot from USB when stick is in
    • boot Windows from hard drive otherwise.

I was not able to find any tutorials how to do it.

Mast
  • 175
KarlR
  • 157
  • 2
    The proposed duplicate describes a totally different scenario. The answers there might provide the needed method with sufficient adapting and imagination, but that doesn't make the question a duplicate. I think we should only close questions as duplicates when they are actually asking the same thing, or a subset of the the thing that is well covered by... the thing... – Zanna Oct 16 '18 at 20:30

3 Answers3

10

Configuring the computer to boot from the Ubuntu USB stick if it is inserted, otherwise to boot to Windows if it is not inserted can be done by changing the boot priority settings, which is often found under the Boot tab of the computer's BIOS/UEFI utility. The BIOS/UEFI utility can be accessed by pressing the key which is shown on the manufacturer's splash screen when booting. This is the F12 key on many computers. The keys to press, such as F12, F2, Del or Esc, differ on computers from different manufacturers.

enter image description here

When the power button is pressed to start the computer, it will try to boot first from whatever option is listed first in the boot priority section of the computer's BIOS/UEFI utility. If the USB stick is listed first in the boot priority list, it will try to boot from the USB stick first. If the internal hard drive where Windows is installed is listed first in the boot priority list, the computer will boot to Windows.

If the computer can't boot to the first device in the boot priority list because it is not attached, it will try to boot from the second device in the boot priority list instead. If the USB stick is listed first, but it is not currently inserted in the computer, the computer will skip the USB stick when booting and boot Windows from the hard drive instead, assuming that the Windows hard drive is the second device in the boot priority list.

karel
  • 114,770
  • 1
    I've also seen F10, F9, CTRL-D, and F1. Basically, just repeatedly bash the top row of keys as your machine boots up and hopefully one of them will work. :-p – tudor -Reinstate Monica- Oct 15 '18 at 03:07
  • 1
    @tudor That is a dangerous idea because any motherboard could have an irresponsibly-easy to access dangerous setting. Additionally, I can see the button mashing ending up happening in the bios interface, and doing who knows what. If you don't know what key to press, look at the splash screen and it will usually be written there. Worst case, check the motherboard's or computer's manual, or, even worse case that is very unlikely, google it for your motherboard or computer model number. – john01dav Oct 15 '18 at 04:58
1

Choosing Boot Drive Each Boot

You can choose the USB boot drive with every boot by pressing the appropriate Function key. With HP this is F9, my other computers use F10 or F12. You will likely discover this key looking for BIOS as suggested in other posts.

This may come in handy when booting your disk on a computer that is not yours. (Your friends may not like you messing with their BIOS).

Add USB Boot Drive to Grub

If you are using grub2 as a boot loader, You can easily add a Full install flash drive to the grub boot menu.

Plug in the USB drive and run sudo update-grub. The new entry will be shown in terminal as it is added.

If you make it the first boot entry in grub, the flash drive will boot first by default.

C.S.Cameron
  • 19,519
0

After you made your USB bootable with "Lili USB creator". Reboot your system until your motherboard welcome screen.

At the moment before the welcome screen pass, In most of the motherboards, you should press the "Del" button to load "Bios manager".

In the boot manager, "it usually exists in the setup tab or hardware" You will be able to see a list of boot hardware and it sorted with 1 or 2 or ...

You should set the "number 1 " every your default bootloader if you set a memory as number one when it's not plugged in, the system will use" number 2 " if the N2 is plugged.

It is up to you to how you sort them ...

ThunderBird
  • 1,955
  • 1
    In most of the motherboards, you should press the "Del" button to load "Bios manager". Del, Esc, F2, F8, F10, even F1 in odd cases. I'd say it's Del in some cases, not in most. Anyway, the appropriate button should be listed in the motherboard's manual, look for anything that mentions "enter BIOS". – Mast Oct 14 '18 at 20:09