Den 15 maj 2026 08:10:05 GMT-07:00, "pelzflorian (Florian Pelz)"
<[email protected]> skrev:
>Fredrik Salomonsson <[email protected]> writes:
>
>> If you use the `btrfs filesystem mkswapfile` to create the swap
>> file, the swapon command should work properly. E.g. running `swapon` on
>> my desktop right now gives me:
>>
>> NAME TYPE SIZE USED PRIO
>> /swap/swapfile file 4G 0B -2
>>
>> And it also worked as expected when installing my machines.
>
>$ sudo mount /dev/sdb1 /mnt
>$ sudo rm /mnt/swapfile
>$ sudo btrfs filesystem mkswapfile /mnt/swapfile
>create swapfile /mnt/swapfile size 2.00GiB (2147483648)
>$ sudo swapon /mnt/swapfile
>swapon: /mnt/swapfile: swapon failed: Invalid argument
I think the swapfile needs to be on its own subvolume.
>
>Well maybe swap files are incompatible with my RAID 1.
Good question, none of my boot drives are in any raid.
>
>But it would help if doc/guix.texi told us what commands might work.
>
>If you find suitable info.
I'll do a deep dive and see if I can sort out all the question marks. Then add
the info to the manual.
>
>Anyway, thanks! Good that suspend and hibernate work for you now.
Yeah, it's super nice to have both working. Thanks again for the pointers!