On Thursday 10 August 2006 08:23, rasmit.ranjan at wipro.com wrote: > > > -----Original Message----- > > From: Rafael J. Wysocki [mailto:rjw at sisk.pl] > > Sent: Wednesday, August 09, 2006 11:34 AM > > To: linux-pm at lists.osdl.org > > Cc: Rasmit Ranjan (WT01 - Semiconductors & Consumer > > Electronics); johannes at 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 at wipro.com wrote: > > > > > > > -----Original Message----- > > > > From: Johannes Berg [mailto:johannes at sipsolutions.net] > > > > Sent: Tuesday, August 08, 2006 7:23 PM > > > > To: Rasmit Ranjan (WT01 - Semiconductors & Consumer Electronics) > > > > Cc: linux-pm at lists.osdl.org > > > > Subject: Re: [linux-pm] suspend to disk not working due to swap > > > > space failure > > > > > > > > rasmit.ranjan at 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