12526 Members
237 Forums
7812 Topics
24005 Posts
Max Online: 9115 @ 08/24/24 07:30 PM
|
|
|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
|
|
|
|
#4924 - 01/09/16 11:02 AM
OpenPli 4.0 : Create Swap
|
Japhar Member
Carpal Tunnel
Registered: 10/19/10
Posts: 9994
|
This is the way to create a SWAP on your DM running OpenPLi 4.0 from MastaG, dd if=/dev/zero of=/media/usb/swapfile bs=1048576 count=128; mkswap /media/usb/swapfile
sed -i '/usb\/swapfile/d' /etc/fstab; echo -e '/media/usb/swapfile swap swap defaults 0 0' >> /etc/fstab
swapon /media/usb/swapfile Enjoy, Admin
Attachments
dvbapp2-plugin-extentions-swapmanager2-01.r1.ipk (67 downloads)swap_openpli40.txt (70 downloads)
_________________________
|
Top
|
|
|
|
|
#5056 - 01/11/16 09:03 PM
Re: OpenPli 4.0 : Create Swap
[Re: Admin]
|
Japhar Member
Carpal Tunnel
Registered: 10/21/10
Posts: 2649
|
Check this .sh script,
TS
Attachments
swap.rar (75 downloads)
_________________________
DM8000, DM800se, DM500HD, DM800HD, DM7025, DM7020s, DM7000, DM500s VU+ Solo, VU+ Uno, VU+ Duo, Kathrein UFS910 Tivusat, TNTSat, Fransat, SSR/TSR, BBC1-2-3/ITV DE-OpenBlackHole 1.4 image : http://www.openblackhole.com/
|
Top
|
|
|
|
|
#5113 - 01/13/16 06:46 AM
Re: OpenPli 4.0 : Create Swap
[Re: Admin]
|
VIP Japhar
member
Registered: 12/15/15
Posts: 114
|
thank you toysoft, were i do insert that script?
|
Top
|
|
|
|
|
#5131 - 01/13/16 04:08 PM
Re: OpenPli 4.0 : Create Swap
[Re: Admin]
|
VIPF Japhar
stranger
Registered: 09/26/12
Posts: 13
|
The swap file it is created but not activated root@dm800:~# swap.sh *********************** * FOUND * *********************** --------------------------------------------------------------- rm: can't remove '/media/usb/swapfile': No such file or directory Creating swapfile on /media/usb with 256MB Setting up swapspace version 1, size = 268431360 bytes UUID=e95e9b34-fbb7-4dbe-8ead-6c90e662edb6 swapon: error while loading shared libraries: libsmartcols.so.1: cannot open sh red object file: No such No such file or directory --------------------------------------------------------------- Swapfile activated --------------------------------------------------------------- root@dm800:~#
|
Top
|
|
|
|
|
#5144 - 01/13/16 05:57 PM
Re: OpenPli 4.0 : Create Swap
[Re: Admin]
|
Japhar Member
Carpal Tunnel
Registered: 10/21/10
Posts: 2649
|
Funziona per me, TS root@dm800:/var/volatile/tmp# ./swap.sh
***********************
* FOUND *
***********************
---------------------------------------------------------------
rm: can't remove '/media/hdd/swapfile': No such file or directory
Creating swapfile on /media/hdd with 128MB
Setting up swapspace version 1, size = 134213632 bytes
UUID=7b773d97-6204-46c3-8002-cb828d15c0a4
---------------------------------------------------------------
Swapfile activated
---------------------------------------------------------------
root@dm800:/var/volatile/tmp# cd /media/hdd
root@dm800:/media/hdd# ls swapfile -l
-rw-r--r-- 1 root root 134217728 Jan 13 18:52 swapfile
Attachments
Swap.jpg (245 downloads)
_________________________
DM8000, DM800se, DM500HD, DM800HD, DM7025, DM7020s, DM7000, DM500s VU+ Solo, VU+ Uno, VU+ Duo, Kathrein UFS910 Tivusat, TNTSat, Fransat, SSR/TSR, BBC1-2-3/ITV DE-OpenBlackHole 1.4 image : http://www.openblackhole.com/
|
Top
|
|
|
|
|
#20060 - 11/27/19 05:41 AM
Re: OpenPli 4.0 : Create Swap
[Re: Admin]
|
VIP Japhar
stranger
Registered: 01/24/18
Posts: 11
|
Thank you for swap.sh, but how do I know if a swap is active? The free command does not work. Thank you.
|
Top
|
|
|
|
|
#20063 - 11/27/19 07:28 AM
Re: OpenPli 4.0 : Create Swap
[Re: Admin]
|
VIP Japhar
stranger
Registered: 01/24/18
Posts: 11
|
Thank you. root@dm800:/media/hdd# ls swapfile -l
|
Top
|
|
|
|
|
|
|