[Bug 1788321] Re: swapon failed: invalid argument
clickwir
1788321 at bugs.launchpad.net
Fri Apr 24 04:23:17 UTC 2020
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 at changeme:/# fallocate -l 2G /swap.img
root at changeme:/# chmod 600 /swap.img
root at changeme:/# ls -lah /swap.img
-rw------- 1 root root 2.0G Apr 24 04:07 /swap.img
root at 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 at changeme:/# swapon /swap.img
swapon: /swap.img: swapon failed: Invalid argument
root at 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
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1788321
Title:
swapon failed: invalid argument
Status in linux package in Ubuntu:
Confirmed
Status in util-linux package in Ubuntu:
Invalid
Bug description:
Environment:
- Ubuntu 18.04.1 LTS
- Linux 4.15.0-32-generic i686
Description:
When I try to mount my swap partition or my swap file, I get "swapon failed: invalid argument" .
Steps to reproduce:
1) sudo bash
2) dd if=/dev/zero of=/swapfile bs=1024 count=524288
3) mkswap /swapfile
4) chown root:root /swapfile
5) chmod 0600 /swapfile
6) swapon /swapfile
Last execution returns "swapon failed: invalid argument" .
I'm almost sure it's a bug because I have no problems using Linux
4.15.0-29-generic instead of Linux 4.15.0-32-generic. Also, no
problems using Ubuntu 18.04.1 LTS Live CD.
Regards.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1788321/+subscriptions
More information about the foundations-bugs
mailing list