Debian, create swapfile: Difference between revisions
From Andreida
(Created page with " [https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 source] * create the file and set it read only fallocate -l 4G /swapfile chmod 600 /swapf...") |
(No difference)
|
Latest revision as of 11:38, 16 February 2016
- create the file and set it read only
fallocate -l 4G /swapfile chmod 600 /swapfile
- set as swap and activate
mkswap /swapfile swapon /swapfile
- modify /etc/fstab so it will be set after a reboot
/swapfile none swap sw 0 0