Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-25 Thread Victor Porton
On 25-Feb-2006 Pavel Machek wrote:
 
 On So 25-02-06 05:37:27, Victor Porton wrote:
 On 22-Feb-2006 Pavel Machek wrote:
  On Sat 25-02-06 00:17:04, Victor Porton 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 run 2.6.15.4 kernel (not from Debian distribution).
  
  Do you have resume=/dev/hda2 on kernel command line?
 
 Yes.
 
 Is driver for /dev/hda built-in (not a module)?

I'm not an idiot, so drivers for IDE (/dev/hda is IDE), ext2, and ext3 are 
built-in.

-- 
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: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-25 Thread Pavel Machek
On So 25-02-06 17:06:49, Victor Porton wrote:
 On 25-Feb-2006 Pavel Machek wrote:
  
  On So 25-02-06 05:37:27, Victor Porton wrote:
  On 22-Feb-2006 Pavel Machek wrote:
   On Sat 25-02-06 00:17:04, Victor Porton 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 run 2.6.15.4 kernel (not from Debian distribution).
   
   Do you have resume=/dev/hda2 on kernel command line?
  
  Yes.
  
  Is driver for /dev/hda built-in (not a module)?
 
 I'm not an idiot, so drivers for IDE (/dev/hda is IDE), ext2, and ext3 are 
 built-in.

Great. Find out what is wrong and report it to proper bugzilla,
then. That's likely *kernel* bugzilla, not Debian bugzilla for
self-compiled kernel.

Pavel
-- 
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...


-- 
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-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: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Victor Porton
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).

Here is my approximate digits of memory usage during testing:

$free
 total   used   free sharedbuffers cached
Mem:248264  17088 231176  0   1528   9068
-/+ buffers/cache:   6492 241772
Swap:   254008 48 253960

I deem that there are enough swap space to save all my memory except
of free memory.

I have also checked that there are no swapoff string in files of hibernate
package except of /etc/init.d/hibernate (which runs only on boot, not on
suspend).

Attached are my kernel configuration and hibernate configuration.



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.15.4not-debian-release
Locale: LANG=C, LC_CTYPE=ru_RU.KOI8-R

-- no debconf information


hibernate.conf.gz
Description: hibernate.conf.gz


config.gz
Description: config.gz


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: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Pavel Machek
On Sat 25-02-06 00:17:04, 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).

Do you have resume=/dev/hda2 on kernel command line?

-- 
Thanks, Sharp!


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



Bug#354254: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Victor Porton
On 22-Feb-2006 Pavel Machek wrote:
 On Sat 25-02-06 00:17:04, Victor Porton 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 run 2.6.15.4 kernel (not from Debian distribution).
 
 Do you have resume=/dev/hda2 on kernel command line?

Yes.

-- 
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: hibernate: Suspend to disk doesn't work: cannot find swap device

2006-02-24 Thread Pavel Machek

On So 25-02-06 05:37:27, Victor Porton wrote:
 On 22-Feb-2006 Pavel Machek wrote:
  On Sat 25-02-06 00:17:04, Victor Porton 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 run 2.6.15.4 kernel (not from Debian distribution).
  
  Do you have resume=/dev/hda2 on kernel command line?
 
 Yes.

Is driver for /dev/hda built-in (not a module)?
Pavel
-- 
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...


-- 
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]