public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: rasmit.ranjan@wipro.com
Cc: linux-pm@lists.osdl.org
Subject: Re: swsusp1 not working
Date: Tue, 3 Jan 2006 10:30:12 +0100	[thread overview]
Message-ID: <200601031030.12744.rjw@sisk.pl> (raw)
In-Reply-To: <380D9721A8E2114485644D71E87C6AB2012F560C@PNE-HJN-MBX01.wipro.com>

Hi,

On Tuesday, 3 January 2006 07:39, rasmit.ranjan@wipro.com wrote:
> 	As you have suggested I will try with kernel 2.6.14.5.This time
> I tried something differenet.Now I changed my swap partition.Now my swap
> partition is on LVM.So I reinstalled Linux-2.6.9 from cd. Then I
> downloaded linux-2.6.13.3 and recompiled it.
> I followed one document "acpi-how-to" and did the following steps to
> suspend my system.
> 
> 1. I did not use kernel parameter "resume= " in grub.config as it is
> given that the 1st swap space will be used for image storage.

The resume= is necessary for resume anyway, because it is done
before swap partitions are activated.  If you don't use resume=,
the kernel won't be able to find the image.

> 2.Then I create my initrd using the following command
> 	mkinitrd --allow-missing -f /boot/initrd-2.6.13.3.img 2.6.13.3
> 
> 3.Then I did the following
> 	echo shutdown > /sys/power/disk
> 	echo disk > /sys/power/state
> 
> It seems my system is suspended. So when I press the power button it did
> not resume but restarted.

This happened because you didn't use resume= (see above).

> In boot log message I found something like this 
> 		swapon:/dev/VolGroup00/LogVol01: invalid argument
> 		rc.sysinit: enabling swap space failed

swsusp changed the signature of your swap partition, so it cannot be used as
swap space any more.  Normally the signature would be restored during resume,
but the system didn't resume so the image is still there and it is "locked".

> Now it seems my swap partition has been crashed.
> So after rebooting I tried following command
> 		swapon -s  //showed nothing
> 		cat /proc/swaps //showed nothing
> 		free  //this showed that the size of swap space is 0
> 
> So I tried to activate my swap space and typed this command
> 		swapon -a
> 
> But this gave the following error
> 		Unable to find swap-space signature
> 		swapon:/dev/VolGroup00/LogVol01: invalid argument
> 
> Now I can not do any thing until my swap space becomes activated.
> First I did not get why my swap space got crashed ??

See above.

> Second is there any way to activate my swap space ??

Yes, there is.  Use mkswap.

Greetings,
Rafael

  reply	other threads:[~2006-01-03  9:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03  6:39 swsusp1 not working rasmit.ranjan
2006-01-03  9:30 ` Rafael J. Wysocki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-04  5:53 rasmit.ranjan
2006-01-04  6:02 ` Dave Jones
2006-01-02  4:33 rasmit.ranjan
2005-12-30  4:27 rasmit.ranjan
2005-12-30 14:43 ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200601031030.12744.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-pm@lists.osdl.org \
    --cc=rasmit.ranjan@wipro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox