Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2072|Reply: 1

Increase size of existing swap file ???

[Copy link]

6

Threads

9

Posts

49

Credits

Novice

Rank: 1

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

0

Threads

47

Posts

1706

Credits

Gold member

Rank: 6Rank: 6

Credits
1706
Post time 2016-12-17 22:14:18 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-17 16:35 GMT+8 , Processed in 0.026952 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list