Use a swap file and enable hibernation on Arch Linux - including on a LUKS root partition
Problem You may want/need to create and enable a swap file on your machine. Many Linux distribution installers will create an extra partition for swap. However, there are several advantages to simply using a swap file on your root partition (the partition you installed Linux on). Here's