# System Directories

This page describes file system structure for various OI versions. This information may be helpful when debugging.

# OI-Win System Directories

Path Description
c:\oiroot\ Base directory for OI Runtime system files.
c:\oiroot\oi\ OI application storage location - default directory for OI application selection.
c:\oiroot\tmp\ Directory for temporary storage of files during runtime.
c:\oiroot\tmp\oi_stat Performance statistics for OI Runtime.
c:\oiroot\tmp\app\ Directory for temporary storage of files related to the current application.
c:\oiroot\var\ Parent of log directory.
c:\oiroot\var\log Log files for OI runtime system events.

# OI System directories HW v2.2 (oi1.10 and oi1.11)

Path Description Volatile Non-volatile Read Only
/home/root symlink→ /var/volatile/root
/media
/media/data Internal data flash. USB mass storage device with partition label 'oi-data' is mounted here.
/media/data Data card (if present)
/media/data/oidata OI applications.
/media/data/oidata/hdd Internal hard disk is mounted here.
/media/data/www Web pages accessible by http://touch_screen_ip
/media/hdd Internal hard disk
/media/hdd Internal hard disk (if present)
/media/hdd/db Database files
/media/hdd/oidata OI applications
/media/hdd/www Web pages accessible by http://touch_screen_ip if internal data flash is missing
/media/system Internal system flash. System boots from here.
/media/usbhd External data flash. USB mass storage device is mounted here (partition label may not be 'oi-data').
/oi symlink→ /var/run/oi
/oi OI application files on data card
/oi/hdd OI application files on hard drive.
/tmp symlink→ /var/tmp
/tmp Ram disk
/tmp/db/sqlite SQLite database files (non-volatile if hard drive is present; volatile with no hard drive or if forced to store into ramdisk in /etc/formfactor/machconfig)
/var/defaultconfig This is unpacked into /var/volatile/config on boot if stored configuration is not found in /media/system/config.squashfs
/var/log symlink→ /var/volatile/log
/var/oi
/var/oi/demoapp OI demo applications
/var/oi/www Web pages
/var/oi/www/js accessible by http://touch_screen_ip/fw/js/
/var/oi/www/php accessible by http://touch_screen_ip/fw/php/
/var/oi/www/php_cli accessible by http://touch_screen_ip/fw/php_cli provides scripts to test XML-RPC tag communication
/var/oidata read only directory
/var/oidata/hdd If internal data flash is missing: oidata directory from internal hard disk is mounted here
/var/run symlink→ /var/volatile/run
/var/tmp symlink→ /var/volatile/tmp
/var/volatile
/var/volatile/config Configuration which can be stored (in OI Config Screen or using freeze.sh command from console) into non-volatile memory (/media/system/config.squashfs). During boot the content of /media/system/config.squashfs is unpacked here. /media/system/config.squashfs can be also unpacked here by thaw.sh command form console.
/var/volatile/log System log directory /var/log. OI logs here as well.
/var/volatile/root System home directory /home/root.
/var/volatile/run System run-time variable data directory /var/run.
/var/volatile/run/oi If internal data flash is present: symlink→ /media/data/oidata
/var/volatile/run/oi If internal data flash is not present: symlink→ /var/oidata
/var/volatile/tmp System temporary directory /tmp.
/var/volatile/tmp/app OI application run-time files
/var/volatile/tmp/app/httpscripts OI application's http script files. Accessible by http://touch_screen_ip/app/
/var/volatile/tmp/app/shellscripts OI application's shell script files
/var/volatile/tmp/config symlink→ /var/volatile/config
/var/volatile/tmp/db Database files are stored here if hard disk is not present (or database is forced to store its data into ram disk in /etc/formfactor/machconfig, STORE_DB_ON_RAMDISK setting) or symlink→ /media/hdd/db if hard disk is present
/var/volatile/tmp/db/sqlite SQLite database files
/var/volatile/tmp/sqlite symlink→ /tmp/db/sqlite (it is here to keep compatibility within oi1.10. This symlink will not exist in oi1.11/fw2.4)
/var/volatile/tmp/www Web pages are stored here if there is no non-volatile storage (hard disk or data flash) or symlink→ /media/data/www. Accessible by http://touch_screen_ip

# OI System directories HW v2.0, HW v2.1 (oi1.9)

Path Description Volatile Non-volatile Read Only
/home/root symlink→ /var/volatile/root
/media
/media/data Internal data flash. USB mass storage device with partition label 'oi-data' is mounted here.
/media/data Data card (if present)
/media/data/oidata OI applications.
/media/data/oidata/hdd Internal hard disk is mounted here.
/media/data/www Web pages accessible by http://touch_screen_ip
/media/hdd Internal hard disk
/media/hdd Internal hard disk (if present)
/media/hdd/db Database files
/media/hdd/oidata OI applications
/media/hdd/www Web pages accessible by http://touch_screen_ip if internal data flash is missing
/media/system Internal system flash. System boots from here.
/media/usbhd External data flash. USB mass storage device is mounted here (partition label may not be 'oi-data').
/oi symlink→ /var/run/oi
/oi OI application files on data card
/oi/hdd OI application files on hard drive.
/tmp symlink→ /var/tmp
/tmp Ram disk
/tmp/db/pgsql PostGresql database files (non-volatile if hard drive is present; volatile with no hard drive or if forced to store into ramdisk in /etc/formfactor/machconfig)
/var/defaultconfig This is unpacked into /var/volatile/config on boot if stored configuration is not found in /media/system/config.squashfs
/var/lib/oi
/var/lib/oi/demoapp OI demo applications
/var/lib/oi/www Web pages
/var/lib/oi/www/js accessible by http://touch_screen_ip/fw/js/
/var/lib/oi/www/php accessible by http://touch_screen_ip/fw/php/
/var/log symlink→ /var/volatile/log
/var/oidata read only directory
/var/oidata/hdd If internal data flash is missing: oidata directory from internal hard disk is mounted here
/var/run symlink→ /var/volatile/run
/var/tmp symlink→ /var/volatile/tmp
/var/volatile
/var/volatile/config Configuration which can be stored (in OI Config Screen or using freeze.sh command from console) into non-volatile memory (/media/system/config.squashfs). During boot the content of /media/system/config.squashfs is unpacked here. /media/system/config.squashfs can be also unpacked here by thaw.sh command form console.
/var/volatile/log System log directory /var/log. OI logs here as well.
/var/volatile/root System home directory /home/root.
/var/volatile/run System run-time variable data directory /var/run.
/var/volatile/run/oi If internal data flash is present: symlink→ /media/data/oidata
/var/volatile/run/oi If internal data flash is not present: symlink→ /var/oidata
/var/volatile/tmp System temporary directory /tmp.
/var/volatile/tmp/app OI application run-time files
/var/volatile/tmp/app/httpscripts OI application's http script files. Accessible by http://touch_screen_ip/app/
/var/volatile/tmp/app/shellscripts OI application's shell script files
/var/volatile/tmp/config symlink→ /var/volatile/config
/var/volatile/tmp/db Database files are stored here if hard disk is not present (or database is forced to store its data into ram disk in /etc/formfactor/machconfig, STORE_DB_ON_RAMDISK setting) or symlink→ /media/hdd/db if hard disk is present
/var/volatile/tmp/db/postgresql PostgreSQL database files
/var/volatile/tmp/sqlite symlink→ /tmp/db/sqlite (it is here to keep compatibility within oi1.10. This symlink will not exist in oi1.11/fw2.4)
/var/volatile/tmp/www Web pages are stored here if there is no non-volatile storage (hard disk or data flash) or symlink→ /media/data/www. Accessible by http://touch_screen_ip
Last Updated: 1/8/2021, 1:19:21 PM