Bug #42299 survives on upgrade from Dapper Drake to Edgy
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://
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.
I confirm this on my dapper to edgy upgrade