OK, now I've tried this solution
http://cmisip.home.insightbb.com/zaurus.htm#SWP but changed the script for a CF card rather than an SD card. I ran it like this:
++++++++++++++++++++++++++++++
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc5.d/S99local
Now, in rc.local type in:
umount /mnt/cf
killall cardmgr
fsck.msdos -y /dev/hda1
sleep 2
/sbin/cardmgr
Now we can create the swap file on /mnt/cf:
dd if=/dev/zero of=/mnt/cf/swapfile bs=1M count=32
mkswap -v1 /mnt/cf/swapfile
Add the lines at the bottom of rc.local (before exit 0):
mount /mnt/cf
sleep 3
/sbin/swapon /mnt/cf/swapfile
Also add the corresponding commands to terminate the swap file in /etc/rc.d/init.d/halt:
/sbin/swapoff /mnt/cf/swapfile
sleep 3
umount /mnt/card
umount /mnt/cf
sleep 2
++++++++++++++++++++++++++++++++
But couldn't get the swapfile to activate on reboot. Then I tried all the commands one by one in the terminal and any that didn't work (fsck wouldn't work after killall) were deleted, still no luck.
I also tried this thread
https://www.oesf.org/forums/inde...t=0entry42491 and especially:
If you use a swap file, instead of a swap partition, then you might have to run "su root" to gain full system access on the command line and edit the /root/etc/rc.d/rc.sysinit file and uncomment the section that runs the rc.local script. The Zaurus computers with the default ROM are somewhat non-standard in the places where they place some configuration files like rc.sysinit. Then put the "swapon /path/filename" command in the rc.local file. Someone else on the board mentioned how to make /root writable with the mount command.
Managed to find all the information on how to make the /root writable but still no swap file on reboot. What's going on? Nothing seems to work? My last idea is to learn how to use fdisk and try to make a bootable partition as per the same thread:
Regarding getting the swap file to work on boot-up: If you already have a separate partition for the swap space, then you can run "su root" to become the system administrator and then edit the /etc/fstab file. I do not recall off the top of my head the syntax for that. Someone else here probably knows, or you can read a reference manual.