
Re: [How to] Mount a swap partition
Steffen (s-n1965), the author of the mountSwap script, discovered that the latest 7317 firmware for his Playon!DVR HD, switches on swapping automatically, thus dispensing with the need to install and run the mountSwap script. This may also be case for the Playon!HD models with an internal hard disk.
You can verify if the firmware switches on swapping automatically. If you have already installed the mountSwap script, however, you must deactivate that first.
Open a Telnet session to your Playon.
Enter the following command lines:
cd /usr/local/etcvi rcSplace the cursor at the beginning of the line containing
/usr/local/etc/mountSwap &press
itype a hash (#) at the beginning of this line, so it will become
#/usr/local/etc/mountSwap &type
ESC, followed by
:wq (write and quit)
Type
rebootTo verify if swapping has been switched on by the system, open a (new) Telnet session (after the system has rebooted) and type
cat /proc/swapsIf the system reply looks like this
Code:
Filename Type Size Used Priority
/mnt/rd/swap.img file 32 0 -3
/dev/scsi/host0/bus0/target0/lun0/part2 partition 128480 0 -2
swapping has been switched on by the system and running the mountSwap script is no longer necessary.
Just type
rm /usr/local/etc/mountSwapto delete the mountSwap script. You can leave the rcS script unchanged, because the # deactivated the relevant command line that invoked the mountSwap script.
If the system reply looks like this
Code:
Filename Type Size Used Priority
/mnt/rd/swap.img file 32 0 -3
swapping has not been swiched on by the system and the mountSwap script must be activated.
In the latter case remove the # you just inserted into the rcS script with the
vi editor.
Goto to the last line of the rcS script, place the cursor just behind the #, press
i and
DEL, followed by
ESC and
:wq.
We would appreciate if you could report if the new firmware switches on swapping on your Playon.