Comment 23 for bug 1788321

Revision history for this message
clickwir (clickwir) wrote :

Just did a fresh install of 20.04 as a Proxmox VM and see this "invalid argument" in the start up messages and syslog. Trying to start it manually also fails. Tried recreating it, also failed.

root@changeme:/# fallocate -l 2G /swap.img
root@changeme:/# chmod 600 /swap.img
root@changeme:/# ls -lah /swap.img
-rw------- 1 root root 2.0G Apr 24 04:07 /swap.img
root@changeme:/# mkswap /swap.img
mkswap: /swap.img: warning: wiping old swap signature.
Setting up swapspace version 1, size = 2 GiB (2147479552 bytes)
no label, UUID=bd9bdc4f-4c53-4b0b-ad92-687ed5f669e6
root@changeme:/# swapon /swap.img
swapon: /swap.img: swapon failed: Invalid argument
root@changeme:/# swapon -v /swap.img
swapon: /swap.img: found signature [pagesize=4096, signature=swap]
swapon: /swap.img: pagesize=4096, swapsize=2147483648, devsize=2147483648
swapon /swap.img
swapon: /swap.img: swapon failed: Invalid argument