I have a Windows 10 PC but I'm trying to teach my kids C programming and was trying to install linux to a removable USB drive.
PC setup: I have an i3 with an gigabyte z97x gaming 3 motherboard. I have windows 10 on the SSD and I have it set to boot UEFI only in BIOS (secure boot is off).
I booted the installer USB perfectly fine in UEFI mode by selecting it from the bios (clearly said UEFI) and was created using dd on an ubuntu distro on my linux laptop with the ubuntu install iso , in UEFI mode (F12 boot menu). That booted okay. To install it on the other USB, I ran the install ubuntu menu function on the installer drive. Then setup my own partitions on the Installee USB. I made a 512mb efi partition (primary), a 27gb ext4 part (primary), and a 4gb swap part (also primary).
i selected to install the bootloader to /dev/sdc. It installs great and reboots.
Okay...so now things get a little odd. And I can't figure out what I'm doing wrong here.
When I look at my boot options at the F12 bootselector there are 4 options listed. Windows boot manager, ubuntu, ubuntu, (yes 2 of them) and Samsung 32gb UEFI boot (the usb drive is a samsung). If I select Windows it boots to windows. If I select Samsung 32GB UEFI it still boots to windows?! But if i select ubuntu...it boots to ubuntu on the 32GB USB drive.
More frustratingly, if I pull the USB drive out, the samsung UEFI boot option disappears but the ubuntu options remain. When you click on them without the USB drive in, it goes to a grub menu and won't boot. In bios those two ubuntu options are listed under the SSD drive meaning even though i specifically told it not to install there, it still installed grub on it?
Windows fortunately will still boot if the windows boot manager is selected but this is very frustrating. Why did it mess with it? I went to windows repair and used bootrec and did both /FixMbr and /FixBoot but the ubuntu options remains. Grub seems to have stuffed itself somewhere but I don't know where! The USB drive will not boot on my laptop either (though the installer will boot in UEFI mode just fine).
I'm not sure what I did wrong. I made sure I was in UEFI mode not BIOS mode when installing and I never selected anything that would touch /dev/sda in the booter to have it mess with my HD.
Fedora 23 will install just fine and boot in UEFI mode when installed to a USB drive.
Would really appreciate some help! Thanks!