ArcoLinux -D -B 19.11 has been released

[INFO] Adding a swapfile after a clean installation without swap partition

Must read
Post Reply
User avatar
erikdubois
Captain
Posts: 2672
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:
Belgium
[INFO] Adding a swapfile after a clean installation without swap partition

Post by erikdubois » Sun Jul 21, 2019 12:59 pm

Best decide what to do in the beginning inside Calamares - 3 choices regarding swap.

But you can have other reasons to install calamares without swap and lateron add a swapfile to the system.

One of the advantages is that you can make the swapfile on the spot and delete it again. Make it bigger or make it smaller.

You can do the same with partitions via gparted but it is a bit more technical.

How to set up a swapfile on ArcoLinux or Arch Linux? of 8G = 8 Gigabyte - make bigger if needed

Code: Select all

sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Now reboot and check with

Code: Select all

cat /proc/meminfo
cat /proc/swaps
swapon -s
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.


Post Reply

Return to “Tips and Tricks”