ThinkCore W311/321/341 Linux User’s Manual
Managing Embedded Linux
3-3
Since different Flash disks have different sizes, it is a good idea to check the size of your Flash
disk before upgrading the firmware, or before using the disk to store your application and data
files. Use the
#df –h
command to list the size of each memory block and how much free space is
available in each block.
192.168.3.127 – PuTTY
root@Moxa:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 8.0M 6.0M 2.0M 75% /
/dev/ram0 499.0k 16.0k 458.0k 3% /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
root@Moxa:~# upramdisk
root@Moxa:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock2 8.0M 6.0M 2.0M 75% /
/dev/ram0 499.0k 16.0k 458.0k 3% /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% /mnt/ramdisk
root@Moxa:~# cd /mnt/ramdisk
root@Moxa:/mnt/ramdisk#
The following instructions give the steps required to save the firmware file to the W311/321/341’s
RAM disk and how to upgrade the firmware.
1.
Type the following commands to enable the RAM disk:
#upramdisk
#cd /mnt/ramdisk