Alternatives to Debian Live for Persistent USB Systems

debianlive-usbpersistence

For the last six years, my main workstation has consisted of a pen drive running the Debian Live images with a persistent partition. The images were simple, brilliant and reliable, and the online web builder for images was perfect for my use.

Recently I was looking to update my core system and discovered that Debian Live has undergone an "abrupt end." Both that article and other mails mention alternatives; some imply that live.debian.net is still active, but it just redirects to the main Debian wiki, which in turn only refers to the official CD images. Another article mentions that vmdebootstrap is being updated to be the replacement for live-build and other Debian Live tools, but I can't find any useful documentation on that either. And no one seems to be running a web image builder any more.

Can someone point me to alternatives? In an ideal world, there would be some straightforward workflow to produce custom images similar to those that Debian Live used to make possible, and with the kernel options that it supported (some of which are very useful in a persistent USB situation). Is that possible in Debian any more? Can someone point me to a sequence of steps for that?

Best Answer

Alternatives to Debian Live for persistent Debian system on USB

You can create a debian Live USB with persistence using the mkusb tool :

How to install mkusb in Debian

These methods are tested in Debian Wheezy. It contains an instruction to install the ppa 'manually'. There is also an alternative to download the file(s) and check the download manually.

The mkusb is tested and work fine on debian jessie and debian Stretch. There is no dependencies problem.

To install mkusb , add the following line to your /etc/apt/sources.list

deb http://ppa.launchpad.net/mkusb/ppa/ubuntu xenial main

Import the gpg key :

apt-key adv --keyserver keyserver.ubuntu.com --recv 54B8C8AC

Update and install mkusb:

apt-get update
apt-get install mkusb

The command line tool is mkusb-nox (txt mode) , the GUI is mkusb.


The are a few steps to create a Debian Live Persistent USB using the mkusb GUI :

Download the Debian Live ISO from the official website.

Run mkusb from the terminal. Choose d option then validate:

d:  dus , guidus, mkusb-dus    - New, easy to use
  1. Choose : Install (make a boot device)
  2. Choose p : 'Persistent live' only Debian and Ubuntu
  3. Select your debian.iso file and validate
  4. Select your USB device
  5. Select upefi : usb-pack-efi (default grub from ISO file) then validate
  6. Choose the percentage reserved to your persistent partition then validate
  7. Select GO and validate (Yes , i want to go ahead), your USB will be formatted and partitioned

The 5 partitions :

partition 1 - ntfs 'usbdata'
partition 2 - bios_grub
partition 3 - fat32 boot,efi
partition 4 - iso9660 - cloned system
partition 5 - ext4 - 'casper-rw'

You can reboot into your Persistent USB when you receive the following message :

 Done :-) 
 The target device is ready to use.
Related Question