<div class="sectionbody">
<div class="listingblock">
<div class="content">
-<pre>dphys-swapfile swapoff</pre>
+<pre>sudo dphys-swapfile swapoff</pre>
</div>
</div>
</div>
<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 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 class="sectionbody">
<div class="listingblock">
<div class="content">
-<pre>dphys-swapfile swapon</pre>
+<pre>sudo dphys-swapfile swapon</pre>
</div>
</div>
</div>
</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>