X-Git-Url: https://git.wpitchoune.net/gitweb/?p=www.git;a=blobdiff_plain;f=src%2Ftricks%2Fraspberry_pi3_increase_swap_size.adoc;fp=src%2Ftricks%2Fraspberry_pi3_increase_swap_size.adoc;h=dea4d017487987ced2f41e9bf4eb19a625a5381f;hp=aa542aace5ca3df9491778673f7519a72f525db3;hb=30d3073487892c62872bfc407c18cedb2247b875;hpb=6fff7902fa472ba93dda3c69455ce74b35d04fda diff --git a/src/tricks/raspberry_pi3_increase_swap_size.adoc b/src/tricks/raspberry_pi3_increase_swap_size.adoc index aa542aa..dea4d01 100644 --- a/src/tricks/raspberry_pi3_increase_swap_size.adoc +++ b/src/tricks/raspberry_pi3_increase_swap_size.adoc @@ -5,20 +5,23 @@ == 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 -the variable `dphys-swapfile`: +the variable `CONF_SWAPSIZE`: ---- 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 ---- -dphys-swapfile swapon +sudo dphys-swapfile swapon ---- \ No newline at end of file