Score:0

Bootable USB is not persistent, reinstalls from scratch every time I boot

cn flag

Please forgive me if this is a dumb question, but I'm very new to Ubuntu.

I want to make a USB stick that I can put into any PC, boot up into Ubuntu, do whatever I need, then power down and have the OS state and my settings and files saved on the USB. That way, next time I boot from the USB, it will go straight into Ubuntu, with all my files, settings, etc preserved from the previous session.

I have a Windows 10 lap-top and followed the instructions here to create a bootable USB. I booted up, and it offered me the option of trying Ubuntu, or installing onto the hard disk. I choose to try, created a file and saved it in my documents folder, then powered down.

When I rebooted from the USB, I got the same installation again, and choosing "Try Ubuntu" set it all up again from scratch, with no sign of my saved file.

I've read around, and it does like it ought to be possible to do this, but I can't work out how. Anyone able to give me a pointer?

Thanks

sudodus avatar
jp flag
You can create a persistent live drive using other tools/methods than the standard. If you do it in Windows, you can use [Rufus](https://rufus.ie). if you do it in Ubuntu, you can use [mkusb](https://help.ubuntu.com/community/mkusb). There are instructions at the web sites that I link to. See also [this link](https://askubuntu.com/questions/1181854/how-is-it-easier-to-make-a-persistent-live-drive-with-ubuntu-19-10).
user535733 avatar
cn flag
The tutorial you followed creates a non-persistent LiveUSB. Expected behavior. Most folks do not need persistence, since they use the USB device once as an installer.
us flag
For the [mkusb](https://help.ubuntu.com/community/mkusb) tool suggested by @sudodus, also see [this answer](https://askubuntu.com/a/970410/100356) or [this answer](https://askubuntu.com/a/853839/100356).
DreamingOfSleep avatar
cn flag
@sudodus Thanks for the comment. I was using Rufus, but didn't spot the persistence setting (the article didn't mention it). When I set that, it worked just as I wanted. If you've like to add that as an answer, I'll mark it.
Score:1
cn flag

Persistent Install vs Full install

Ubuntu can be installed to a USB in different ways. A Live install does not save between sessions. A Persistent install extracts the OS from a compressed file and saves data to an overlay file or partition each session, and a Full install installs the complete OS to the USB just like an install to internal disk.

Comparison between Persistent and Full install USB

Advantages of a persistent install:

  1. You can use the persistent pendrive to install Ubuntu to another computer.

  2. A persistent install takes up less space on the pendrive.

  3. You can reset the pendrive by overwriting the old casper-rw file with a new one.

  4. The install to pendrive takes less time.

  5. Slightly less wear on the drive.

Advantages of a Full install:

  1. You can update and upgrade.

  2. If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in the forums).

  3. No ugly startup / install screen.

  4. Better security, you can use full encryption

  5. You can use proprietary drivers.

  6. Swapfiles and partitions work and Hibernation can be enabled.

  7. Many persistent installs are limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot.

  8. More efficient usage of disk space. Does not require reserved space for persistence.

  9. Faster boot, no automatic disk checking or Try Ubuntu/Install Ubuntu screen.

  10. You can run VBox and use virtual machines.

  11. Generally faster boot than Live or Persistent USB's.

  12. More stable, better for day to day use. I have run Ubuntu off a flash drive for 5 years making only LTS upgrades.

Note that once booted, both methods run at about the same speed. If the computer has lots of RAM Ubuntu should run mainly in RAM and there will not be a big difference between running off internal HDD and USB3 flash drive f.

Full Install Method

A quick and easy method to flash a Full install to USB can be found here: Easy Full Install USB that Boots both BIOS and UEFI

A more traditional methods for creating a Full install USB from scratch can be found here: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step

Persistent install method

The following tools can be used to make a Persistent install USB: mkusb - https://help.ubuntu.com/community/mkusb, Rufus - https://rufus.ie/en/, Universal USB Installer - https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/, Ventoy - https://www.ventoy.net/en/index.html, YUMI- https://www.pendrivelinux.com/yumi-multiboot-usb-creator/. and others.

Score:1
jp flag

I would recommend the following tools to create a persistent live. If you do it

  • in Windows, you can use Rufus,
  • in Ubuntu, you can use mkusb.

See also this link.

There are instructions at the web sites that I link to.


The original poster, @DreamingOfSleep, was using Rufus, and was helped by the following screenshot, that shows where to set persistence.

enter image description here

Let us hope that it can help other users too.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.