Swap file on BTRFS

Then start GParted or another disk management app, delete the swap partition, expand your partitions (BTRFS can be grown online, no need for reboot).
Create a subvolume to store your swap. Then create a swap file:

https://wiki.archlinux.org/title/Swap#Swap_file

You may wish to disable Copy On Write on your swap file.

Revision #3
Created 2026-04-01 17:15:13 CEST by Philip
Updated 2026-04-13 19:26:17 CEST by Philip