Mon Feb 13 19:54:59 EST 2006

Suspend2 - Change Suspend File Size


This is another one of my posts that's more for my notes than anything else. I recently (as in today) got more memory for my laptop taking it from 256MB to 512MB. Since I'm using Suspend2 to suspend to disk and am using the suspend file vs the swap partition I had to increase the files size. The original one was only 300MB, not enough to hold my physical RAM if it was full. So, I went to the Suspend2 website and found out that the instructions for creating a suspend file are not easy to find. Eventually I found the answer buried on a Gentoo Wiki.

The steps were as follows:
  1. Delete my old suspend file.
  2. Edit my hibernate.conf file by changing the FilewriterLocation line. The last number on the line is the size of the file to be created in MB. I just made it a number larger than my physical RAM.
  3. As root run hibernate --no-suspend which will create the file and then tell what "resume2" line to put in your bootloader. If using LILO don't forget to run lilo before rebooting.
That's it. Try a suspend and resume to see what happens. But make sure to get it right the first time and have a good backup because resuming from a bad suspend file has the potential to ruin your file system.

Posted by Brian | Permalink | Categories: Computers and Technology | |