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: johannes@sipsolutions.net, linux-pm@lists.osdl.org
Subject: Re: suspend to disk not working due to swap space failure
Date: Thu, 10 Aug 2006 22:57:04 +0200	[thread overview]
Message-ID: <200608102257.04400.rjw@sisk.pl> (raw)
In-Reply-To: <380D9721A8E2114485644D71E87C6AB20250BB3E@PNE-HJN-MBX01.wipro.com>

On Thursday 10 August 2006 08:23, rasmit.ranjan@wipro.com wrote:
> 
> > -----Original Message-----
> > From: Rafael J. Wysocki [mailto:rjw@sisk.pl]
> > Sent: Wednesday, August 09, 2006 11:34 AM
> > To: linux-pm@lists.osdl.org
> > Cc: Rasmit Ranjan (WT01 - Semiconductors & Consumer
> > Electronics); johannes@sipsolutions.net
> > Subject: Re: [linux-pm] suspend to disk not working due to
> > swap space failure
> >
> > On Wednesday 09 August 2006 05:05, rasmit.ranjan@wipro.com wrote:
> > >
> > > > -----Original Message-----
> > > > From: Johannes Berg [mailto:johannes@sipsolutions.net]
> > > > Sent: Tuesday, August 08, 2006 7:23 PM
> > > > To: Rasmit Ranjan (WT01 - Semiconductors & Consumer Electronics)
> > > > Cc: linux-pm@lists.osdl.org
> > > > Subject: Re: [linux-pm] suspend to disk not working due to swap
> > > > space failure
> > > >
> > > > rasmit.ranjan@wipro.com wrote:
> > > > > So i tried creating a new
> > > > > swap space by the command " mkswap". But still my swap
> > > > partition does
> > > > > not come up. I reboot my system but that did not work as well.
> > > > > What might be the problem?
> > > > Is it listed in /etc/fstab so swapon -a can find it?
> > >
> > > No it is not listed in /etc/fstab file. But `fdisk -l`
> > shows the swap
> > > partition.
> >
> > OK
> >
> > What's the name of your swap partition and how does your
> > /etc/fstab look like?
> >
> 
> Output of `fdisk -l` :
> 
> Disk /dev/hda: 40.0 GB, 40007761920 bytes
> 255 heads, 63 sectors/track, 4864 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1               1         383     3076416   12  Compaq
> diagnostics
> /dev/hda2   *         384        2612    17904442+   c  W95 FAT32 (LBA)
> /dev/hda3            2613        3887    10241437+  83  Linux
> /dev/hda4            3888        4864     7847752+   5  Extended
> /dev/hda5            3888        3952      522081   82  Linux swap /
> Solaris

So your swap is supposed to be /dev/hda5.  Please do

# mkswap /dev/hda5

[BTW, you could create the swap as a primary partition too.]

> Content of /etc/fstab :
> 
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> LABEL=/                 /                       ext3    defaults
> 1 1
> /dev/devpts             /dev/pts                devpts  gid=5,mode=620
> 0 0
> /dev/shm                /dev/shm                tmpfs   defaults
> 0 0
> /dev/proc               /proc                   proc    defaults
> 0 0
> /dev/sys                /sys                    sysfs   defaults
> 0 0
> 
> /dev/hdc                /media/cdrecorder       auto
> pamconsole,exec,noauto,managed 0 0

Please add the following line to your /etc/fstab:

/dev/hda5	swap	swap	defaults	0 0

Then (assuming you have run mkswap already) please do

# swapon -a

and check if it shows up in /proc/swaps .

Greetings,
Rafael

  reply	other threads:[~2006-08-10 20:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10  6:23 suspend to disk not working due to swap space failure rasmit.ranjan
2006-08-10 20:57 ` Rafael J. Wysocki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-11  4:51 rasmit.ranjan
2006-08-09  3:05 rasmit.ranjan
2006-08-09  6:04 ` Rafael J. Wysocki
2006-08-09  3:05 rasmit.ranjan
2006-08-08 13:13 rasmit.ranjan
2006-08-08 13:45 ` Rafael J. Wysocki
2006-08-08 13:53 ` Johannes Berg

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=200608102257.04400.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=johannes@sipsolutions.net \
    --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