I have been successfully able to install ubuntu on a 32 GB USB Drive, as if I was installing on a internal Drive.
I am able to boot into the USB with Ubuntu on it.
The only problem I am facing is every time I shutdown or reboot the ubuntu, and try to reboot it, the usb is not detected a bootable. I then have to use a live disk, and repair my boot loader on usb, and then boot. It boots back in USB, but when I shutdown/reboot, same issue repeats.
Its a 32 GB PenDrive.
Boot Mode is UEFI.
I have tired my liveUsb to create a installed ubuntu usb both on mac and windows same concern.
Also, in the partition I am using the /dev/sdc (name of the usb device) rather than /dev/sdc1 (name of the partition) to install the bootloader.
Any kind of pointers, ideas will be very helpful. Thank you.