Bug #42299 survives on upgrade from Dapper Drake to Edgy

Bug #69208 reported by Vikas Rawal
16
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Medium
Unassigned

Bug Description

Bug #42299, because of which the swap partition is disabled when a machine is hibernated, survives in Edgy if one upgrades from Dapper Drake to Edgy. I understand that the bug has been removed from Edgy installation disk, but it survives if one does an upgrade.

What does this bug do? The "resume=/dev/hda6" (where /dev/hda6 is my swap disk) should be provided by mkinitramfs. It does not do so because of Dapper Drake configuration file which survives the upgrade. When you hibernate the machine, the swap-signature is deleted from the swap partition. But when you boot the machine next time, the machine does not get a correct resume parameter. So it does not recovers your previous session and it does not initialise the swap memory. This results in slowing down the machine (because swap is not available) and, after this, hibernate does not work (because it does not find a swap partition to keep its stuff). As the swap signature is disabled, you have to first to a "mkswap /dev/hda6" (where /dev/hda6 is my swap partition), and then a "swapon -a". But the swap partition will disabled again if you hibernate the machine.

Baishampayan Ghosh has suggested a solution at http://article.gmane.org/gmane.user-groups.linux.delhi/13814.

The solution consists of following three steps.

1. Create a file called `resume' inside /etc/initramfs-tools/conf.d
2. Write the line `RESUME=/dev/hda6' into it, save+exit
3. Then issue the command --
    sudo update-initramfs -c -k `uname -r`

This takes care of the problem.

But the bug should be removed ASAP so that other people do not face this problem.

Tags: edgy-upgrade
Revision history for this message
Sod75 (launchpad-net-vernaillen) wrote :

I confirm this on my dapper to edgy upgrade

Revision history for this message
amias (amiaschanner) wrote :

this fixed it for my dapper to edgy upgrade and works with nvidia xgl drivers , thanks

Revision history for this message
Zak B. Elep (zakame) wrote :

I can confirm this on my Kubuntu Dapper -> Edgy upgrade on an MSI MegaBook S262. I thought this was an occurence of #31312, but that was only part of the bug.

Setting Importance to Medium: I do think many users who really care for hibernate functionality are seriously affected by this bug.

Revision history for this message
scoopex (ms-ubuntu) wrote :

this worked also great for me, thanks

Revision history for this message
Tormod Volden (tormodvolden) wrote :

You will be even safer using UUID in /etc/initramfs-tools/conf.d/resume, for instance:
RESUME=UUID=afeffb74-dad3-4676-9e40-31a4b6cd4969

Revision history for this message
Adam Teumim (teumima) wrote :

Would this be the reason why when my box hibernates it never wakes up until I turn it off with the power button, and boot all over again?

Revision history for this message
trubblelmaker (matt-andruff) wrote :

thanks a ton this really helped, no wonder hibernate was so incredibly broken! and my computer was lagging so badly thanks!

Revision history for this message
Albert Cardona (cardona) wrote :

My swap is listed as "ok" while booting, but is never mounted.
This is a freshly installed edgy x86 on a Thinkpad T60 core2 duo.

The only way for me to get swap working is to:
1 - launch gparted
2 - right-click on swap partition
3 - select "swapon"

Curiously enough, sleep, hibernaste and resume from both work, although they randomly fail (independently of whether the swap is on or not). There have been several reports about sleep failing randomly regarding thinkpads.

If the swap is not on, I get applications quitting or not launching because the kernel complains about lack of available memory, so the swap is really not on.

I remain puzzled.

Revision history for this message
Albert Cardona (cardona) wrote :

dist-upgrade to feisty as of today 2007 04 17 fixes all issues with swap partition.

Revision history for this message
Fabus (fabian-gebert-hh) wrote :

shouldn't that resume file also be updated if you change the swap-partition? I tried that and it did not work. I had to alter the file manually.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.