Posts: 1,308
BitJam
Joined: 31 Aug 2009
#1
TL;DR: Label one of your partitions"antiX-Persist" and then use persist-makefs to create persistence files on that partition.

The LiveCD has persistence boot options in the main bootloader menu but it is not obvious how to use them. Normally (and with past antiX releases) you would have to specify a read-write persistence partition by typing in one of these boot options:
  • persistdev=
  • persistlabel=
  • persistuuid=
You would then make an /antiX directory on that partition and create rootfs and/or homefs files in that directory. The persist-makefs program will make that directory and create the files for you.

On the antiX-13 LiveCD, if we detect you are running from a LiveCD and if you have selected one of the persistence options but no persistence device was specified then we will assume persistlabel=antiX-Persist. This means, you just have to label a read-write partition"antiX-Persist" (for example with the gparted program) then run persist-makefs and choose that partition and then go ahead and use it to make a rootfs and/or homefs file. The next time you boot the antiX-13 LiveCD on that system, choose one of the persistence options from the main bootloader menu and it should just work.

I used this feature a lot when I was testing inside of VirtualBox. My tests usually involved making a new iso file and I would boot from that file in VirtualBox (btw VirtualBox obeys symlinks so I just have one generic"test-antiX.iso" symlink that I point to whatever iso I'm currently using). Inside of VirtualBox I set up a partition with the label"antiX-Persist" and ran persist-makefs to create the rootfs and homefs files on that partition.

Yes, this should be further automated but for non-beginners this should be very easy. Run gparted to simply label one of your paritions"antiX-Persist" and then run persist-makefs to create rootfs and/or homefs files on that partition.

PS:If you are booting from a LiveCD, we will first look at usb devices for the /antiX/linuxfs file (which contains the squashfs filesystem). This means that if you create an antiX LiveUSB and it is plugged in when you boot from an antiX LiveCD we will try to do the rest of the boot from the LiveUSB. If we do find a valid /antiX/linuxfs file on a usb partition then we will look in that same directory for the rootfs and/or homefs persistence files (if you selected persistence in the bootloader menu). This might be useful on older hardware that doesn't let you boot directly from a usb device.