Moving swapfile to an external HDD


I have installed manjaro minimal rpi4 and I have attached an external HDD, and following the guide in wiki arch about swap I have created a swapfile in the external HDD to avoid degrading the SDcard.

So now all works fine but when I type swapon I see the swapfile I’ve created and /dev/zram0
so I swapoff /dev/zram/0 but every time I do restart, I have to manually swapoff since both are running.

Is there any way to avoid having to manually swappoff each time or delete the /dev/zram0?

Thank you

Disable zswap-arm.service with sudo systemctl disable zswap-arm.service and reboot. zram0 should now be gone.

1 Like

Now it is gone, thanks a lot @Strit !

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.