Manjaro Freezing BAD

I still dont think SWAP is your issue … but we can take care of it.

Lets also assume you dont need hibernate, so we dont need to make it too big. (you can increase this later)
We will also use a swapfile … so you dont have to mess with partitions or anything.

The following are step-by-step instructions in the terminal.
Please copy each line and enter them, if you wish to create a 4GB SWAP file. Take care.

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

You may then check if its available and working:

swapon --show

If it is … then we can add a line to /etc/fstab to make it mounted/active every boot:
(you can use any editor here, but nano seems ubiquitous)

sudo nano /etc/fstab

And add a line (probably at the bottom)

/swapfile               none            swap            defaults,pri=-2 0 0

(you can reboot and check swap availability again … another command is inxi -Dj)

2 Likes