Increase or add swap file (Raspberry Pi)

vim /etc/dphys-swapfile

Input the following for 512MB swap in the file and save:


Now run the following command to finish the procecedure.

dphys-swapfile setup
dphys-swapfile swapon

3 thoughts on “Increase or add swap file (Raspberry Pi)

  1. Pingback: Menyalakan Kembali Raspberry Pi | Emanuel Setio Dewo

Leave a Reply

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

Markdown is allowed in comments.