X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=blobdiff_plain;f=www%2Ftricks%2Fraspberry_pi3_increase_swap_size.html;h=e8d5eff552b88fd8a19a29fe84ab8a2b248b4595;hp=e1408451e479ac88eefabd63705c8a2d5cf667a1;hb=59b8914458cc7575272f1df48340ed4850efce73;hpb=f253ec84873310ce48caa1bc0f5ce7f52fbe05ea diff --git a/www/tricks/raspberry_pi3_increase_swap_size.html b/www/tricks/raspberry_pi3_increase_swap_size.html index e140845..e8d5eff 100644 --- a/www/tricks/raspberry_pi3_increase_swap_size.html +++ b/www/tricks/raspberry_pi3_increase_swap_size.html @@ -1,60 +1,55 @@ - - + + -Raspberry PI increase swap size + +Raspberry PI - increase swap size - +
-
+
+

Stop the swap

-
-
    -
  1. -

    Stop the swap

    -
  2. -
-
-
dphys-swapfile swapoff
+
sudo dphys-swapfile swapoff
+
-
-
    -
  1. -

    Modify the size of the swap

    -
  2. -
+
+

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
-
-
    -
  1. -

    Start the swap

    -
  2. -
+
+

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
@@ -62,8 +57,23 @@ the variable dphys-swapfile:

+Last updated 2017-01-13 21:43:43 CET +
+
+ \ No newline at end of file