please choosego to mobile | Continue to access the PC version
View: 6697|Reply: 1

Increase size of existing swap file ???

[Copy link]

6

threads

9

posts

49

credits

Novice

Rank: 1

credits
49
Published in 2016-12-17 15:35:49 | Show all floors |Read mode
hi
how Increase size of existing swap file in orange pi one ? swap file more 100

0

threads

47

posts

1708

credits

Gold member

Rank: 6Rank: 6

credits
1708
Published in 2016-12-17 22:14:18 | Show all floors
as root at console:

swapoff -a
dd if=/dev/zero of=/swapfile bs=2K count=104850 #it's make file about 200 mb
mkswap /swapfile
swapon /swapfile

To check if it's on:
swapon -s
or just type: free

Read the FAQ before asking!
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list