Hibernate problem using 2 swap partitions
Hi folks!
I have a debian 6.0.3 on a 2GB RAM desktop with (initially) only a 1GB swap partition.
Not surprisingly, when I used to run programs that occupied more than 1GB of my RAM, I couldn't hibernate.
Because I had an 8GB partition that I didn't use, I turned it into a second swap partition. (I formatted the partition as swap, I edited the /etc/fstab adding it and then I used swapon IIRC, it was a few months ago.)
But even after that, when I try to hibernate with over than 1GB of RAM used, I get the same error: "PM: not enough free space". Frustrating... I have some free time now to search and resolve this.
Some more info (sda5 -> my original swap, sda8 -> my 2nd swap):
% fdisk -l /dev/sda | grep sda[58]
/dev/sda5 6225 6348 995998+ 82 Linux swap/Solaris
/dev/sda8 8341 9336 8000338+ 82 Linux swap/Solaris
% cat /proc/swaps
Filename Type Size Used Priority
/dev/sda5 partition 995988 0 -1
/dev/sda8 partition 8000328 0 -2
% grep swap /etc/fstab
UUID=7d76837c-e342-48f7-a625-6799ccc548b4 none swap sw 0 2
/dev/sda8 none swap sw 0 2
% cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=7d76837c-e342-48f7-a625-6799ccc548b4
% blkid /dev/sda[58]
/dev/sda5: UUID="7d76837c-e342-48f7-a625-6799ccc548b4" TYPE="swap"
/dev/sda8: UUID="e3227967-2f70-4540-92c9-3e0e324fdd04" TYPE="swap"
First, I tried to stop using my initial swap partition. It's only 1GB anyway. So, I commented it out in the /etc/fstab. Then, I updated the UUID of the new partition in resume file. After a reboot, I tried to hibernate but the computer didn't do it. I got no error message as far as I understand the output (or it was too quick, or just I didn't notice). It tried to hibernate entering console mode, it did not reach the point when writing to swap file (one can see the progress in a % counter) and it came back.
No clue why this does not work.
Do I need to add one more line in the resume file with the uuid of the 2nd partition perhaps? I am not sure if this works, if it supports multiple lines, that is.
I am looking for this in the net, but I can't find any similar problem with 2 swap partitions.
Any ideas? Thanks in advance!
|