From 381be88fe16e4757cdf9868d033b56b082169acc Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 19 Feb 2015 06:36:41 +0000 Subject: [PATCH] add swap to disk (unencrypted) --- snippets/make-swap.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 snippets/make-swap.sh diff --git a/snippets/make-swap.sh b/snippets/make-swap.sh new file mode 100644 index 0000000..60c9db9 --- /dev/null +++ b/snippets/make-swap.sh @@ -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