Comments on: How To Create a Linux Swap File https://www.tecmint.com/create-a-linux-swap-file/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 23:27:32 +0000 hourly 1 By: rabitu171 https://www.tecmint.com/create-a-linux-swap-file/comment-page-1/#comment-1700220 Thu, 13 Jan 2022 14:30:35 +0000 https://www.tecmint.com/?p=25955#comment-1700220 Really helped me out because I forgot to create a swap partition on my OpenSUSE install…

]]>
By: Aaron Kili https://www.tecmint.com/create-a-linux-swap-file/comment-page-1/#comment-1318475 Mon, 24 Feb 2020 07:16:50 +0000 https://www.tecmint.com/?p=25955#comment-1318475 In reply to mohamed.

@mohamed

Great! Many thanks for the feedback.

]]>
By: mohamed https://www.tecmint.com/create-a-linux-swap-file/comment-page-1/#comment-1318215 Sat, 22 Feb 2020 12:55:15 +0000 https://www.tecmint.com/?p=25955#comment-1318215 Thank you for this amazing article, it helped me to create a Swap file in Linux.

]]>
By: Nityanand Shet https://www.tecmint.com/create-a-linux-swap-file/comment-page-1/#comment-1120384 Thu, 28 Mar 2019 11:18:21 +0000 https://www.tecmint.com/?p=25955#comment-1120384 mkswap /mnt/swapfile step is missing i guess. I am able to create swap after only this step.

# swapoff -v /swapfile
# chmod 600 /mnt/swapfile
# swapon /mnt/swapfile
# swapon: /mnt/swapfile: read swap header failed: Invalid argument
# mkswap /mnt/swapfile 
# swapon /mnt/swapfile
# free  -m
Sample Output
              total        used        free      shared  buff/cache   available
Mem:          15883        2337        9955          16        3591       13206
Swap:          2047           0        2047
]]>
By: Aaron Kili https://www.tecmint.com/create-a-linux-swap-file/comment-page-1/#comment-954755 Wed, 27 Dec 2017 07:43:19 +0000 https://www.tecmint.com/?p=25955#comment-954755 In reply to oldgaro.

@oldgaro

Thanks for the useful tip, it’s really handy.

]]>