How to create a manual swap file

mike123

VIP Member
TK Supporter
First off, telnet in to the box using your favourite telnet programme.

Then, type the following command (after count, enter the size of file you want. In example below, it is a 128mb swap - 1024 x 128 = 131072):



Code:
dd if=/dev/zero of=/media/usb/swapfile bs=1024 count=131072
Then, set up a linux swap area



Code:
mkswap /media/usb/swapfile
Now, to activate the swap space immediately, type:



Code:
swapon /media/usb/swapfile
Now, activate the swap file to load when the vu duo loads, we need to edit the fstab file. To do this, type the following command to edit the fstab file:



Code:
vi /etc/fstab
Add the following line to the file:



Code:
/media/usb/swapfile swap swap defaults 0 0
Now, when the box restarts, the swap file should automatically be enabled...

To verify that it has worked correctly, type the following command in a telnet session:



Code:
free
This should give you some information similar to below:


Code:
total used free shared buffers
Mem: 140848 135964 4884 0 564
Swap: 131064 1848 129216
Total: 271912 137812 134100
 
you lost me there mike lol,my swap file is just setup on usb by remote control and no need to telnet and auto starts is there a difference?used on duo/solo/max digital but no need on solo2.
 
you are correct cactikid most of the time they will work using the control. however, with some usb sticks i think ones with less than 8 gig free space you can have issues. this is just a work around for those people.i had to do a manual one because i dont bother with recording hence i only use a 4 gig mem stick.
 
Back
Top