20

August
2024

Updated documentation for persistent changes

I noticed that the documentation for persistent changes was outdated, so I've updated it to be more accurate. Here is a copy of the text

Persistent changes

Slax, when booted from read-only media such as CD/DVD, stores all system changes in memory only. These changes are lost upon reboot. However, when Slax is booted from writable media like a USB drive, all changes made to the operating system are saved and restored on subsequent boots.

If the writable media uses a FAT filesystem (which is common for USB flash drives), Slax saves persistent changes using a series of files stored within subfolders of the /slax/changes/ directory on your boot device. These subfolders are named sequentially (e.g., /slax/changes/1/, /slax/changes/2/, etc.), each representing a different saved session.

Maximum size of persistent changes on FAT filesystem is 16GB by default, and can be increased by specifying boot parameter perchsize, for example perchsize=64GB. Once the maximum size is increased, the boot parameter does not need to be specified next time.

Storage format for changes on FAT filesystem uses DynFileFS. If the writable media uses a native Linux filesystem such as ext4, the subfolders will contain all modified files directly, without any size limitations.

To access the contents of the changes stored in any particular session on FAT fs, you can use dynfilefs binary, which can be found in /run/initramfs/bin/ directory. This requires two mounting steps.

First, while running Slax, use the following command:

/run/initramfs/bin/@mount.dynfilefs -f /path/to/changes.dat -m /mnt
mount -o loop /mnt/virtual.dat /mnt

The first command will mount the changes as a single virtual file at /mnt/virtual.dat, which acts as a loop device with an XFS filesystem, and the second command mounts the loop device to reveal the actual files. After mounting, you can access the changed files in the /mnt directory. When you're done, remember to unmount twice — once for each mount operation — to fully unmount the changes properly.

User comments
mood gummies 2024-09-15 01:07

Trying mood gummies has been somewhat the journey. As someone keen on unpretentious remedies, delving into the coterie of hemp has been eye-opening. From THC tinctures to hemp seeds and protein pulverize, I've explored a brand of goods. Regard for the misunderstanding neighbourhood hemp, researching and consulting experts have helped navigate this burgeoning field. Overall, my experience with hemp has been favourable, gift holistic well-being solutions and sustainable choices.

ductless system 2024-09-20 04:58

I recently cast-off this area to lay one's hands on ductless system , and I couldn’t be happier with the results. The search was straightforward, and I appreciated the particularized profiles and bloke reviews for each contractor. It ???? comparing options and reading round other clients' experiences easy. The contractors I contacted were willing, trained, and offered competitive quotes. This site is a fantastic resource for anyone needing reliable place form services. Warmly recommended for its user-friendly interface and eminence listings!

Nags. 2024-09-25 14:49

Goodness Tomas, why the bloody *beep* is it not possible to from=UUID=/dev/disk/by-uuid/ or by-id ? Currently looking into chroot'ing over to a ext4-partition after booting from a fat32 (uefi). Slax is partally wonderful, but *this* issue really nags.