User`s manual
UC-7112-LX Plus Software User’s Manual Managing Embedded Linux
3-5
Loading Factory Defaults
To load the the factory default settings, you must press the reset-to-default button for more than 5
seconds. All files in the /home & /etc directories will be destroyed. Note that while pressing the
reset-to-default button, the Ready LED will blink once every second for the first 5 seconds. The
Ready LED will turn off after 5 seconds, and the factory defaults will be loaded.
Backing Up the User Directory
1. Create a backup file. First type the following command to enable the RAM disk:
#upramdisk
Next, use the file system backup utility provided by Moxa:
#backupuf /mnt/ramdisk/usrfs-backup
2. Once the file system is backed up, use FTP to transfer the file usrfs-backup to your PC.
192.168.3.127 – PuTTY
root@Moxa:~# upramdisk
root@Moxa:~# cd /mnt/ramdisk
root@Moxa:/mnt/ramdisk# df –h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 8.0M 6.0M 2.0M 75% /
/dev/ram0 499.0k 17.0k 457.0k 4% /var
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /tmp
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /home
/dev/mtdblock3 6.0M 488.0k 5.5M 8% /etc
tmpfs 30.4M 0 30.4M 0% /dev/shm
/dev/ram1 16.0M 1.0k 15.1M 0% /var/ramdisk
root@Moxa:/mnt/ramdisk# backupuf /mnt/ramdisk/usrfs-backup
Sync the file system…
Now backup the user root file system. Please wait. . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Backup user root file system OK.
root@Moxa:/mnt/ramdisk#
Deploying the User Directory to Additional UC-7112-LX Plus Units
For some applications, you may need to ghost one UC-7112-LX Plus user file system to other
UC-7112-LX Plus units. Back up the user file system to a PC (refer to the previous subsection,
Backing Up the User File System, for instructions), and then type the following commands to copy
the backup to additional UC-7112-LX Plus units.
#upramdisk
#cd /mnt/ramdisk
#upfirm usrfs-backup
192.168.3.127 – PuTTY
root@Moxa:/mnt/ramdisk# ls -al
drwxr—xr-x 3 root root 1024 Jun 15 02:47
drwxr—xr-x 15 root root 0 Sep 29 2004
-rw------- 1 root root 12288 Jun 15 02:45 lost+found
-rw-r--r-- 1 root root 27263140 Jun 15 02:48 usrfs-backup
root@Moxa:/mnt/ramdisk# upfirm usrfs-backup
Moxa UC-7112 Plus upgrade firmware utility version 1.0.
To check source firmware file context.
The source firmware file conext is OK.
This step will destroy all your firmware.
Continue ? (Y/N) : Y
Now upgrade the file [userdisk]:
Format MTD device [/dev/mtd3] . . .
MTD device [/dev/mtd3] erase 128 Kibyte @ 600000 – 100% complete.
Wait to write file . . .
Compleleted 100%
Upgrade the firmware is OK.