The appropriate memory location depends on your application requirements, particularly whether the data needs to persist across reboots or power loss.
Volatile Memory (Cleared on Reboot)
Use these locations for temporary data that does not need to survive a reboot:
- /tmp/
- /var/
Note: The maximum size is limited by the RAM if the CloudGate. Limit this to about 20MB.
Non-Volatile Memory (Persistent Across Reboots)
Use these locations if you need the data to be retained after reboot or power loss:
- /etc/luvitred/store/ — For configuration or state data managed by LuvitRED
- /mnt/data/luvitred/ — Data persistent across factory reset
Note: The maximum size of /etc/ is limited to 20MB AND it is shared with other files, such as log files, luvitred databases.
Note: The maximum size of /mnt/data/ is limited to about 100MB.
Warning: If the data in /etc has exceeded the limit then many CloudGate features (such as downloading the log) may fail. The only way to recover is to perform a factory reset of the CloudGate.
External Storage (Persistent Across Factory Reset)
Use these paths for removable storage devices:
- /mnt/sd* — For USB drivers
- /mnt/mmcblk* — for microSD cards
Note: The asterisk (*) represents varying device identifiers depending on the number and type of connected drives (e.g., /mnt/sda1, /mnt/mmcblk0p1).
Warning: The devices may (not yet) be available, so check if the directory exists before writing.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article