SDB Talk:Partitioning

Jump to: navigation, search

For btrfs >= 6.1, the command to create a swapfile is slightly different[1]:

btrfs filesystem mkswapfile --size 2G /path/swapfile

I tried the instructions here on Tumbleweed (June 2026) and got the following error:

sudo swapon /var/lib/swap/swapfile

swapon: /var/lib/swap/swapfile: swapon failed: Invalid argument

writing this in the Talk page as I'm not sure if it applies to Leap or not, and how to add those changes to the SDB page.

[1] https://unix.stackexchange.com/a/713929/105168