After installing a fresh Ubuntu 13.04 I noticed the laptop would no longer hibernate when the lid was closed.
I installed the hibernate package ( apt-get install hibernate ) and then ran “sudo hibernate”
This resulted in a laptop that would not boot. initramfs issue that could not be circumvented through recovery mode:
resume: libcrypt version: resume: could not stat the resume device file /dev/dm-0 Please type in the full path name to try again or press ENTER to boot the system:
Pressing enter does nothing, the only keystroke that works is ctrl+alt+del
So after some googling this is what I tried:
- Boot into ubuntu live cd/usb – the same one I used to install ubuntu earlier today
- Mount my system and chroot into it:
mount /dev/sda1 /mnt/temp/
cp /etc/resolv.conf /mnt/temp/etc/resolv.conf
(optional command: not sure what caused the issue) apt-get purge uswsusp
(optional command: not sure what caused the issue) apt-get purge hibernate
- Reboot the live cd and see if that works.