0

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.

Vivek Sharma
  • 1,220

1 Answers1

2

In UEFI mode, the installer will install the bootloader into the internal drive, whatever you specify.

I suggest this way to avoid that: remove (or disconnect) the internal drive before you start installing. Then the system will regard the target drive (the USB pendrive) as the 'internal' drive and install the bootloader (the EFI partition with its files) where you want it.

After the installation you shutdown and insert (connect) the internal drive again.

Otherwise you can identify and copy the relevant files from the internal drive to an EFI partition in the USB pendrive, but it is more difficult.

See also this link and links from it,

askubuntu.com/questions/912254/bootable-ubuntu-usb-with-custom-kernel/912280#912280

sudodus
  • 47,684