Create persistent storage Live USB using Ubuntu, Linux Mint or Debian (UEFI,> 4GB persistent support)

When you create a regular Linux live USB, you can install software, download files, make changes to the system, and so on, but all these changes are lost after a reboot. Persistent real-time USB saves any changes you make to the real-time system, so those changes will be retained the next time you boot. This article explains how to use Ubuntu (and Kubuntu, Xubuntu, Ubuntu MATE, etc.), Linux Mint, Debian or Basic OS (it should work with any Debian or Ubuntu based Linux distribution), use Music library. You need to run Ubuntu, Linux Mint, or Debian to install mkusb (it seems you can install mkusb on other Linux distributions, but without the list of manually installed dependencies, it may or may not work).
If you are a Microsoft Windows user, you may want to read the following instead: Rufus: Create persistent storage with Ubuntu or Debian Live USB from Windows.mkusb can create persistent real-time drives that work in both UEFI and BIOS modes. The persistent storage partition created by mkusb uses casper-rw, so its size can exceed 4 GB, unlike some other similar tools.
This tool can not only create persistent storage real-time USB drives, but also regular bootable real-time USB for Linux distributions, wipe devices, and more. The only disadvantage of mkusb is its user interface, which uses Zenity and may cause some confusion, but otherwise the application is working well.
Some related articles on Linux Uprising may interest you:

  • bootiso: Easily from ISO to bootable USB drive from the command line (from Linux or Windows ISO)
  • How to use VeraCrypt to encrypt USB drives (compatible with Windows, macOS, and Linux)
  • How to Customize Ubuntu or Linux Mint Live ISO with Cubic

How to install using Ubuntu, Linux Mint or Debian and create persistent storage with USB

Installation Music library On Ubuntu, Linux Mint or Debian
In Ubuntu, Linux Mint, base OS and other Ubuntu-based Linux distributions or versions, you can use the official PPA to install mkusb:

sudo add-apt-repository ppa:mkusb/ppa
sudo apt update
sudo apt install --install-recommends mkusb mkusb-nox usb-pack-efi

For Debian, mkusb developers recommend using the same Ubuntu PPA. This is because mkusb is just a series of scripts that do not depend on a specific Ubuntu package version, so it can run on Debian (unlike most PPA repositories). Add mkusb PPA manually and install this tool in Debian:

echo "deb https://ppa.launchpad.net/mkusb/ppa/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/mkusb.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 54B8C8AC
sudo apt update
sudo apt install --install-recommends mkusb mkusb-nox usb-pack-efi

You can also install mkusb on other Linux distributions, but the installation may require manually installing some packages, etc. See mkusb Wiki page For how to do this.
2. Launch mkusb from the application menu. When launched, the application asks if you should run dus Version of mkusb (improved mkusb interface) or other version:mkusb dus

In this dialog, press YES Continue to use the “dus” version.
3. Next, you will see a mkusb window asking for a password at the top of the terminal window: mkusb terminal

Enter the password and press OK Then go on. Make sure you don’t close the terminal window, because mkusb will run the commands needed to create persistent storage in this window to start real-time USB!
4. mkusb will now display a list of options:Enable bootable USB

Select the first one- Install (make a boot device) -,then press OK Then go on.
5. Next, another list of options is displayed:Create Persistent Live USB Debian Ubuntu

To create persistent storage live USB, click on the third option- 'Persistent live' - only Debian and Ubuntu -And click OK.
6. mkusb will now ask you to choose an ISO or IMG file:Ubuntu File Selector

Select Ubuntu (including Kubuntu, Xubuntu, Ubuntu MATE, Lubuntu, Ubuntu Budgie, etc.), Debian or Linux Mint (Cinnamon, MATE or Xfce) image from the file system and click OK Then go on.
7. For the next step, mkusb will display a list of storage devices. Make sure to select a USB or other removable drive instead of an HDD / SSD in this step:mkusb select deviceDouble check that you have selected the correct target device (all data on the selected storage device will be lost!) And click OK Then go on.
8. mkusb will now display some persistent real-time drive settings:USB persistent setting

In this dialog you can enable upefi (From a package named usb-pack-efi, Used by mkusb), where Grub works in UEFI and BIOS modes. You can also enable msdos Option, which is helpful for some HP computers that cannot be booted with Grub and GPT. Please click OK after finishing.
9. It’s time to choose the percentage of persistent free space: USB persistent setting

This is the space available for the Linux distribution you will install on a USB stick. Drag the slider to the desired duration percentage and press OK Button. Don’t worry about the size of the persistent partition, mkusb does not have a maximum 4 GB persistent storage limit that exists in other bootable USB creators.
The remaining storage space on the USB drive will be used for the new usbdata The partition format is NTFS and can be accessed from Linux, Windows and macOS-use this partition to store data on USB drives to be accessed from other operating systems.
10. In the last step, you will see a confirmation screen:mkusb yes, continue

If you are sure you have selected the correct storage device and ISO file, you can now proceed to create a persistent real-time USB.
Select the line that displays Go (Yes, I want to continue) and press Go Buttons at the bottom of the window. After that, mkusb will start to create persistent storage Ubuntu, Linux Mint or Debian live USB.
Now boot the new active USB and select a Grub menu item that displays “persistent” (there will also be some non-persistent Grub menu items).
Inspired El Atareao

Source

Related Posts