[Bug 1788321] Re: swapon failed: invalid argument

WIll Salmon will.salmon at ncl.ac.uk
Fri Oct 26 13:29:25 UTC 2018


Like John Shipp, we are on Debian 9.4 32-bit (on VMware) and still have
this issue on the latest kernel: 4.9.0-8-686-pae #1 SMP Debian
4.9.110-3+deb9u6 (2018-10-08)

Message in syslog is :
 swapon: /dev/sdb1: swapon failed: Invalid argument

To work round it, I've pinned kernel at 4.9.0-7 on production VMs with
an apt/preferences.d/ file. - see also Debian bug #907175

Cheers

-- 
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