1

I want to install Ubuntu on my USB drive so that I can use it without any restrictions with any PC having any other operating system installed.

I tried to do so but whenever I installed to USB through a bootable USB drive it doesn't run in PCs having an operating system other than Ubuntu or other Linux distros, for example Windows and Macintosh, etc.

devius
  • 1,210
Rakesh
  • 11

2 Answers2

2

You could use something like unetbootin or Rufus to create a LiveUSB and that should do it just fine. I use them all the time.

You can even create one with persistence and save files to it.

If you have followed that step and it is still not working you have to realize that just plugging in the drive is not enough. You have to boot it up that way (which may require F2 at the logo splash screen to make sure you can boot from the stick).

galoget
  • 2,963
Sage
  • 71
2

You can start with two USB flashes.

First USB-flash should be prepared with Unetbootin or something similar and contain installation media of Ubuntu (let's name it install-flash).

Second should be fast, empty, with >= 16Gb capacity. You can install Ubuntu on it (let's name it target-flash).

Then boot from install-flash, select target-flash as destination for / (and /home, but do not create swap area here), install GRUB on it.
After such installation you will have Ubuntu installed on this flash.

You can insert this target-flash into PC or laptop and temporary change its boot-order in BIOS or UEFI (this operation is different for various vendors - may be one of the Esc, F8, F10, F12 and so on).

Note: I have such flash and external SSD - they work as expected on various hardware.

galoget
  • 2,963
N0rbert
  • 99,918