ThinkCore W311/321/341 Linux User’s Manual
Managing Embedded Linux
3-5
ATTENTION
The upfirm utility will reboot your target after the upgrade is OK.
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#