Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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):
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.
In your grub.cfg (assuming you are using GRUB) do you have any additional parameters in the boot entries? ('linux' lines within 'menuentry' blocks)
Try adding resume=/dev/sda8 to the end - you can test this out by hitting 'e' at the grub menu.
SOLVED: Adding the swap partition as a resume=... parameter in /etc/default/grub
> In your grub.cfg [...] Try adding resume=/dev/sda8 to the end
Yeap! That was the missing setting. It worked.
For some strange reason -stupid of me maybe- I thought myself yesterday: "There is no resume parameter there, why should I _add_ one?" But seems if there is no parameter, the kernel may just grab the first swap partition in the disk.