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

Well maybe swap files are incompatible with my RAID 1.

But it would help if doc/guix.texi told us what commands might work.

If you find suitable info.

Anyway, thanks!  Good that suspend and hibernate work for you now.

Regards,
Florian

Reply via email to