Comment 9 for bug 105490

Revision history for this message
CyberRaven (cyberraven) wrote :

Confirmed by me as well. I'm running Kubuntu 7.04 on a ThinkPad X41 with kernel

eivind@ravenwing:~$ uname -r
2.6.20-15-generic

Suspend and hibernate worked out of the box, but after a few restarts, hibernation ceased to work (it wouldn't hibernate at all). (Suspend still works.) When trying to hibernate, it gave the following message in dmesg (the last one);

eivind@ravenwing:~$ dmesg | grep swsusp
[ 3540.088000] swsusp: critical section:
[ 3540.088000] swsusp: Need to copy 126471 pages
[ 3540.088000] swsusp: Normal pages needed: 66997 + 1024 + 32, available pages:
[ 3540.088000] swsusp: critical section/: done (126471 pages copied)
[ 3545.384000] swsusp: Cannot find swap device, try swapon -a.

I checked my KSysGuard, and it claimed "No swap space available" in the status bar - "Odd", I thought. When searching the web, I found this bug, and a thread on ubuntuforums.org, http://ubuntuforums.org/showthread.php?p=1683612 (See also https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/66637 and https://bugs.launchpad.net/ubuntu/+bug/67437)

Here are some outputs, in case they could be of any help (/dev/sda6 ought to be my swap partiton, but as the following indicate, its uuid has somehow changed, and doesn't match the one in the fstab):
---------

eivind@ravenwing:~$ free -m | grep Swap
Swap: 0 0 0

eivind@ravenwing:~$ sudo swapon -s
Filename Type Size Used Priority

eivind@ravenwing:~$ sudo fdisk -l | grep swap
/dev/sda6 3817 4093 2094088+ 82 Linux swap / Solaris

eivind@ravenwing:~$ sudo vol_id /dev/sda6
ID_FS_USAGE=other
ID_FS_TYPE=suspend
ID_FS_VERSION=s1suspend
ID_FS_UUID=b1c2f767-9fb1-46b1-a090-4b1ac5eb2bee
ID_FS_LABEL=
ID_FS_LABEL_SAFE=

eivind@ravenwing:~$ cat /etc/fstab | grep -B 1 swap
# /dev/sda6
UUID=8cb560ee-a321-4e9a-9805-ccf589b109de none swap sw 0 0

eivind@ravenwing:~$ sudo swapon -a
swapon: cannot stat /dev/disk/by-uuid/8cb560ee-a321-4e9a-9805-ccf589b109de: No such file or directory

---------
After following the method in this post, http://ubuntuforums.org/showpost.php?p=1773316&postcount=3 (similar to Lionel Duvals suggestion), swap works again;

eivind@ravenwing:~$ swapon -s
Filename Type Size Used Priority
/dev/sda6 partition 2094080 0 -1

(...but sadly, now hibernation fails on resume. That's not relevant for this bug, though...)