add swap to disk (unencrypted)

This commit is contained in:
AJ ONeal 2015-02-19 06:36:41 +00:00
parent 59a8f5235d
commit 381be88fe1
1 changed files with 9 additions and 0 deletions

9
snippets/make-swap.sh Normal file
View File

@ -0,0 +1,9 @@
# /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