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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1788321

Title:
  swapon failed: invalid argument

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1788321/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to