Create swapfile

Just generate the file of the sizez it fits to your hw.

1
2
3
4
fallocate -l 512M /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

At this point you’ll want to mount swapfile on every boot.

/etc/fstab

1
/swapfile none swap defaults 0 0

Comments

⬆︎TOP