Download Print this page

Sharp Zaurus SL-C3000 Instruction Manual page 60

Zaurus pda instruction manual
Hide thumbs Also See for Zaurus SL-C3000:

Advertisement

my Zaurus SL-C3000 and SL-C3100
/etc/rc.d/init.d/mntloop (automounter) to check for the presence of a swapfile and enabling it when
the card is mounted and disabling it when the card is unmounted. The SD card is auto mounted by
the /etc/sdcard/sd_mem_ctrl script and this is where the control hooks need to be added. The CF
card is auto mounted by /etc/pcmcia/ide.
Furthermore, by default, the SD card script only attempts to mount the first partition. If you have
multiple partitions, then you need to enhance the above mentioned script to automatically mount
additional partitions on the CF or SD cards.
Remounting Filesystem as Read/Write or Read Only
Some partitions/file systems such as / cannot be unmounted. Some are also mounted as read-only.
In order to modify the files on those file systems, you need to remount them as read/write and then
remount them back to read-only after you have done what you wanted.
To remount as read/write:
# mount -o rw,remount /
To remount as read only:
# mount -o ro,remount /
Enabling Swap
The following demonstrates how to configure a 128MB swap file on the C3000's harddisk. Normally
a swap file is not required unless you are running many X/Qt applications and doing onboard
development. Most users with X/Qt will probably only require 32MB - 64MB swapfile.
# su
# dd if=/dev/zero of=/hdd3/swapfile bs=1048576 count=128
# mkswap /hdd3/swapfile
# swapon /hdd3/swapfile
# echo "/hdd3/swapfile swap defaults 0 0" >> /etc/fstab
To enable swap:
# su
# swapon /hdd3/swapfile
To disable swap:
# su
# swapoff /hdd3/swapfile
To check swap status:
# cat /proc/swaps
In addition, you can install [qtopia-memoryapplet_1.0.4_arm.ipk] which allows you to monitor both
your physical memory as well as your swap. It even can manage the swapfile creation for you. This
version can create a swapfile with a max. of 512MB. It also gives you the option to create the swap
on the internal HDD (/hdd3), CF card and SD card. The created swap file is also called swapfile
rather than .swapfile.
Increasing tmp
60 of 212
http://www.users.on.net/~hluc/myzaurus/
16/09/2007 12:23

Advertisement

loading

This manual is also suitable for:

Zaurus sl-c3100