Increasing swap space for Raspberry Pi


Open a terminal and type the command:

sudo nano /etc/dphys-swapfile

Inside this file, change the value after “CONF_SWAPSIZE” to 2048.

Save it then commit your changes with the following command:

sudo dphys-swapfile setup

NOTE: this will create a 2 gigabyte swap file on your SD card; make sure it’s large enough and have enough free space

Leave a comment

Your email address will not be published. Required fields are marked *