View Single Post
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#25
Swap partitions

First figure out which device/partition is swap (cat /proc/partitions is helpful).

Run the following command (as root, filling in X an Y with the correct values):

mkswap /dev/mmcblkXpY

use an editor to add this line to the /etc/fstab file on root partitions:

/dev/mmcblkXpY none swap swap priority=-1 0 0

then enter the following command

swapon -a

/proc/swaps should now show the partition and /proc/meminfo and such should reflect the swap space. To get it to happen automatically each bootup, you need to add something to /etc/init.d with proper symlink /etc/rc2.d
(e.g. /etc/init.d/doswap with just "swapon -a", and /etc/rc2.d/S99doswap symlinked to doswap).
 

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