Found this on another site
not tried it myself
Direct Image Creation
Creating a swapfile on some images is just a simple case of finding the option to dos so via the menu system. For example on ViX it can be found via:
Menu - Setup - ViX - Swap Manager
Blue (Create) - Green (Activate) - Yellow (Autostart - recommended).
A full restart of the receiver is required for the Swapfile to become active.
Manual Creation on HDD - via telnet session (cmd prompt, terminal, putty, DCC or VUCC)
Open a session & login
Type the following commands in the order they are shown & press enter after each one:
Code:Copy to clipboard
dd if=/dev/zero of=/media/hdd/swapfile bs=1024 count=131072
Set the swap area
Code:Copy to clipboard
mkswap /media/hdd/swapfile
Activate the swapfile
Code:Copy to clipboard
swapon /media/hdd/swapfile
To have the swapfile load automatically after the box is restarted the fstab file needs to contain an instruction to do so:
Code:Copy to clipboard
vi /etc/fstab
Add the following to the end of the file:
Code:Copy to clipboard
/media/hdd/swapfile swap swap defaults 0 0
To verify swapfile is set:
Code:Copy to clipboard
free
You should see information similar to:
Code:Copy to clipboard
total used free shared buffers
Mem: 1240068 154124 839340 632 246604 1010102
Swap: 131068 0 131068
NOTE: if you want to create the swap on a USB stick then substitute usb for hdd in all the commands above.