I have installed Debian Live onto a USB drive and am wondering how to now create a persistence so that updates and other file are not wiped at reboot. I have looked at How to create a Debian Live USB with persistence, but it is talking about Debian on Linux.

I install Debian with the Universal USB Installer

  • @Fabby Which link? UUI only has three steps and the question does not mention your selected text. – Krii Oct 6 '15 at 21:24
  • Why don't you use your not yet persistent Debian to switch on persistence on your USB drive, then reboot? – Ferenc Wágner Oct 7 '15 at 5:47
  • @FerencWágner I have tried fdisk but am new to lui Linux and don't exactly know how to use it. – Krii Oct 8 '15 at 3:59

Check out the Debian Live manual, especially the Using the space left on a USB stick and the Persistence sections, which explain creating a new partition and using it for persistence. Above links for the stable version in English, other combinations are also available from the project page (now redirect to the new homepage).

Main points:

  • a special boot parameter to be specified at boot time: persistence

  • the volume label for overlays must be persistence but it will be ignored unless it contains in its root a file named persistence.conf

  • to make /home persistent, persistence.conf could simply contain:

  • neither /lib, /lib/live (or any of their sub-directories) nor / can be made persistent using custom mounts. As a workaround for this limitation you can add / union to your persistence.conf file to achieve full persistence.

  • Alright. I've managed to create another working (fs=ext2;label=live-rw) partition but it doesn't load on boot, even with persistent added to the boot parameters. If I want to use the file system, I have to mount it manually every time. Is there a way to load it on boot to a specified directory? – Krii Oct 9 '15 at 20:08
  • Persistence is not exactly like an extra mount, but may look like one. Check out man persistence.conf. You'll also have to change your FS label (see above), consider e2label. – Ferenc Wágner Oct 10 '15 at 8:41
  • Yes it works! Finally! – Krii Oct 10 '15 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.