After issues with corrupted GRUB, I reinstalled the latest Manjaro (24.0.1).
After completed installation, the swap will not stay activated.
I have to activate it with GParted after every start.
In terminal I tried the command:
sudo bash -c “echo /dev/sda2 none swap defaults 0 0 >> /etc/fstab”
but the permission was denied.
Then I tried:
chmod 644 /etc/fstab
but still the permission was denied.
I have used the command:
sudo bash -c “echo /dev/sda2 none swap defaults 0 0 >> /etc/fstab”
in previous installations of earlier Manjaro distros, without any permission issues.
Why is permission denied and how can I fix it?
/ Hans Gatu