X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=blobdiff_plain;f=www%2Ftricks%2Fraspberry_pi3_increase_swap_size.html;h=db7a25ce2a8e12d29f9c894249a18ecc565fdf13;hp=c8eca9e2e68bdf50f310f389354480595d06f258;hb=HEAD;hpb=fab167737df8cbfdbbfd77cb2b7afc16d6c0dd53 diff --git a/www/tricks/raspberry_pi3_increase_swap_size.html b/www/tricks/raspberry_pi3_increase_swap_size.html index c8eca9e..b3aaa3f 100644 --- a/www/tricks/raspberry_pi3_increase_swap_size.html +++ b/www/tricks/raspberry_pi3_increase_swap_size.html @@ -2,65 +2,78 @@ - + - -Raspberry PI increase swap size + +Raspberry PI - increase swap size - +
-
-
    -
  1. -

    Stop the swap

    -
  2. -
-
+
+

Stop the swap

+
-
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
+
+
+ \ No newline at end of file