This is the first time I am using btrfs. How do you create a swap file on btrfs? What might be the fstab line for it? Is it the same as for a partition with ext fs?
Swap files on btrfs require special handling.
You need to create a subvolume without snapshots.
Then you create the swapfile and disable COW.
Take a look at the Arch wiki:
https://wiki.archlinux.org/index.php/Btrfs#Swap_file
3 Likes
Ok, thanks, both of you!
1 Like