Results 1 to 6 of 6

Thread: [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

  1. #1
    Join Date
    Oct 2007
    Beans
    183
    Distro
    Ubuntu 12.10 Quantal Quetzal

    [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

    summary: my ThinkPad Z61t hibernates and suspends in winxp, successfully wubi-ed xubuntu-9.04, and suspended from wubi. After its battery died I migrated from wubi to partitions (using lvpm) to enable hibernation, but it now fails to hibernate with

    Code:
    PM: Cannot find swap device: try swapon -a.
    details:

    In a previous thread I learned, after my battery died while wubi-ed, that wubi was unable to hibernate. Accordingly I made ext3 and swap partitions and migrated my wubi install to them using the lvpm instructions. After fixing some GRUB and fstab problems, my xubuntu-9.04

    + is working in partitions

    Code:
    tlroche@tlrZ61t:~$ sudo fdisk -l
    > Disk /dev/sda: 100.0 GB, 100030242816 bytes
    > 240 heads, 63 sectors/track, 12921 cylinders
    > Units = cylinders of 15120 * 512 = 7741440 bytes
    ...
    >    Device Boot   Start     End    Blocks   Id  System
    > /dev/sda1   *        1    2814  21273808+   7  HPFS/NTFS
    > /dev/sda2        12297   12921   4725000   12  Compaq diagnostics
    > /dev/sda3         2815   12296  71683920    f  W95 Ext'd (LBA)
    > /dev/sda5         2815    9522  50712448+   7  HPFS/NTFS
    > /dev/sda6         9523   12018  18869728+  83  Linux
    > /dev/sda7        12019   12296   2101648+  82  Linux swap / Solaris
    > Partition table entries are not in disk order
    
    tlroche@tlrZ61t:~$ sudo swapon -sv
    > Filename   Type          Size    Used    Priority
    > /dev/sda7  partition  2101640       0       -1
    + can still suspend (with AC, of course--battery is still dead)

    - but still can't hibernate:

    0 When I hit the Action Buttons icon in upper right of panel and choose Hibernate, my screen goes black (first dark then backlit), a cursor blinks in upper left of screen for many seconds, eventually I get an error like

    Code:
    PM: Cannot find swap device, try swapon -a.
    which also persists for several seconds before my X session restores.

    1 When I goto tty1 (via C-A-F1), login and run

    Code:
    $ sudo pm-hibernate
    my screen goes black, a cursor blinks in upper left of screen for a few seconds, and I get the same error

    Code:
    PM: Cannot find swap device, try swapon -a.
    before I am returned to the commandline.

    But swap sure seems to be on, since I can do

    Code:
    tlroche@tlrZ61t:~$ sudo swapon -a
    tlroche@tlrZ61t:~$ sudo swapoff -a
    tlroche@tlrZ61t:~$ sudo swapon -a
    tlroche@tlrZ61t:~$ sudo swapon -sv
    > Filename                              Type            Size    Used    Priority
    > /dev/sda7                             partition       2101640 0       -1
    (Am I missing something?) Furthermore

    2 hibernation still works in winxp.

    3 When I run the Sleep Quirk Debugger I get

    Code:
    tlroche@tlrZ61t:~$ ./bin/quirk-checker.sh
    > -e Checking your system...
    > Suspend should work!
    How to fix?

    your assistance is appreciated, Tom Roche <Tom_Roche@pobox.com>

  2. #2
    Join Date
    Oct 2007
    Beans
    183
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

    I tried two more things, but still, no fix (not even a change in the error behavior):

    1. I remembered that I had hibernated winxp and thought that might somehow conflict. So I booted winxp, shut it down, restarted xubuntu, and tried to hibernate ... but it still says

      Code:
      PM: Cannot find swap device: try swapon -a.
    2. I looked @ my /etc/fstab and noticed that it still had "loop" in the line for the swap partition, so I edited

      Code:
      -/dev/sda7                    none           swap     loop,sw                         0      0
      +/dev/sda7                    none           swap     sw                              0      0
      restarted xubuntu, and tried to hibernate ... no change.


    Any more ideas? TIA, Tom Roche <Tom_Roche@pobox.com>

  3. #3
    Join Date
    Jun 2009
    Beans
    3

    Re: [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

    I have the same problem you have, any resolution? My system is Ubuntu 9.04 installed on Thinkpad X61s, moved from wubi by LVPM.

  4. #4
    Join Date
    Oct 2007
    Beans
    183
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

    Quote Originally Posted by robber View Post
    I have the same problem you have, any resolution?
    Alas no. I got some more ideas on a LUG list, but no fix there either. I'm thinking something must be bad about my swap partition, plus I may need another partition for OpenAFS, so I may try just backing/whacking my existing xubuntu and creating new partitions.

  5. #5
    Join Date
    Apr 2009
    Beans
    20

    Re: [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

    Hi,
    I have a X300 and had the same problem, after changing a few things in the partition table. I solved the problem by checking:
    1) /etc/fstab
    2) /etc/initramfs-tools/conf.d/resume
    If the UUID is correct, then Hibernate should work again.
    Greetings,
    Martin

  6. #6
    Join Date
    Sep 2008
    Beans
    4

    Re: [post-wubi] [hibernation] [newbie] "PM: Cannot find swap device, try swapon -a."

    For me worked:
    Code:
    sudo apt-get install --reinstall initramfs-tools

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •