Open LukeShortCloud opened 3 months ago
$ sudo touch /swapfile $ sudo chattr +C /swapfile $ sudo btrfs property set /swapfile compression none $ sudo fallocate -l 16G /swapfile $ sudo chmod 0600 /swapfile $ sudo mkswap /swapfile $ sudo swapon /swapfile
https://superuser.com/questions/539287/swapon-failed-invalid-argument-on-a-linux-system-with-btrfs-filesystem
fallocate does not for swap files on Btrfs, ext4, and XFS.
fallocate
https://askubuntu.com/questions/1017309/fallocate-vs-dd-for-swapfile
https://superuser.com/questions/539287/swapon-failed-invalid-argument-on-a-linux-system-with-btrfs-filesystem