[Bug 554009] Re: Resume from disk (swapfile) fails

tim474 554009 at bugs.launchpad.net
Fri Mar 3 02:48:32 UTC 2017


P.S. I use ubuntu 16.04.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/554009

Title:
  Resume from disk (swapfile) fails

Status in initramfs-tools package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: initramfs-tools

  Ubuntu Lucid 10.04 fully updated as of today (2 apr 2010) AMD64

  initramfs-tools 0.92bubuntu71

  I can hibernate my notebook but when I try to wake it up again it starts with a normal boot.
  I would say it doesn't even *try* to resume.
  I'm using a swapfile and I configured the kernel command line accordingly:

  BOOT_IMAGE=/boot/vmlinuz-2.6.32-19-generic
  root=UUID=f0e784ed-e140-4d73-87a3-8ef047012b9f ro reboot=bios,warm
  resume=UUID=f0e784ed-e140-4d73-87a3-8ef047012b9f
  resume_offset=29470720 vga=0x315 quiet splash

  also my /etc/initramfs-tools/conf.d/resume file should be correct:

  resume=UUID=f0e784ed-e140-4d73-87a3-8ef047012b9f
  resume_offset=29470720

  Nevertheless, when the pc boots I always get this in my dmesg,
  regardless if it was a real clean boot or if it was a boot after an
  hibernation:

  [    0.778970] PM: Checking image partition UUID=f0e784ed-e140-4d73-87a3-8ef047012b9f
  [    0.785267] PM: Resume from disk failed.

  My notebook is a dell precision m6400 and hibernation used to work
  fine (with the same setup) in karmic.

  I tried myself to narrow down this problem and I came out with this
  conclusion:

  In /usr/share/initramfs-tools/scripts/local-premount/resume (which I
  suppose is used to see if a resume has to occur) there is a check on
  the type of hibernation (if any) happened with this line (almost at
  the end of the file):

  SWAPTYPE=$(wait-for-root "${resume}" ${RESUMEDELAY:-5})

  It is my understanding (but I might be wrong) that the function "wait-for-root" can only check the partition whose UUID is passed as ${resume}, but it has no idea about the offset.
  So I think that it works only for swap partitions but not for swap files.

  I would like to make the hybernation/resume thing work for my laptop,
  so if I can be of any help testing things or if I can give any other
  info I'll be glad to do that.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/554009/+subscriptions



More information about the foundations-bugs mailing list