bbaovanc’s Website

files icon swapfile-guide rss-feed icon

Swapfile guide explained write icon

This page is about something. All the content before the “more” HTML comment below will become the summary, which will be used in list pages and in the meta tags on the article.

Or, if you don’t want your description to be at the top of the article, you can set your own description in the front matter and it will override this. See the Content Summaries page on the Hugo docs for more information.

Guide to the correct swapfile setup write icon

There is a lot of conflicting information out there on how to create a swapfile correctly. Although these guides (should) all work perfeclty fine, I spent the time to research and find out what is actually the most correct.

In summary: make sure to use the dd command to create the swapfile, and create an fstab entry that looks similar to /swapfile none swap sw 0 0. In this article, I will go more in-depth into the correct steps to create a swapfile on Linux, and explain each step.

chevron-up icon