Erase Station can load more programs every time it starts. Put them in the pmagic/pmodules folder on your Erase Station USB drive. You can also install programs while Erase Station runs and keep them with Save Session.

Where the Files Go

  • A USB drive made with the Erase Station USB Installer or with Rufus in ISO Image mode: the pmagic/pmodules folder at the top of the drive. On the ARM version, make the folder if it is not there.
  • A Ventoy drive (PC version): a pmagic/pmodules folder at the top of the data partition, the one that holds the ISO. Bundles and Save Session work from there.
  • An ISO file on a hard drive (a frugal install): a pmagic/pmodules folder at the top of the partition that holds the ISO.
  • A CD or DVD: add the files to the ISO and burn it again. How to remaster the ISO shows how.
  • A network start: the PXE page shows where the files go on the server.

A drive written with dd or balenaEtcher is an exact copy of the ISO and cannot be changed. Use one of the ways above instead.

What Can Go in the Folder

  • Bundles (.sqfm): a compressed set of files, laid over Erase Station’s own files at start. When Erase Station runs from RAM, its bundles are copied into memory with it. Ready-made bundles for LibreOffice, printing, GIMP, and TestDisk with PhotoRec are at partedmagic.com/bundles.
  • Slackware packages (.txz and .tgz): installed at start with installpkg. Erase Station for PCs is built from Slackware-current, so its packages fit best.
  • Archives (.xz): a tar archive compressed with xz, unpacked over / at start.
  • Scripts: put them in pmagic/pmodules/scripts. Each one runs near the end of the start, after the network has started.

These go on the boot menu’s kernel line:

  • pmodules=no starts Erase Station without the bundles, packages and saved session in the folder. Scripts still run.
  • scripts=no skips the scripts.
  • oload=NAME also loads a bundle from the pmagic/optionals folder whose name contains NAME. Separate two or more names with colons.

Install a Program While Erase Station Runs

Package Manager, on the Desktop, installs Slackware-current packages over the internet. To install a package file you already have, or to load a bundle without restarting, open a terminal and run the line for it:

installpkg /path/to/thepackage.txz
pmagic_load_sqfm /path/to/thebundle.sqfm

Erase Station runs in memory, so what you install is gone after a restart unless you save it.

Keep Your Changes with Save Session

Save Session, in the Settings menu, saves what you changed during this session, the programs you installed and your settings included. It writes them to pmagic/pmodules/099-saved-session.sqfm on the USB drive, and Erase Station loads them at every start. Each save adds to the one before it. Save Session needs a USB drive it can write to, such as one made with the Erase Station USB Installer, Rufus or Ventoy.

Making Your Own Bundle

A bundle is a squashfs file of the files you want, laid out as they sit under /. For example, a bundle of a program named foobar and its settings file:

mkdir -p foobar/squashfs-root/etc foobar/squashfs-root/usr/bin
cp /etc/foobar.conf foobar/squashfs-root/etc/
cp /usr/bin/foobar foobar/squashfs-root/usr/bin/
mksquashfs foobar/squashfs-root foobar.sqfm -comp xz -b 1M -noappend

To look inside a bundle, mount it:

mount -t squashfs -o ro /path/to/mybundle.sqfm /mnt

To change a bundle, unpack it, make your changes in the squashfs-root folder it makes, and pack it again:

unsquashfs /path/to/mybundle.sqfm
mksquashfs squashfs-root /path/to/mybundle.sqfm -comp xz -b 1M -noappend

For an .xz archive instead, run tar inside the folder that holds the files, so they unpack in the right place under /:

cd foobar/squashfs-root
tar cJf ../../foobar.xz *

On the ARM Version

  • Bundles have to be made for ARM. A bundle made for PCs is refused at start.
  • .deb packages for Ubuntu 26.04 (arm64) can go in pmagic/pmodules. Erase Station installs them all together with dpkg at start, so they can depend on each other.
  • Slackware packages (.txz and .tgz) are unpacked and their install script is run.
  • Package Manager and pmagic_load_sqfm are on the PC version only.