Home

How to enable Swap on Device memory ?

Spartacus5000

Usuario Activo
Fan de OpenSPA
5 Dic 2011
145
17
0
Hello, a swap can be created on an external HDD, but how do I run a swap on the tuner's main memory ?


.
Moderator's Note:
Since you don't translate, I pass it on to the International section.
With this team and this image.
Receptor: Uclan
Imagen: OpenATV 6.4
.
 
Última edición por un moderador:

Spartacus5000

Usuario Activo
Fan de OpenSPA
5 Dic 2011
145
17
0
Open Telnet & login:

then copy & paste file:

dd if=/dev/zero of=/home/swapfile bs=1024 count=524288

then:

mkswap /home/swapfile

then:

swapon /home/swapfile

and then open:

/etc/fstab

add on fstab this:

/home/swapfile swap swap defaults 0 0

Restart device.

Njoy!