Can I install Ubuntu onto a USB flash drive using the SAME flash drive?

8,792

Booting to RAM, (toram), and unplugging will work, reference:

Can Ubuntu be installed to the pendrive it was booted from?

mkusb is superior to Unetbootin as it can make persistent partitions larger than 4GB, it will also make a NTFS partition from any excess space that is usable by Windows and Linux.

Edit: You can do a Full install of Ubuntu to USB using VirtualBox, Instructions at:

How do I install Ubuntu to a USB key? (without using Startup Disk Creator)

A simpler method:

Install VBox and guest additions

Make new Ubuntu virtual disk

Start disk and point to Ubuntu iso

When process gets to try/install screen activate target USB and select install

When process gets to partitioning select "Something else"

Select the USB as target and continue installation.

Share:
8,792
Boris Tsetsorin Jr.
Author by

Boris Tsetsorin Jr.

Updated on September 18, 2022

Comments

  • Boris Tsetsorin Jr.
    Boris Tsetsorin Jr. over 1 year

    When you make a USB bootable with Ubuntu, it usually offers to either "Try Ubuntu" or "Install" into the hard drive. "Try Ubuntu" doesn't really save changes or treat the USB like a hard drive of its own. But that's what I want: a portable hard drive with Ubuntu OS installed into it so I can boot from it on any computer, and have all my changes saved. And yes, I have enough room in the flash drive (if 32 GIGS is enough).

    I've read on Ask Ubuntu that this is actually possible by choosing your flash drive from the custom install menu (where it shows all the computer's drives, including sdb, the flash drive). However, the answer i read suggested that I use an Ubuntu DVD to make this work. Can I install Ubuntu onto a flash drive from that VERY flash drive itself? I've noticed that the "Try Ubuntu" interface still works even if I decide to unplug the flash drive, so perhaps the flash drive can install Ubuntu onto itself?

    It's hard for me to word my question clearly, but I hope I did it well enough so that someone understands.

    Thanks a ton :)

    • user68186
      user68186 over 9 years
    • Meninx - メネンックス
      Meninx - メネンックス over 7 years
      Strange, in the "duplicated posts" I could find nothing about starting a Ubuntu USB drive, (with "toram"), unplugging it and then making a Full install to it. I could not find that question elsewhere. It is a major error to mark this question as a duplicate.
    • sudodus
      sudodus over 7 years
      See this link to a new question about this subject by C.S.Cameron: askubuntu.com/questions/855039/…
  • Meninx - メネンックス
    Meninx - メネンックス over 7 years
    The OP seems to want to do a full install, the OP in the other post did not.
  • muru
    muru over 7 years
    @C.S.Cameron I think their priority is having changes saved, so persistence is enough
  • muru
    muru over 7 years
    @C.S.Cameron meta.stackexchange.com/questions/66377/what-is-the-xy-proble‌​m. Also, it's been two years since this was posted. I'm not sure why you're arguing for someone who hasn't back since then. O.o
  • Meninx - メネンックス
    Meninx - メネンックス over 7 years
    @ muru The OP specifically asks how to make a full install to flash drive with only one flash drive, a very valid question. Since this question has since been referenced as being duplicated, people are still being sent here for an answer to that specific question, not to learn how to use an obsolete installer like UNetbootin that can only have 4GB of persistence as persistent partitions no longer work with syslinux type installs. If duplicate questions are not being allowed on this site, the original question should be correctly answered and up to date. The solution should match the title.
  • muru
    muru over 7 years
    @C.S.Cameron this question cannot be the target of duplicate close vote, since it has no upvoted answer, so that's nonsense. And the OP also says that they want to save their changes. Sometimes you address the cause, not that attempted solution.