openSUSE Forums > Archives > SF Archives > ARCHIVES - 64-bit » Cannot Suspend Swap Partion Not Available

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - 64-bit
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - 64-bit Questions specific to 64-bit systems running SUSE Linux
(Questions that apply to both 32-bit and 64-bit systems should be posted in the appropriate mixed architecture forums)

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-May-2008, 04:17
Martien van den Akker
Guest
 
Posts: n/a
Default

Hi,

I just moved from Ubuntu 7.10 i386 to OpenSuse 10.3 x86_64. After two weeks of struggling with my configuration I got it all working except for the suspend to disk.
When I choose to do that (either by closing the lid or by choosing suspend to disk in kpowersave) I get the following message in /var/log/pm-suspend.log:

===== Thu May 15 21:17:50 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
INFO: checking for suspend-to-disk prerequisites...
ERROR: resume partition '/dev/sda5' not active, can not suspend
WARNING: /var/run/pm-utils.inhibit will be created to prevent suspending!

And indeed it does not suspend but gets in session-lock mode.

I googled myself tiered, maybe some of you have a good suggestion?

Thanks in advance.
  #2 (permalink)  
Old 16-May-2008, 04:23
ken_yap
Guest
 
Posts: n/a
Default

Simple, activate the swap partition.
  #3 (permalink)  
Old 16-May-2008, 04:38
Martien van den Akker
Guest
 
Posts: n/a
Default

Quote:
Simple, activate the swap partition.
[/b]
How? According to your reply on my other question I did:
makker-laptop:~ # mkswap /dev/sdb5
/dev/sdb5: Device or resource busy
makker-laptop:~ # swapon /dev/sdb5
swapon: /dev/sdb5: Device or resource busy
makker-laptop:~ #
  #4 (permalink)  
Old 16-May-2008, 04:47
Dean
Guest
 
Posts: n/a
Default

If you need help with this, post results of

fdisk -l (to see what existing partitions you have)
cat /etc/fstab

If a swap partition exists, but is not enabled, you can do

swapon -a (to enable the swap cache)


Edit: Based on your previous post...

Quote:
makker-laptop:~ # swapon /dev/sdb5
swapon: /dev/sdb5: Device or resource busy[/b]
This is an indication that /dev/sda5 is mounted as swap. Useful commands:

swapon -s (to confirm this)
top (will show memory in use including swap)
  #5 (permalink)  
Old 16-May-2008, 04:57
Martien van den Akker
Guest
 
Posts: n/a
Default

makker-laptop:~ # swapon -s
Filename Type Size Used Priority
/dev/sdb5

Unfortunately the same error persists.
Since I have 4GB memory and the swap space is 4GB is the partition large enough to function as both swap and hibernate space?
  #6 (permalink)  
Old 16-May-2008, 05:08
Dean
Guest
 
Posts: n/a
Default

The swap needs to be as large as the system ram size.

Hibernate how to.
  #7 (permalink)  
Old 19-May-2008, 02:39
Martien van den Akker
Guest
 
Posts: n/a
Default

Quote:
The swap needs to be as large as the system ram size.

Hibernate how to.
[/b]
Thanks. I looked at this one earlier but it does not bring me closer to a solution.
As far as I can see is the swap-partition at least as large as my RAM (4GB).
But still I get the same out put when I try to suspend to disk.
I tried the suggestion to run pm-hibernate as root. But same thing.

Do you have another suggestion?
Since I regularly travel by train and have to switch trains on my trip it would be nice to be able to suspend.

Regards,
Martien

Quote:
If you need help with this, post results of

fdisk -l (to see what existing partitions you have)
cat /etc/fstab

If a swap partition exists, but is not enabled, you can do

swapon -a (to enable the swap cache)
Edit: Based on your previous post...
This is an indication that /dev/sda5 is mounted as swap. Useful commands:

swapon -s (to confirm this)
top (will show memory in use including swap)
[/b]
I'm sorry, I don't know if I understood this one correctly last Friday: but should it not be mounted as swap then?
I have a pretty clean installation (apart from addtional packages). So I should expect it to work out-of-the-box.
The partitioning is as how the installer suggested it.
  #8 (permalink)  
Old 19-May-2008, 03:05
Dean
Guest
 
Posts: n/a
Default

Post output of console commands (as root) fdsik -l and cat /etc/fstab

This will give a clearer picture hopefully...
  #9 (permalink)  
Old 19-May-2008, 03:19
Martien van den Akker
Guest
 
Posts: n/a
Default

Quote:
Post output of console commands (as root) fdsik -l and cat /etc/fstab

This will give a clearer picture hopefully...
[/b]
Ok. Here it comes:

makker-laptop:~ # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b16b3

Device Boot Start End Blocks Id System
/dev/sda1 1 19457 156288321 83 Linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000dfd7b

Device Boot Start End Blocks Id System
/dev/sdb1 1 3838 30820702 7 HPFS/NTFS
/dev/sdb2 * 3839 6449 20972857+ 83 Linux
/dev/sdb3 18874 19457 4690980 5 Extended
/dev/sdb4 6450 18873 99795780 83 Linux
/dev/sdb5 18874 19457 4690948+ 82 Linux swap / Solaris

Partition table entries are not in disk order



makker-laptop:~ # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_ST9160823AS_5NK0BXV1-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_ST9160823AS_5NK0BXV1-part4 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_ST9160823AS_5NK0BXV1-part1 /windows/C ntfs-3g user,users,gid=users 0 0
#/dev/disk/by-id/scsi-SATA_ST9160823AS_5NK0BXV1-part1 /windows/C ntfs-3g user,users,gid=users,fmask=133,dmask=022,locale=en _US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_ST9160823AS_5NK0BXV1-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD1600BEVE-_WD-WXE308AL0875-part1 /data ext3 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/disk/by-id/usb-ST340083_2A_344E46304B423244-0:0-part1 /Maasland ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.U TF-8 0 0
makker-laptop:~ #



Quote:
Post output of console commands (as root) fdsik -l and cat /etc/fstab

This will give a clearer picture hopefully...
[/b]
Maybe this is also usefull?
makker-laptop:~ # cat /var/log/pm-suspend.log
Mon May 19 10:17:48 CEST 2008: running hibernate hooks.
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/00c
lear =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/01l
ogging =====
hibernate initiated: Mon May 19 10:17:48 CEST 2008

Module Size Used by
lp 29736 0
iptable_filter 19840 0
ip_tables 37848 1 iptable_filter
ip6table_filter 19584 0
ip6_tables 31944 1 ip6table_filter
x_tables 37000 2 ip_tables,ip6_tables
vmnet 72992 16
parport_pc 58456 0
parport 56588 2 lp,parport_pc
vmmon 158908 0
af_packet 57100 2
ipv6 372600 16
snd_pcm_oss 67456 0
snd_mixer_oss 34176 1 snd_pcm_oss
snd_seq 74992 0
snd_seq_device 25620 1 snd_seq
cpufreq_conservative 24968 0
cpufreq_userspace 23680 0
cpufreq_powersave 18560 0
acpi_cpufreq 28040 1
microcode 31256 0
apparmor 58672 0
fuse 62512 3
loop 36356 0
dm_mod 77152 0
rfcomm 73896 2
l2cap 57344 9 rfcomm
arc4 18816 2
ecb 20480 2
blkcipher 23044 1 ecb
pcmcia 58136 0
nvidia 8896388 32
ohci1394 51272 0
ieee1394 115800 1 ohci1394
snd_hda_intel 369060 1
hci_usb 35100 2
snd_pcm 108680 2 snd_pcm_oss,snd_hda_intel
snd_timer 42632 2 snd_seq,snd_pcm
iwl3945 108644 0
bluetooth 89092 7 rfcomm,l2cap,hci_usb
yenta_socket 43916 1
rsrc_nonstatic 28288 1 yenta_socket
snd 84984 9 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device
,snd_hda_intel,snd_pcm,snd_timer
soundcore 25360 1 snd
snd_page_alloc 28048 2 snd_hda_intel,snd_pcm
pcmcia_core 58660 3 pcmcia,yenta_socket,rsrc_nonstatic
usbhid 58160 0
i2c_i801 25628 0
i2c_core 43648 2 nvidia,i2c_i801
bay 23552 0
tg3 123908 0
hid 43776 1 usbhid
ff_memless 22536 1 usbhid
firmware_class 27520 3 microcode,pcmcia,iwl3945
mac80211 194312 1 iwl3945
cfg80211 23824 1 mac80211
dock 27992 1 bay
intel_agp 44064 0
rtc_cmos 25016 0
rtc_core 38156 1 rtc_cmos
rtc_lib 19968 1 rtc_core
button 26528 0
battery 28552 0
ac 23048 0
joydev 27904 0
sg 53304 0
sd_mod 45824 7
ehci_hcd 50956 0
uhci_hcd 42144 0
usbcore 156456 5 hci_usb,usbhid,ehci_hcd,uhci_hcd
edd 26760 0
ext3 156688 3
mbcache 26248 1 ext3
jbd 89192 1 ext3
fan 22792 1
ata_piix 37636 5
libata 166800 1 ata_piix
scsi_mod 176536 3 sg,sd_mod,libata
thermal 36112 1
processor 59720 2 acpi_cpufreq,thermal

total used free shared buffers cached
Mem: 4056848 2523320 1533528 0 234020 1483084
-/+ buffers/cache: 806216 3250632
Swap: 4690940 0 4690940

===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/05l
ed =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/06a
utofs =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/10N
etworkManager =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/24d
ock =====
error: libhal_device_get_property_type: org.freedesktop.Hal.NoSuchProperty: No p
roperty smbios.system.version on device with id /org/freedesktop/Hal/devices/com
puter
Mon May 19 10:17:48 CEST 2008: running misc hooks for event undock.
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s
2disk-check =====
INFO: checking for suspend-to-disk prerequisites...
ERROR: resume partition '/dev/sda5' not active, can not suspend
WARNING: /var/run/pm-utils.inhibit will be created to prevent suspending!
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/45p
cmcia =====
ejecting PCMCIA cards...
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/50m
odules =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/55b
attery =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/80a
cpi-fan =====
===== Mon May 19 10:17:48 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/80v
ideobios =====
===== Mon May 19 10:17:50 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/94c
pufreq =====
===== Mon May 19 10:17:50 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/95l
ed =====
===== Mon May 19 10:17:50 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/99Z
grub =====
INFO: running prepare-grub
Skipping grub entry #1, because it has the noresume option
running kernel is grub menu entry 0 (vmlinuz-2.6.22.17-0.1-default)
preparing boot-loader: selecting entry 0, kernel /boot/2.6.22.17-0.1-default
grub-once: saving original /boot/grub/default
running '/usr/sbin/grubonce 0'
Using entry #0: openSUSE 10.3 - 2.6.22.17-0.1
time needed for sync: 0.9 seconds, time needed for grub: 0.0 seconds.
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/99i
nfo =====
Mon May 19 10:17:51 CEST 2008: done running hibernate hooks.
Mon May 19 10:17:51 CEST 2008: running thaw hooks.
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/99i
nfo =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/99Z
grub =====
INFO: running grub-once-restore
restoring original /boot/grub/default
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/95l
ed =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/94c
pufreq =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/80v
ideobios =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/80a
cpi-fan =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/55b
attery =====
method return sender=:1.1 -> dest=:1.100
boolean true
method return sender=:1.1 -> dest=:1.101
boolean true
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/50m
odules =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/45p cmcia =====
inserting PCMCIA cards...
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s 2disk-check =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/24d ock =====
error: libhal_device_get_property_type: org.freedesktop.Hal.NoSuchProperty: No p roperty smbios.system.version on device with id /org/freedesktop/Hal/devices/com puter
Mon May 19 10:17:51 CEST 2008: running misc hooks for event dock.
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/10N etworkManager =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/06a utofs =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/05l ed =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/01l ogging =====
===== Mon May 19 10:17:51 CEST 2008: running hook: /usr/lib/pm-utils/sleep.d/00c lear =====
Mon May 19 10:17:51 CEST 2008: done running thaw hooks.
  #10 (permalink)  
Old 19-May-2008, 04:49
Dean
Guest
 
Posts: n/a
Default

I think we're getting closer to the problem. Your fdisk results confirm /dev/sdb5 is the swap partition, yet pm-utils reports (in /var/log/pm-suspend.log):

Quote:
ERROR: resume partition '/dev/sda5' not active, can not suspend[/b]
Check that /boot/grub/menu.lst has the correct 'resume' entry included:

resume=/dev/sdb5
 
Page 1 of 2 1 2

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2