F7: Hibernate using new swap partition
Hello,
I just resized my swap partition to give it more space (hibernating sometimes couldn't allocate enough space on the swap partition). After I did that, I ended up with /dev/sda5 and /dev/sda6 partitions being switch (i.e., /dev/sda5 used to be the swap, but now it's /dev/sda6). The other partition (my home partition) was mounted based on the partition's label, so it worked without problems. I had to edit my fstab to get the swap partition working again though. After that, I enabled swap with /sbin/swapon -a. Now, if I enter 'free', I can see that I have my swap partition enabled...but none of it is used, and my ram is now entirely full with cache (I never saw happening this before on startup, or when my machine was idle). So it looks like maybe the swap partition isn't being used, despite the successful use of swapon, and apparent output from free.
At any rate, I can hibernate fine - it writes the memory to the swap disk okay (or at least appears to), but when I try to restore the machine, it seems to be unable to find the swap partition, so it starts booting normally...which of course causes the disks to appear corrupt and I spend 20 minutes waiting for them to be scanned.
Does anyone know where I would find the configuration for hibernate that tells it where to look for the swap partition? Or perhaps I've missed something in the setup/configuration of the swap drive?
Last edited by Mleahy; 07-26-2008 at 12:49 PM.
|