[Bug 1788321] Re: swapon failed: invalid argument
Hugh Buntu
1788321 at bugs.launchpad.net
Thu Mar 12 16:07:52 UTC 2020
Getting the same error on old bare metal:
4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64
x86_64 x86_64 GNU/Linux
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Pentium(R) Dual CPU T3400 @ 2.16GHz
stepping : 13
microcode : 0xa4
cpu MHz : 1290.104
cache size : 1024 KB
~# swapon -a
swapon: /swapfile: swapon failed: Invalid argument
Swap partition also does not mount at boot.
I can run gparted, hit "swapon" on the right-click menu for the swap partition, and it mounts.
I don't have this problem on other harware/VMs with same build &
procedures.
--
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