From 7727872201216e0b0b843d8a73a0b544bf78a7a8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 17 Jan 2017 23:28:00 +0100 Subject: [PATCH] improved documentation --- src/tricks/raspberry_pi3_increase_swap_size.adoc | 9 ++++++--- www/tricks/raspberry_pi3_increase_swap_size.html | 12 ++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/tricks/raspberry_pi3_increase_swap_size.adoc b/src/tricks/raspberry_pi3_increase_swap_size.adoc index aa542aa..dea4d01 100644 --- 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 ---- -dphys-swapfile swapoff +sudo dphys-swapfile swapoff ---- == 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 ---- +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 ---- -dphys-swapfile swapon +sudo dphys-swapfile swapon ---- \ No newline at end of file diff --git a/www/tricks/raspberry_pi3_increase_swap_size.html b/www/tricks/raspberry_pi3_increase_swap_size.html index 3a8e8f8..e8d5eff 100644 --- a/www/tricks/raspberry_pi3_increase_swap_size.html +++ b/www/tricks/raspberry_pi3_increase_swap_size.html @@ -21,7 +21,7 @@
-
dphys-swapfile swapoff
+
sudo dphys-swapfile swapoff
@@ -31,13 +31,17 @@

As root, edit the file /etc/dphys-swapfile and modify -the variable dphys-swapfile:

+the variable CONF_SWAPSIZE:

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.

+
@@ -45,7 +49,7 @@ the variable dphys-swapfile:

-
dphys-swapfile swapon
+
sudo dphys-swapfile swapon
@@ -53,7 +57,7 @@ the variable dphys-swapfile: