View Single Post
skeezer65134's Avatar
Posts: 20 | Thanked: 4 times | Joined on Dec 2007
#3
I actually did the same thing, but with about 128MB of SWAP. I don't really use the rest of the 512 card though, so I could theoretically bump it out. I noticed immediately that things ran way faster than with the swap file on a FAT32 filesystem. I thought the 128MB limit would still apply though, good to know it doesn't

EDIT: I don't know if this has changed, but the tablet doesn't load swap partitions on reboot. There's a nice workaround here. I fixed the script and here it is:

Code:
#!/bin/sh
# workaround an issue with mounting swap partition at startup

SWAPX='/dev/mmcblk0p2'

case "$1" in
 start)
   swapon $SWAPX
 ;;
 stop)
   swapoff $SWAPX
 ;;
 restart)
   swapoff $SWAPX
   swapon $SWAPX
 ;;
 reload|force-reload)
   echo "$0: not implemented"
 ;;
 *)
 ;;
esac
Put that in /etc/init.d/swappart.sh and make it executable (chmod 755 /etc/init.d/swappart.sh). You'll have to change the SWAPX location to match your own setup; the one in my example is for the second partion on the internal card. You'll also need make the file execute on boot by linking it in the startup scripts (ln -s /etc/init.d/swappart.sh /etc/rc2.s/S19swappart). Of course, you'll need to be root for all this to work too

Last edited by skeezer65134; 2007-12-30 at 02:19.
 

The Following User Says Thank You to skeezer65134 For This Useful Post: