Swap partition needs to be reinitialized after failed resume from hibernation

Bug #48514 reported by Pedro Casagrande
14
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
Medium
Unassigned

Bug Description

When hibernating on dapper the computer goes off as it should. When resuming the computer boots normaly (not resuming from hibernation) and the swap partition is corrupted.

The command "sudo swapon -a" says the parameter /dev/sda5 is invalid. Need to issue the fowlling commands to everything work as expected:

sudo mkswap /dev/sda5
sudo swapon -a

I do have a Toshiba M55-239 (Pentium-M 1.86 with 1 Gb RAM) and 1.5 Gb in the swap partition (I think it should be enought, this problem occurs even when I issue a hibernation on a fresh boot).

Revision history for this message
Lauri Rantakari (rantakari) wrote :

I have the exact same bug. The symptoms are exactly same and I also can only fix the issue by reformatting the swap partition.

My laptop is Asus A6R, Celeron 1.6, 512 ram, 1Gb swap.

Revision history for this message
Pedro Casagrande (pccampos) wrote :

Hi Lauri,

Actually, I had this issue corrected by adding the folling parameter on "the /boot/grub/menu.lst" boot:

 resume=/dev/sda5

So the line that was:

kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/sda2 ro q

became:

kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/sda2 resume=/dev/sda5 ro q

The problem is that every kernel update removes this parameter. On my machine, hibernate is only helpful to save my current session, the resume process is still slow, no much faster than a fresh boot.

Revision history for this message
Liran Tal (liran) wrote :

I'm confirming this bug.
The exact scenario happens here as well- an Acer Aspire 5562WXMi model.

Revision history for this message
tonfa (bboissin) wrote :

you need /etc/initramfs-tools/conf.d/resume properly setup

Revision history for this message
tonfa (bboissin) wrote :

this bug should probably be marked as dup from 66637

Revision history for this message
Áron Sisak (asisak) wrote :

Toggling the status, the bug has already been confirmed by the comments, actually.

Revision history for this message
Memo (memo-cj-ro) wrote :

Linux memo-desktop 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
Ubuntu Feisty Fawn 7.04

This had happened to me after sending computer to hibernation. After power up, the system went into normal boot state, not resuming from hibernation. Gdesklets SideCandy RAM/SWAP reported a fault division error. "free" command in terminal showed no swap. Had to manually set the swapon.

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.