Tuesday, June 2, 2009

Ubuntu Hibernates But Doesn't Resume?

Got bitten by this one today... after mangling around my partitions and enlarging my swap space, Ubuntu was finally hibernating successfully but it was resuming as if nothing had ever been saved.

The solution is here.

Update /etc/initramfs-tools/conf.d/resume. You can find the name of your new swap with blkid. Save it and run:

sudo dpkg-reconfigure initramfs-tools

Now you can immediately hibernate and it will work.

I was thinking for a while I liked the way Windows just puts hiberfile.sys and pagefile.sys on the actual system partition, but then I remembered what a pain in the ass it was trying to shrink that partition because it just spews them wherever it feels like and they can't be moved while the system is running. Supposedly defrag is improved in Windows 7 (though not sure whether this includes moving these files or just MFT entries), but for my money a dedicated swap partition is still a better idea.

Be the first to reply!

Post a Comment

By submitting a comment you assert that it is your own original work and agree to grant a non-exclusive licence to Brandon Thomson to display it on log.bthomson.com.