A Linux live USB drive is normally a blank slate each time you boot it. You can boot it up, install programs, save files, and change settings. But, as soon as you reboot, all your changes are wiped away and you’re back to a fresh system. This can be useful, but if you want a system that picks up where you left off, you can create a live USB with persistent storage.
How Persistent Storage Works
When you create a USB drive with persistence, you’ll allocate up to 4 GB of the USB drive for a persistent overlay file. Any changes you make to the system—for example, saving a file to your desktop, changing the settings in an application, or installing a program—will be stored in the overlay file. Whenever you boot the USB drive on any computer, your files, settings, and installed programs will be there.
This is an ideal feature if you want to keep a live Linux system on a USB drive anduse on different PCs. You won’t have to set upyour system up from scratch each time you boot. Youdon’t need persistenceif you’re just using a USB drive to install Ubuntu and then running it from your hard drive afterward.
There are a few limitations. You can’t modify system files, like the kernel. You can’t perform major system upgrades. You also can’t install hardware drivers. However, you can install most applications. You can even update most installed applications, so you can be sure your persistent USB drive has the latest version ofthe web browser you prefer.
Persistence doesn’t work with every Linux distribution. We’ve tested it with the latest versions of Ubuntu—Ubuntu 18.04 LTS and Ubuntu 19.04—and it works. It should also work with Ubuntu-based Linux distributions. In the past, we had luck with Fedora as well. Just download the appropriate ISO file and follow the instructions below.
Update: Rufus, which we recommend for easily creating live USB drives on Windows, now supports persistent storage in its latest versions. Previous versions did not, necessitating the below process. Give Rufus a try if you’re using Windows and want to avoid the Linux command line process below.
RELATED: How to Create a Bootable Linux USB Flash Drive, the Easy Way
How to Make a Persistent Ubuntu USB Drive on Ubuntu
You’ll need a computer already running Ubuntu to perform this process. You’ll also need a USB drive with enough storage capacity to set up persistence. We used a 16 GB drive, but an 8 GB drive would have worked as well.The bigger the drive, the more persistent storage you can have.
The grub, boot and Ubuntu partitions take up less than 2 GB. The remainder of the space on the USB drive will be used for the casper-rw
and the usbdata
partitions.
The casper-rw
partition is used for persistent storage. For example, software you install and settings files will be stored here.
The usbdata
partition will be formatted with the NTFS file system. It will be accessible to Linux, Windows, and macOS. This partition is also available from within the live Ubuntu on the USB drive. This means any files copied to the usbdata
partition from another computer will be accessible to your live Ubuntu.
In other words, the usbdata
partition acts as a “shared folder” between your live Ubuntu and any other computer you plug your USB drive into. That’s pretty cool.
The below screenshot shows how the resulting partitions looked on our 16 GB drive.
Although a 16 GB USB drive was used for researching this article, an 8 GB drive would work just as well. It would simply have less storage.
First, you’ll have to download the Ubuntu ISO file you want to place on the USB drive.
Note: If you’re creating a live USB drive from a live disk, ensure Ubuntu’s Universe repository is enabled before you continue. You can do that by running the following command:
sudo add-apt-repository universe
Second, the tool you’re going to use is called mkusb
. It is not part of the standard Ubuntu installation. You will need to install it. To do so, enter the following three commands. The first command adds themkusb
repository so that Ubuntu knows where to install mkusb
from.
sudo add-apt-repository ppa:mkusb/ppa
The next command forces Ubuntu to refresh its package lists for the registered repositories.
sudo apt-get update
We can now proceed to install the mkusb
package, with this command:
sudo apt install --install-recommends mkusb mkusb-nox usb-pack-efi
The mkusb
program does a terrific job of identifying USB drives. That’s great, but there’s nothing like knowing for yourself. When mkusb
tells you it is going to completely wipe a particular drive, you can be sure it’s the USB drive you are planning on using and not another device on your system.
In a terminal window, type the following command. The lsblk
command lists the block devices on your computer. Each drive has a block device associated with it.
lsblk
The output from lsblk
will show the drives currently connected to your computer. There is one internal hard drive on this machine called sda
and there is one partition on it called sda1
.
Plug in your USB drive and use the lsblk
command once more. The output from lsblk
will have changed. The USB drive will now be listed in the output.
There is a new entry called sdb
in the list. It has one partition called sdb1
. That’s the USB drive.
If you have more than one drive in your computer already, the name of your USB drive will be different. Regardless of how it is named, the device that was not in the previous lsblk
listing mustbe the USB drive.
Once you know which device your USB drive is, you can launch mkusb
. Press the Super (Windows) key and type “mkusb”. The mkusb
icon will appear. Click the icon or press Enter.
A dialog will ask you whether you wish to run the dus (Do USB Stuff) version of mkusb
. Click the “Yes” button.
A terminal window with a black background will appear and a dialog box will prompt you for your password. Enter your password and click the “OK” button.
Warning: This process will wipe the contents of the USB drive!
Click “OK” in the warning dialog to acknowledge you understand this.
Click the “Install (make a boot device)” entry in the list and click the “OK” button.
Select the “‘Persistent live’ – only Debian and Ubuntu” entry in the list and click the “OK” button.
A file browser dialog will appear. Browse to the Ubuntu ISO file you downloaded, select it, and click the green “OK” button.
In the screenshot below, we’re selecting the Ubuntu 19.04 ISO image from the Downloads folder.
You’ll see a list of the USB drives connected to your computer. This allows you to select the appropriate USB drive.
There was only one USB drive connected to the test machine used for this article. As we confirmed above, it is called sdb
. We’ve confirmed that’s the USB drive we want to use so we can proceed with confidence. Click the “OK” button.
When the dialog shown below appears, select the “usb-pack-efi (default grub from ISO file)” entry in the list and click the “OK” button.
You have one more option to choose. You can select what percentage of the storage space is for persistent storage in the casper-rw
partition. The remainder will be used for theusbdata
partition, which has the NTFS file system and can also be accessed from Windows PCs and Macs.
If you’re happy to have the available space on the USB drive shared equally between these two partitions, leave the slider at its default value and click the “OK” button.
Now, we just have to tellmkusb
that we’re happy with all of our choices and that it should proceed.
To be clear, this is the last point at which you can back out. If you’re certain you wish to proceed, select the “Go” radio button and click the “Go” button.
A progress bar shows you how close the creation process is to completion.
The final stage of the creation is to flush the file system buffers to the USB drive. You are also advised to wait until you see the phrase “Work done”. That will indicate the process has completed.
When the process has completed you will see a dialog with the phrase “Work done” highlighted in green. Click the “OK” button. If any other dialogs appear, close them by clicking on the “Quit” button.
A few more lines of output will scroll through the terminal window. You will be prompted to press “Enter” when you are ready.
When you press “Enter,” the terminal window will close.You can now either reboot your computer and boot from the USB drive or unplug the USB drive, take it to another computer, and boot it there.
RELATED: How to Boot Your Computer From a Disc or USB Drive
How to Make a Persistent Ubuntu USB Drive onWindows
Update: We’ve been told the below method (using Linux Live USB Creator) no longer works with the latest versions of Ubuntu. You’ll need to use the above method instead.
You’ll need a large enough USB drive to set up persistence. Ubuntu itself claims it needs 2 GB of storage on the USB drive, and you’ll also need extra space for the persistent storage. So, if you have a 4 GB USB drive, you can only have 2 GB of persistent storage. To have the maximum amount of persistent storage, you’ll need a USB drive of at least 6 GB in size.
Unfortunately, the Rufus tool that Ubuntu officially recommends for creating live Ubuntu USB drives on Windows doesn’t offer support for creating systems with persistent storage. While we recommend using Rufus to create most Ubuntu live USB drives, we’ll have to use a different tool for this particular job. (Update: The latest versions of Rufus now support persistent storage!)
Download the Ubuntu ISO file you want to place on the USB drive and the Linux Live USB Creator application.
Insert the USB drive you want to use into your computer’s USB port and launch the “LiLi USB Creator” application you just installed.
Select the USB drive you want to use in the “Step 1: Choose Your Key” box.
Provide your downloaded Ubuntu ISO file. Click the “ISO / IMG / ZIP” button under “Step 2: Choose a Source”, browse to the .ISO file on your computer, and double-click it.
Use the options in the “Step 3: Persistence” section to select how much space youwant to use for persistent storage on the USB drive. Drag the slider all the way to the right to select the maximum amount of storage.
You’ve now configured all the settings you need to configure. To create your live USB drive with persistent storage, click the lightning icon under “Step 5: Create”.
Give the tool some time to create the drive. When the process is done, you’ll see a “Your LinuxLive key is now up and ready!” message. You can now either reboot your computer and boot from the USB drive or unplug the USB drive, take it toanother computer, and boot it there.
To confirm that persistent storage is working properly, boot the USB drive and create a folder on the desktop, or save a file to the desktop. Then, shut down your system and boot the live USB drive again. You should see the folder or file you placed on the desktop.
READ NEXT
- › How to Create a Bootable Linux USB Flash Drive, the Easy Way
- › How to Burn an ISO File to a USB Drive in Linux
- › Recover Data Like a Forensics Expert Using an Ubuntu Live CD
- › How to Get Nero’s Best Features with Free Alternatives
- › Diagnose PC Hardware Problems with an Ubuntu Live CD
- › Move Files from a Failing PC with an Ubuntu Live CD
- › How to Boot Multiple Linux Distributions With Ventoy
- › How to Trim a Video on Windows 11
FAQs
How do I make Ubuntu USB live persistent? ›
- select radio to "ISO"
- select "ubuntu-*.iso" file.
- set persistent size e.g. [2048] MB.
- push OK.
- long long long time wait...
- done.
- reboot.
- Open GParted, select the USB drive and unmount it.
- Shrink the FAT32 partiition to a minimum.
- Add a new ext4 partition for persistence.
- Label the ext4 partition "casper-rw".
- In the remaining space create a NTFS partition.
- Apply all Operations.
The persistence allows you to keep your preferences and data even after reboot. The data are stored in a special file called casper-rw (for Ubuntu) and overlay-USBLABEL-UUID (for Fedora). This is a completely transparent process for the user.
What is persistent storage in live USB? ›A persistent Live USB allows its users to save data changes back to the USB storage device instead of leaving the information in the system Random Access Memory (RAM). Ideally, in this section, a separate Persistent storage space (persistent overlay) is used with a compressed Live Linux OS.
Is Ubuntu USB persistent? ›That's because, by default, the Ubuntu live disk doesn't have persistent storage. In this guide, we'll show you how to create an Ubuntu live USB with persistent storage so that no matter what PC you're on, and no matter how many times your USB stick is rebooted, you'll always have your files.
Does Ubuntu live USB Save changes? ›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.
How make Linux USB live? ›- Download the Ubuntu ISO File. Connect your USB key. Visit ubuntu.com/downloads and click on Ubuntu Desktop. ...
- Merge ISO and USB key. Open Rufus or the Tool you want to use to merge the ISO File to the USB Key. Choose the downloaded Ubuntu ISO and the USB Drive you want to use.
Unfortunately, Rufus is not available for Linux; it is only exclusive to Windows.
How do I turn on persistent storage? ›To configure the Persistent Storage, choose Applications ▸ Tails ▸ Configure persistent volume. Restart Tails to apply the changes after selecting or deselecting one or several features.
What is persistence mode in Linux? ›The persistence allows you to keep your preferences and data even after reboot. The data are stored in a special file called casper-rw (for Ubuntu) and overlay-USBLABEL-UUID (for Fedora). This is a completely transparent process for the user. Usually, 300 MB are enough to install some software but you can use more.
What is persistent storage Linux? ›
Persistent storage is any data storage device that retains data after power to that device is shut off. It is also sometimes referred to as nonvolatile storage.
What is a persistent partition size? ›Persistent partition size is the size which will persistent during boots via USB. Partition scheme is the partition scheme which is MBR by default. Target system is the type of BIOS.
Does Rufus create a persistent USB? ›Starting with Rufus version 3.7, the application has finalized the persistent partition support for Debian and Ubuntu, allowing users to create persistent storage live USBs of recent Debian Live ISOs, and Ubuntu Live ISOs created after 1st of August, 2019.
Is there a live version of Ubuntu? ›With a live Ubuntu, you can do almost anything you can from an installed Ubuntu: Safely browse the internet without storing any history or cookie data. Access files and edit files stored on your computer or USB stick. Create new office suite documents and save them remotely.
Can I install Ubuntu in SSD? ›The great thing about installing an Ubuntu OS on an external SSD drive is that, you can easily use and switch between both Windows and Ubuntu without sacrificing any storage space. What is more, you can now carry this SSD drive wherever you want, and plug it into any computer.
How do I create a persistent live USB in Linux Mint? ›- Step 1: Launch Rufus. ...
- Step 2: Select the external USB drive to create the bootable drive with persistence. ...
- Step 3: Choose the Linux Mint ISO. ...
- Step 4: Select the persistence storage.
Just put a persistence data file in the 1st partition and tell Ventoy by the json configuration, and that's all. You can put many different data files for different iso files at a time. You can also share a data file between different iso files as long as it can be supported by the distros.
How do I use Mkusb? ›- Launch mkusb from dash on Ubuntu.
- Run mkusb version dus.
- Enter sudo password to run mkusb.
- Click Ok to to overwrite target usb device.
- make boot device using mkusb.
- Choose Persistent live - only Debian and Ubuntu option.
- choose iso file to write to usb.
A Linux live USB drive is normally a blank slate each time you boot it. You can boot it up, install programs, save files, and change settings.
Can a bootable USB be used for storage? ›Can we use the bootable USB drive as a storage device? Yes, a bootable USB could be repurposed as a storage device although milage may vary based on the nature of the distribution installed on the bootable usb drive (for example balenaOS has a FAT32 boot partition that is easy to manipulate to add files to, etc).
What is persistent mode? ›
Persistence Mode is the term for a user-settable driver property that keeps a target GPU initialized even when no clients are connected to it.
What is the best Linux to run from USB? ›- Linux Lite. Best option for accelerating modern computers. Today's Best Deals. ...
- Peppermint OS. Best distro for netbooks. Today's Best Deals. ...
- Porteus. Best distro for advanced users. Today's Best Deals. ...
- Puppy Linux. Best distro for underpowered machines. ...
- Slax. Best distro for tweakers.
In Windows, Mac OS, or other Linux distributions
Download Etcher, install it and run it. Click Select image and select your ISO file. Click Select drive and select your USB stick. Click Flash!.
- Now, click on Choose Image and browse for the ISO that you want to flash.
- After selecting the ISO, click on Next.
- Plug-in the USB drive and select the target device on Popsicle.
- Finally, click on the Write button and wait for 5-15 minutes until the flashing is done.
- Voila!
Rufus is not available for Linux but there are plenty of alternatives that runs on Linux with similar functionality. The best Linux alternative is UNetbootin, which is both free and Open Source.
How do I make a USB stick bootable? ›- Insert a USB flash drive into a running computer.
- Open a Command Prompt window as an administrator.
- Type diskpart .
- In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk , and then click ENTER.
Persistent storage also comes in the form of file, block or object storage.
Why do we need persistent storage? ›Persistence storage is necessary to be able to keep all our files and data for later use. For instance, a hard disk drive is a perfect example of persistent storage, as it allows us to permanently store a variety of data.
How do you unlock persistent storage Tails? ›Unlock the Persistent Storage
In the left pane, click on the device corresponding to your Tails USB stick. In the right pane, click on the partition labeled as TailsData LUKS. to unlock the Persistent Storage. Enter the passphrase of the Persistent Storage and click Unlock again.
- Download the Ubuntu ISO File. Connect your USB key. Visit ubuntu.com/downloads and click on Ubuntu Desktop. ...
- Merge ISO and USB key. Open Rufus or the Tool you want to use to merge the ISO File to the USB Key. Choose the downloaded Ubuntu ISO and the USB Drive you want to use.
What is a persistent partition? ›
Persistent partition size is the size which will persistent during boots via USB. Partition scheme is the partition scheme which is MBR by default. Target system is the type of BIOS.
What is persistent storage? ›Persistent storage is any data storage device that retains data after power to that device is shut off. It is also sometimes referred to as nonvolatile storage.
What is Mkusb? ›mkusb is a simple, safe tool to create a bootable drive from an iso image or a compressed image file. The bootable drive is a mass storage device: A USB drive, an internal drive, or an eSATA drive.
Does Rufus work on Ubuntu? ›Unfortunately, Rufus is not available for Linux; it is only exclusive to Windows. So, most of us who have used it on Windows, look for Rufus alternatives on Linux.
What is the best Linux to run from USB? ›- Linux Lite. Best option for accelerating modern computers. Today's Best Deals. ...
- Peppermint OS. Best distro for netbooks. Today's Best Deals. ...
- Porteus. Best distro for advanced users. Today's Best Deals. ...
- Puppy Linux. Best distro for underpowered machines. ...
- Slax. Best distro for tweakers.
In Windows, Mac OS, or other Linux distributions
Download Etcher, install it and run it. Click Select image and select your ISO file. Click Select drive and select your USB stick. Click Flash!.
Configuring the Persistent Storage. To configure the Persistent Storage, choose Applications ▸ Tails ▸ Configure persistent volume. Restart Tails to apply the changes after selecting or deselecting one or several features.
What is the difference between live USB and bootable USB? ›Well a live usb is nothing but this kind of storage contains app, softs, and many things that can run & shared to someone without installing in host, but a bootable usb is different coz it performs work when we starts our machine. It allow host to perform action/changes in boot menu or in host Os.
What is persistence mode Linux? ›The persistence allows you to keep your preferences and data even after reboot. The data are stored in a special file called casper-rw (for Ubuntu) and overlay-USBLABEL-UUID (for Fedora).
What are 3 types of persistent storage? ›Persistent storage also comes in the form of file, block or object storage.
Why is RAM not suitable for persistent storage? ›
The Volatile is the main storage in the computer systems. PERSISTENT STORAGE works when the power is misplaced, it is also called as Non-Volatile Memory. RAM is under VOLATILE feature it is not suitable for PERSISTENT STORAGE and it can be set like file, block and object storage.
Why is there a need for persistent storage? ›Persistence storage is necessary to be able to keep all our files and data for later use. For instance, a hard disk drive is a perfect example of persistent storage, as it allows us to permanently store a variety of data.
How do I get Mkusb on Ubuntu? ›- Launch mkusb from dash on Ubuntu.
- Run mkusb version dus.
- Enter sudo password to run mkusb.
- Click Ok to to overwrite target usb device.
- make boot device using mkusb.
- Choose Persistent live - only Debian and Ubuntu option.
- choose iso file to write to usb.
Provide your downloaded Ubuntu ISO file. Click the “ISO / IMG / ZIP” button under “Step 2: Choose a Source”, browse to the . ISO file on your computer, and double-click it. Use the options in the “Step 3: Persistence” section to select how much space you want to use for persistent storage on the USB drive.
What is Mkusb-plug? ›mkusb-plug is a wrapper shellscript for the plug-in method using. xorriso-dd-target to indentify the correct target device, which is a very safe way to identify the target device, and creates input for mkusb-sedd 'sed and dd', which is developed from mkusb-minp.