Bug#354254: [linux-pm] Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-25 Thread Victor Porton
On 25-Feb-2006 Rafael J. Wysocki wrote:
 On Saturday 25 February 2006 01:39, Victor Porton wrote:
 On 24-Feb-2006 Rafael J. Wysocki wrote:
  Suspend to disk does not work for me with the following dmesg message:
  
  PM: writing image.
  swsusp: cannot find swap device, try swapon -a.
  
  I think you haven't used the resume=your_swap_partition kernel command
  line argument, which is mandatory for suspend with this kernel.
 
 I have used resume=/dev/swap
 
 /dev/swap is a symlink to /dev/hda2
 
 I don't think the code that uses this argument is capable of following
 symlinks.  Please use resume=/dev/hda2 and see if that helps.

Yes, I have replaced resume=/dev/swap with resume=/dev/hda2 and it works
now. The bug is that the code does not understand symlinks.

It probably can be solved either on kernel side or on hibernate Debian
package side. Better to modify the hibernate package than to add code to
the kernel. (However I am not 100% sure that kernel will be able to resume
from symlink, even if hibernate will instruct it to do so.)

-- 
Victor Porton ([EMAIL PROTECTED]) - http://porton.ex-code.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354254: [linux-pm] Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Rafael J. Wysocki
Hi,

On Friday 24 February 2006 20:17, Victor Porton wrote:
 Package: hibernate
 Version: 1.12-1
 Severity: normal
 X-Debbugs-CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
 
 Suspend to disk does not work for me with the following dmesg message:
 
 PM: writing image.
 swsusp: cannot find swap device, try swapon -a.
 
 Yes, my swap was turned on and I checked it again. I HAVE run swapon -a.
 $ swapon -s
 FilenameTypeSizeUsed   
 Priority
 /dev/hda2   partition   254008  0   -1
 
 I run 2.6.15.4 kernel (not from Debian distribution).

I think you haven't used the resume=your_swap_partition kernel command
line argument, which is mandatory for suspend with this kernel.

Greetings,
Rafael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354254: [linux-pm] Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Victor Porton
On 24-Feb-2006 Rafael J. Wysocki wrote:
 Suspend to disk does not work for me with the following dmesg message:
 
 PM: writing image.
 swsusp: cannot find swap device, try swapon -a.
 
 I think you haven't used the resume=your_swap_partition kernel command
 line argument, which is mandatory for suspend with this kernel.

I have used resume=/dev/swap

/dev/swap is a symlink to /dev/hda2

-- 
Victor Porton ([EMAIL PROTECTED]) - http://porton.ex-code.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]