X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=blobdiff_plain;f=src%2Ftricks%2Fraspberry_pi3_increase_swap_size.adoc;h=dea4d017487987ced2f41e9bf4eb19a625a5381f;hp=7bc48512cb091faf1051bddf809763f7ae01c0df;hb=1587eac4e9940c095ae78a6758fb6344f3aed75d;hpb=f253ec84873310ce48caa1bc0f5ce7f52fbe05ea diff --git a/src/tricks/raspberry_pi3_increase_swap_size.adoc b/src/tricks/raspberry_pi3_increase_swap_size.adoc index 7bc4851..dea4d01 100644 --- a/src/tricks/raspberry_pi3_increase_swap_size.adoc +++ b/src/tricks/raspberry_pi3_increase_swap_size.adoc @@ -1,24 +1,27 @@ -= Raspberry PI increase swap size += Raspberry PI - increase swap size :docinfo2: :icons: font -1. Stop the swap +== Stop the swap ---- -dphys-swapfile swapoff +sudo dphys-swapfile swapoff ---- -2. Modify the size of the swap +== 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 ---- -3. Start the swap +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