Create_swap

draft: false title: “Create Swapfile” date: 2021-10-08T00:04:25+02:00 description: “Create an swapfile” #thumbnail: “img/wafe.png” # Optional, thumbnail disable_comments: false # Optional, disable Disqus comments if true authorbox: false # Optional, enable authorbox for specific post toc: false # Optional, enable Table of Contents for specific post toc_sidebar: true # Optional, enable Table of Contents for specific post mathjax: false # Optional, enable MathJax for specific post categories:

  • “Linux” tags:
  • “RAM”
  • “Linux”

Create file with 1Gbyte

dd if=/dev/zero of=/swapfile bs=1G count=2

Create Swapfile

mkswap /swapfile
chmod 0600 swapfile

Activate Swapfile

swapon /swapfile

Persitent Swapfile vi /etc/fstab

/swapfile none swap sw 0 0