Bug #42299 survives on upgrade from Dapper Drake to Edgy
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Ubuntu |
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://
The solution consists of following three steps.
1. Create a file called `resume' inside /etc/initramfs-
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.
| Sod75 (launchpad-net-vernaillen) wrote : | #1 |
| amias (amiaschanner) wrote : | #2 |
this fixed it for my dapper to edgy upgrade and works with nvidia xgl drivers , thanks
| Zak B. Elep (zakame) wrote : | #3 |
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.
| scoopex (ms-ubuntu) wrote : | #4 |
this worked also great for me, thanks
| Tormod Volden (tormodvolden) wrote : | #5 |
You will be even safer using UUID in /etc/initramfs-
RESUME=
| Adam Teumim (teumima) wrote : | #6 |
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?
| trubblelmaker (matt-andruff) wrote : | #7 |
thanks a ton this really helped, no wonder hibernate was so incredibly broken! and my computer was lagging so badly thanks!
| Albert Cardona (cardona) wrote : | #8 |
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.
| Albert Cardona (cardona) wrote : | #9 |
dist-upgrade to feisty as of today 2007 04 17 fixes all issues with swap partition.
| Fabus (fabian-gebert-hh) wrote : | #10 |
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.


I confirm this on my dapper to edgy upgrade