Download Print this page

Sharp Zaurus SL-C3000 Instruction Manual page 62

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

Advertisement

my Zaurus SL-C3000 and SL-C3100
mount 2 loop partitions because there are only that many default loop devices, so any additional
entries in /etc/fstab will fail to mount. mntloop will mount any additional entries it finds after
creating the extra loop devices. At system shutdown or reboot, it will cleanup and unmount
anything mounted as a loop device.
The automounter package [automounter-c3000_0.5.0_arm.ipk] will install mntloop and also install
the usb automounter.
Similar to the cram filesystem is the squash filesystem which is appendable, ie you can add files to
it. In order to use the squash filesystem, you will need to install the squashfs module
[kern-mod-squashfs_c3000-2.1-2_arm.ipk].
Alternatively, if you don't need a compressed filesystem but want a read and write access instead,
then you can create an ext2 or ext3 formatted loopback filesystem. You would need to pre-allocate
a chunk of space for it and the files won't be compressed at all.
For example, to create a 128MB loopback filesystem on /hdd3 called expansion.ext2 do the
following:
# su
# dd if=/dev/zero of=/hdd3/expansion.ext2 bs=1MB count=128
# echo y|/sbin/mke2fs /hdd3/expansion.ext2
# mkdir -p /home/expansion
# mount -o loop -t ext2 /hdd3/expansion.ext2 /home/expansion
# echo "/hdd3/expansion.ext2 /home/expansion ext2 loop,rw,noatime 0 0" >> /etc/fstab
Alternatively, if you rather create an ext3 filesystem instead of an ext2, do the following:
# su
# dd if=/dev/zero of=/hdd3/expansion.ext3 bs=1MB count=128
# echo y|/sbin/mke2fs -j /hdd3/expansion.ext3
# mkdir -p /home/expansion
# mount -o loop -t ext3 /hdd3/expansion.ext3 /home/expansion
# echo "/hdd3/expansion.ext3 /home/expansion ext3 loop,rw,noatime 0 0" >> /etc/fstab
Now you could move all the files from /usr/local to the newly mounted loopback filesystem and then
relink /usr/local to the loopback filesystem. This way, we moved some files off to hdd3 and
extended the /usr/local directory to have a higher limit of 128MB. Similarly you could do something
similar with /opt/QtPalmtop/share and many other directories as well. However, doing this will
impact on performance a little bit. The overhead caused by the loopback filesystem and the speed
of the MicroDrive are factors to consider and thus, choose files and directory that are not frequently
used to be moved to the loopback filesystem.
On C3000:
# mkdir -p /home/expansion/usr/local
# cd /usr/local
# tar cvf - * | tar xvf - -C /home/expansion/usr/local
# mv /hdd2/usr/local /hdd2/usr/local.bak
# ln -s /home/expansion/usr/local /hdd2/usr/local
Once you have tested that everything still works, you can remove /hdd2/usr/local.bak
On C3100:
# mkdir -p /home/expansion/usr/local
# cd /usr/local
# tar cvf - * | tar xvf - -C /home/expansion/usr/local
# mv /home/root/usr/local /home/root/usr/local.bak
62 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