Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Debian 6 2.6.32-5-amd64 on netbook. With pm-utils Sleep works but hibernate fails with error: PM: Swap header not found!. Swap was enabled using ubuntu tutorial after installation - this is probably the key but can't find working solution.

share|improve this question
Ok, I managed to get it work by creating swap as separate disk partition and by editing initramfs-tools/conf.d/resume. – Eugene Jul 19 '12 at 17:40

You don't have a recognizable swap partition. Check that your swap partition is active: run cat /proc/swaps to see what swap space is in use.

This may be a symptom of trying to hibernate to a swap file. See e.g. Ubuntu bug #313724. Some hibernation methods accept swap files, but this depends on both the hibernation method and the kernel version, and it looks like yours can't cope with a swap file. Some versions of pm-utils can hibernate to a file; you need to configure the system to pass the proper resume_offset argument when booting back into the hibernated system.

If you created a swap partition with a more recent operating system, or had encrypted swap before but no longer, you may need to reinitialize the swap partition. Run mkswap on the block device corresponding to the partition (e.g. mkswap /dev/sdz99 — make sure that you get the name and number right, since otherwise this will overwrite one of your data partitions).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.