How to make a Swapfile? ANSWERED/CLOSED

How to make a swapfile? I have 6gb of physical ram but i feel like 2 more gigs will be enough. Both my slots are taken so i cant add more to my laptop. BTW, it is my 3rd day on EndeavourOS and Arch as a whole.

Welcome to the forum :enos_flag: :enos:

This wiki mentioned below handles how to make a swap file.
https://discovery.endeavouros.com/storage-and-partitions/adding-swap-after-installation/2021/03/

1 Like

OK. I think i found the answer on this page.

You have to run this command to enable paging.
swapon /dev/sdxy*

*partition number

Then run this command to list physical and swapfile ram
free -h

1 Like