Swap

From ZhoubaWiki
Revision as of 12:52, 28 May 2021 by Garak (talk | contribs) (content)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

set up or add swap storage

swapoff /swapfile
free -m
rm /swapfile
dd if=/dev/zero of=/swapfile bs=1G count=32
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
echo '/swapfile   none    swap    sw    0   0' >> /etc/fstab