walnut.js/snippets/make-swap.sh

13 lines
294 B
Bash
Raw Normal View History

2015-02-19 06:36:41 +00:00
# /etc/dphys-swapfile
fallocate -l 1G /mnt/data/swapfile
mkswap /mnt/data/swapfile
swapon /mnt/data/swapfile
#sudo service dphys-swapfile start
#cat /etc/dphys-swapfile
#CONF_SWAPSIZE=1024
#CONF_SWAPFILE=/mnt/data/swapfile
2015-02-19 06:37:36 +00:00
# TODO
# there are ramifications to having this on unencrypted disk