I used a mini.iso to install a minimal LUbuntu 18.04 on a 4GB USB flash drive. I basically just followed the steps and only selected the core and minimal LUbuntu packages.
At the end of the install, it claimed that it had detected "Windows Vista" on the main drive, and wanted to install a boot loader so I could pick which OS to boot. This is odd as this machine never had Vista, it came with Windows 8 which was later upgraded to Windows 10. I rejected this suggestion though because I'm only going to connect the USB flash drive when I want to boot from it, and it seems rather weird to have a menu to select a way to boot that may not be present. So instead I told it to install the boot loader to the USB drive itself.
However, after doing so, when I try to boot from this device from legacy mode (i hit a key to get a list of boot devices, then select the USB drive), I just get a black screen with a flashing cursor in the upper left corner of the screen. I waited around ten minutes for it to boot or do anything, so I am pretty sure it wasn't just being slow. Hitting ctrl+alt+del doesn't reboot the system, once it hangs like this I have to actually cycle power to try to boot again.
I also tried booting with secure boot (EFI) which I just assumed should work since the full Live USB loader works, but when I do this it doesn't even try to boot, the BIOS screen with drive selection just flashes and nothing happens.
What did I do wrong (if anything) and how do I fix this so I can boot the USB flash drive? When I mount the drive on another machine I see one partition that I can mount. If possible, I would like it to boot in EFI mode so I don't have to manually switch to legacy mode every time I want to use the drive. Also, if I don't have to start over from scratch that would be nice, as I've already wasted several hours trying to install in various ways that failed before I even got this far.
Update: In looking at the partition on the USB flash drive I installed LUbuntu to, I noticed that the "boot" flag was not yet, which seemed really weird. I tried setting it, but this did not fix the issue.
Update 2: I found a tool called "Boot Repair" which I thought might be helpful. But when I tried to run it in a VM with my USB flash drive attached, it refuses to fix my USB flash drive because I'm not booted from a live USB.