improved documentation
authorJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 17 Jan 2017 22:28:00 +0000 (23:28 +0100)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 17 Jan 2017 22:28:00 +0000 (23:28 +0100)
src/tricks/raspberry_pi3_increase_swap_size.adoc
www/tricks/raspberry_pi3_increase_swap_size.html

index aa542aa..dea4d01 100644 (file)
@@ -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
index 3a8e8f8..e8d5eff 100644 (file)
@@ -21,7 +21,7 @@
 <div class="sectionbody">
 <div class="listingblock">
 <div class="content">
 <div class="sectionbody">
 <div class="listingblock">
 <div class="content">
-<pre>dphys-swapfile swapoff</pre>
+<pre>sudo dphys-swapfile swapoff</pre>
 </div>
 </div>
 </div>
 </div>
 </div>
 </div>
 <div class="sectionbody">
 <div class="paragraph">
 <p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
 <div class="sectionbody">
 <div class="paragraph">
 <p>As <code>root</code>, edit the file <code>/etc/dphys-swapfile</code> and modify
-the variable <code>dphys-swapfile</code>:</p>
+the variable <code>CONF_SWAPSIZE</code>:</p>
 </div>
 <div class="listingblock">
 <div class="content">
 <pre>CONF_SWAPSIZE=1024</pre>
 </div>
 </div>
 </div>
 <div class="listingblock">
 <div class="content">
 <pre>CONF_SWAPSIZE=1024</pre>
 </div>
 </div>
+<div class="paragraph">
+<p>To modify the swap file, edit the variable <code>CONF_SWAPFILE</code>, and run
+<code>dphys-swapfile setup</code> which will create and initialize the file.</p>
+</div>
 </div>
 </div>
 <div class="sect1">
 </div>
 </div>
 <div class="sect1">
@@ -45,7 +49,7 @@ the variable <code>dphys-swapfile</code>:</p>
 <div class="sectionbody">
 <div class="listingblock">
 <div class="content">
 <div class="sectionbody">
 <div class="listingblock">
 <div class="content">
-<pre>dphys-swapfile swapon</pre>
+<pre>sudo dphys-swapfile swapon</pre>
 </div>
 </div>
 </div>
 </div>
 </div>
 </div>
@@ -53,7 +57,7 @@ the variable <code>dphys-swapfile</code>:</p>
 </div>
 <div id="footer">
 <div id="footer-text">
 </div>
 <div id="footer">
 <div id="footer-text">
-Last updated 2016-12-22 00:24:00 UTC
+Last updated 2017-01-13 21:43:43 CET
 </div>
 </div>
 <footer>
 </div>
 </div>
 <footer>