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,190
  • 1
  • 8
  • 17
Rakesh
  • 11
  • 1
  • 2
    See the following links, [Try Ubuntu, Kubuntu, Lubuntu, Xubuntu, ... before installing it](http://ubuntuforums.org/showthread.php?t=2230389) and [Reliable tool to create a persistent live drive - mkusb](https://askubuntu.com/questions/961696/cant-boot-ubuntu-live-from-usb-initramfs-unable-to-find-a-medium-containing-a/961739#961739) and [Boot Ubuntu from external drive](https://askubuntu.com/questions/786986/boot-ubuntu-from-external-drive/942312#942312); So you can try both a persistent live system (more portable), and installed like into an internal drive but into a USB drive; more stable). – sudodus Mar 06 '18 at 10:31
  • 1
    What OS are you using to do this? Also, how did you "install" Ubuntu to the USB drive? Did you actually run the Install process from another live USB? – devius Mar 06 '18 at 10:33
  • 2
    You must also make the computer boot from USB. This is done in the UEFI/BIOS system, either with a hotkey to get a temporary boot menu, where you can select USB, or by changing the boot order in some menu. If UEFI mode, you may have to turn off secure boot. In Windows it may help to turn off fast startup (a kind of semi-hibernation). There are many versions of UEFI/BIOS systems, and you must learn how to manage the systems in the computers, where you want to boot your portable Ubuntu system. (This belongs to the computer and is independent of Ubuntu.) – sudodus Mar 06 '18 at 10:52
  • 1
    Possible duplicate of [How do I make a persistent live USB of Ubuntu 16.04?](https://askubuntu.com/questions/768970/how-do-i-make-a-persistent-live-usb-of-ubuntu-16-04) – karel Mar 07 '18 at 09:00

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,943
  • 2
  • 20
  • 24
Sage
  • 71
  • 6
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,943
  • 2
  • 20
  • 24
N0rbert
  • 97,162
  • 34
  • 239
  • 423