projects
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved documentation
[www.git]
/
src
/
tricks
/
raspberry_pi3_increase_swap_size.adoc
diff --git
a/src/tricks/raspberry_pi3_increase_swap_size.adoc
b/src/tricks/raspberry_pi3_increase_swap_size.adoc
index
aa542aa
..
dea4d01
100644
(file)
--- a/
src/tricks/raspberry_pi3_increase_swap_size.adoc
+++ b/
src/tricks/raspberry_pi3_increase_swap_size.adoc
@@
-5,20
+5,23
@@
== Stop the swap
----
== Stop the swap
----
-dphys-swapfile swapoff
+
sudo
dphys-swapfile swapoff
----
== Modify the size of the swap
As `root`, edit the file `/etc/dphys-swapfile` and modify
----
== Modify the size of the swap
As `root`, edit the file `/etc/dphys-swapfile` and modify
-the variable `
dphys-swapfile
`:
+the variable `
CONF_SWAPSIZE
`:
----
CONF_SWAPSIZE=1024
----
----
CONF_SWAPSIZE=1024
----
+To modify the swap file, edit the variable `CONF_SWAPFILE`, and run
+`dphys-swapfile setup` which will create and initialize the file.
+
== Start the swap
----
== Start the swap
----
-dphys-swapfile swapon
+
sudo
dphys-swapfile swapon
----
\ No newline at end of file
----
\ No newline at end of file