Advanced Tasks

Performing a Persistent Write Operation on NeoLinux 4.x Devices

NeoLinux 4.x devices use three related file systems which are mounted as follows:

/

/writable/.fs/org

Normally a user will perform all work under / or /writable, which are mounted as readable and writable when the system starts up. The file system of /writable is used for storing persistent data, where files can be created, modified or removed, and the changes will not be lost when the device reboots or shuts down.

However, the file system of / works in a different way. Any modifications made in this file system are temporary and will not be transferred to the actual disk, even though it is writable. When the device reboots or shuts down the changes will be lost and the file system of

/will revert to its original state.

Sometimes you may need to perform a persistent write to / in order to run commands, utilities, scripts, etc. which require changes to be saved. This can be achieved using the third file system /.fs/org, which is mounted from the same source as /. It is possible to create, modify or remove files persistently in /.fs/org, but as it is mounted as read only you need to remount it to be writable before making any changes to the file system, then reboot the device for the changes to take effect.

The Command sub-task in the File and Registry template for NeoLinux 4 devices includes options enabling you to change the root directory to ./fs/org and mount it as writable.

170 Performing a Persistent Write Operation on NeoLinux 4.x Devices