Package: uswsusp
Version: 1.0-1
Severity: normal
Recently (after a kernel upgrade?) s2disk stopped working. I get:
| [bas@helena]~> sudo s2disk
| s2disk: Could not use the resume device (try swapon -a). Reason: Invalid
argument
Swap is active and on a normal partition (/dev/sda12):
| [bas@helena]~> swapon -s
| Filename Type Size Used Priority
| /dev/sda12 partition 2048252 42436 -1
strace shows:
| [bas@helena]~> sudo strace s2disk
| execve("/usr/sbin/s2disk", ["s2disk"], [/* 23 vars */]) = 0
[...]
| getpid() = 6754
| mount("none", "/proc/6754", "tmpfs", 0, NULL) = 0
| stat64("/dev/sda12", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 12), ...}) = 0
| chdir("/proc/6754") = 0
| mknod("resume", S_IFBLK|0600, makedev(8, 12)) = 0
| open("resume", O_RDWR|O_LARGEFILE) = 3
| stat64("/dev/snapshot", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 231),
...}) = 0
| open("/dev/snapshot", O_RDONLY|O_LARGEFILE) = 4
| ioctl(4, SNAPSHOT_SET_SWAP_AREA, 0xff8b7394) = -1 EINVAL (Invalid argument)
| ioctl(4, 0x4004330a, 0x80c) = -1 EINVAL (Invalid argument)
| write(2, "s2disk: Could not use the resume"..., 82s2disk: Could not use the
resume device (try swapon -a). Reason: Invalid argument
| ) = 82
| close(4) = 0
| close(3) = 0
| chdir("/") = 0
| oldumount("/proc/6754") = 0
| munmap(0xf74ed000, 360448) = 0
| exit_group(22) = ?
That is, the ioctl SNAPSHOT_SET_SWAP_AREA in set_swap_file() in
suspend.c fails. Looking at the kernel souces, this only return
EINVAL if the block device that is passed (maj 8, min 12) cannot be
converted to its kernel-space representation.
ANy idea what's hapeing here?
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages uswsusp depends on:
ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii libgcrypt11 1.4.6-5 LGPL Crypto library - runtime libr
ii liblzo2-2 2.04-1 data compression library
ii libpci3 1:3.1.7-9 Linux PCI Utilities (shared librar
ii libx86-1 1.1+ds1-6 x86 real-mode library
Versions of packages uswsusp recommends:
ii initramfs-tools 0.98.8 tools for generating an initramfs
ii mount 2.17.2-9.1 Tools for mounting and manipulatin
uswsusp suggests no packages.
-- debconf information:
* uswsusp/compute_checksum: false
uswsusp/no_snapshot:
* uswsusp/suspend_loglevel:
uswsusp/no_swap:
uswsusp/resume_offset:
* uswsusp/early_writeout: true
* uswsusp/image_size: 1800000000
* uswsusp/compress: true
uswsusp/create_RSA_key: false
* uswsusp/snapshot_device:
uswsusp/RSA_key_file: /etc/uswsusp.key
* uswsusp/max_loglevel:
* uswsusp/resume_device: /dev/sda12
* uswsusp/shutdown_method: platform
* uswsusp/encrypt: false
* uswsusp/splash: false
uswsusp/RSA_key_bits: 1024
* uswsusp/continue_without_swap: false
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]