Cli guide, Introduction, Flash partition – SENA STS Series User Manual
Page 93
![background image](/manuals/292722/93/background.png)
93
8. CLI guide
8.1. Introduction
The STS Series root or System Administrator (only admin account is added for this group user by
factory default) can access the Linux console command line interface (CLI) of the STS Series via the
serial console or TELENT/SSH. In the CLI, the authorized user can perform standard Linux commands
to view the status of the STS Series, edit the configuration, apply configuration changes, define user
scripts and transmit files between the STS Series and remote hosts.
The STS Series provides 1024 KB user space mounted in /usr2 for read/write capabilities in its
internal flash memory. Using the user space, the user can create his own scripts or executable
binaries to customize the STS Series.
A root user will always have access to the CLI through the serial console on the STS Series back
panel or by using a Telnet client from their workstation.
A System Administrator cannot have access to the CLI.
He can only access console configuration
menu or Web UI.
8.2. Flash Partition
The STS Series internal flash is partitioned as shown in the table below. The users can freely access
the Mtdblock5 which is mounted on /usr2 for their own needs. The user can also access files at
/etc
, /var, and /temp at their own risk. Simply accessing these files will not affect the STS Series
after rebooting. However, if the user invokes the command saveconf, the changes in the
configuration file will be committed to the internal flash memory area of the STS Series. This will result
in the changes being kept after the reboot sequence. Invalid configuration changes can affect the STS
Series behavior. At worst, it may cause the STS Series to be inoperable.
Block
Type
Mount point
Size (KB)
Mtdblock0
Bootloader
None
128
Mtdblock1
Kernel
None
768
Mtdblock2
CRAMFS (Read only)
/
6080
Mtdblock3
Ram disk image (4MB)
/etc, /var, /tmp
64
Mtdblock4
EXT2 (R/W)
/cnf (normally unmounted)
64
Mtdblock5
JFFS2 (R/W)
/usr2
1024
Mtdblock6
Reserved
None
64
Total
8192