Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Persistent Linux Live USB: Save Files & Settings

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to create a persistent Linux live USB drive, so your files, installed programs, and system settings survive a reboot. Instead of a fresh session every time, your changes are stored in a dedicated partition on the same USB stick. You'll need a USB drive (at least 8GB recommended, 16GB+ for comfort), a Windows or Linux computer, and the Linux ISO you want to use.

What You'll Need

  • A USB flash drive (8GB minimum, 16GB or larger recommended). All data on it will be erased.
  • A Linux distribution ISO file (e.g., Ubuntu, Linux Mint, Fedora). Download it from the official website.
  • A computer with an internet connection to download the tools.
  • Rufus (Windows) or the built-in dd command (Linux/macOS) to create the drive.
  • Optional: A second USB drive or a partition on your main disk to back up important files before starting.

Step-by-Step

  1. Back up your USB drive. Plug it in and copy any files you want to keep to your computer. The process will wipe it completely.
  2. Download the Linux ISO. Go to the official site of your chosen distribution (e.g., ubuntu.com for Ubuntu) and download the desktop ISO file. Verify the checksum if the site provides one.
  3. Download Rufus (Windows only). If you're on Windows, get the portable version of Rufus from its official site. No installation needed—just run the .exe. On Linux, you'll use the terminal.
  4. Open Rufus and select your USB drive. Launch Rufus. Under "Device," choose your USB drive from the dropdown. Be absolutely certain you pick the right one—everything on it will be erased.
  5. Select the ISO file. Click "SELECT" next to "Boot selection" and browse to the Linux ISO you downloaded. Rufus will automatically detect the partition scheme (usually GPT for UEFI, but MBR also works for legacy BIOS).
  6. Set the persistent partition size. In the "Persistent partition" section (or "Persistent storage" in newer versions), choose the size you want. This is the space that will hold your files and settings. For example, if you have a 16GB USB and select 8GB, the remaining 8GB will be the live system, and 8GB for your data. A minimum of 2GB is recommended, but 4GB or more is better if you plan to install software.
  7. Start the creation. Click "START." Rufus may warn you about the ISO needing a special configuration—accept the defaults. It will then format the drive and copy the system. This can take 5–15 minutes depending on the USB speed.
  8. For Linux/macOS users: Use the terminal. Open a terminal and identify your USB drive with lsblk (or diskutil list on macOS). Unmount it if it's mounted, then use dd to write the ISO: sudo dd if=/path/to/linux.iso of=/dev/sdX bs=4M status=progress (replace sdX with your device, e.g., sdb). This creates a non-persistent live USB. To add persistence, you'll need to partition the drive afterward—this is more complex and not covered in detail here; using Rufus on Windows is the simplest method.
  9. Boot from the USB. Restart your computer and enter the boot menu (usually by pressing F12, ESC, or F2 during startup). Select your USB drive. If your computer is UEFI, you may see two options—choose the one with "UEFI" in the name.
  10. Test persistence. Once the live system boots, create a test file on the desktop or change the wallpaper. Reboot and boot from the USB again. Your file and settings should still be there.

Common Mistakes

  • Selecting the wrong USB drive. This is the most destructive mistake—you can wipe your main hard drive. Always double-check the drive letter and size in Rufus.
  • Not setting a persistent partition size. If you skip this, you'll get a standard live USB with no persistence. The setting is easy to miss in older Rufus versions.
  • Using a USB 2.0 drive. It will work, but booting and saving files will be painfully slow. Use USB 3.0 or better for a decent experience.
  • Assuming persistence works with every distro. Some distributions (like Fedora) require extra steps or don't support persistence out of the box with Rufus. Check the distro's documentation.
  • Ignoring the ISO checksum. A corrupted download can cause boot failures. Verify the SHA256 checksum before writing.

Tips

  • Use a high-quality USB drive. Cheap drives fail faster and are slower. Look for a reputable brand with good read/write speeds.
  • Keep the persistent partition smaller than the drive's capacity. Leave at least 1GB free for the live system's temporary files.
  • Install updates and software once, then reboot. This reduces wear on the USB and ensures the system is stable before you add more.
  • Back up your persistent data regularly. The USB can fail or be lost. Copy important files to your main computer or cloud storage.
  • Try a lighter distribution if it's slow. If your USB is sluggish, consider a lightweight distro like Xubuntu or Lubuntu.
  • Use a separate partition for data. Some advanced users create a third partition (e.g., ext4 or NTFS) to store files separately from the system's persistent overlay. This makes it easier to access files from other operating systems.

Troubleshooting

  • The USB won't boot. Check your BIOS/UEFI boot order. Disable Secure Boot if it's enabled—some Linux distros don't support it. Try the other boot option (UEFI vs. Legacy).
  • Persistence doesn't save. Recreate the USB with a larger persistent partition. Ensure you selected the right size in Rufus. Also, some distros need a specific partition label (e.g., "casper-rw" for Ubuntu). Rufus handles this automatically, but if you used a manual method, verify the label.
  • Boot takes forever. The USB might be slow or the ISO is corrupted. Try a different USB port (preferably USB 3.0). If the issue persists, redownload the ISO.
  • Error messages during boot. Common ones include "No bootable device" or "Kernel panic." This usually indicates a bad write or an incompatible ISO. Recreate the USB with Rufus, ensuring you use the correct partition scheme.
  • Can't save files larger than the persistent partition. That's expected—the persistent partition has a fixed size. If you run out of space, you'll need to recreate the USB with a larger partition.
  • USB drive becomes read-only. This can happen if the drive is failing or the file system is corrupted. Try reformatting the whole drive with Rufus or a disk utility, then recreate the persistent USB.

Frequently Asked Questions

Can I use a persistent USB on any computer?

Yes, as long as the computer can boot from USB. However, if the hardware is very different (e.g., NVIDIA graphics vs. Intel), drivers may not be present. The live system usually includes generic drivers, but some features might not work.

Will persistence slow down my USB?

Yes, saving files and settings writes to the USB, which is slower than an internal SSD. The more you write, the slower it may feel. Using a fast USB 3.0 drive minimizes this.

Can I install software on a persistent USB?

Yes, that's the main benefit. Software installs are saved to the persistent partition, so they survive reboots. However, large applications may fill up the partition quickly.

How much persistent storage do I need?

For basic file saving and settings, 2GB is enough. For installing software or storing media, 8GB or more is recommended. The more you allocate, the less space remains for the live system itself.

Can I access the persistent files from Windows?

Not directly. The persistent partition is usually in a Linux file system (ext4). Windows can't read it without third-party tools. You can, however, create a separate NTFS or FAT32 partition for files you want to share.

Does this work with macOS?

The method described using Rufus is Windows-only. On macOS, you can use the dd command, but persistence is harder to set up. It's often easier to use a tool like balenaEtcher (which doesn't support persistence) or create the persistent USB on a Linux machine.