LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 670|回复: 0

无法在休眠到硬盘后恢复

[复制链接]
发表于 2008-12-26 00:24:22 | 显示全部楼层 |阅读模式
hibernate、pm-hibernate都试过。查看日志,都是休眠关机正常,开机后“照常”开机,一点resume的迹象都没有。

/var/log/hibernate.log
  1. Starting suspend at Fri Dec 26 00:05:35 CST 2008
  2. hibernate: [01] Executing CheckLastResume ...
  3. hibernate: [01] Executing CheckRunlevel ...
  4. hibernate: [01] Executing LockFileGet ...
  5. hibernate: [01] Executing NewKernelFileCheck ...
  6. hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
  7. hibernate: [11] Executing XHacksSuspendHook1 ...
  8. hibernate: [30] Executing ServicesStop ...
  9. * Stopping pdnsd-online... [ ok ]
  10. * Bringing down interface ppp0
  11. *   Stopping pppd on ppp0
  12. [ ok ]
  13. * Stopping pdnsd... [ ok ]
  14. hibernate: [59] Executing RemountXFSBootRO ...
  15. hibernate: [89] Executing SaveKernelModprobe ...
  16. hibernate: [91] Executing ModulesUnloadBlacklist ...
  17. hibernate: [91] Executing ModulesUnloadBlacklist ...
  18. hibernate: [95] Executing XHacksSuspendHook2 ...
  19. hibernate: [98] Executing CheckRunlevel ...
  20. hibernate: [99] Executing DoSysfsPowerStateSuspend ...
  21. hibernate: Activating sysfs power state disk ...
复制代码

/var/log/pm-suspend.log
  1. Initial commandline parameters:
  2. Blacklisting 01grub.
  3. Blacklisting 10NetworkManager.
  4. Blacklisting 90clock.
  5. Blacklisting 01grub.
  6. Blacklisting 10NetworkManager.
  7. Blacklisting 90clock.
  8. Thu Dec 25 23:48:04 CST 2008: Running hooks for hibernate.
  9. /usr/lib64/pm-utils/sleep.d/00auto-quirk hibernate hibernate: success.
  10. /usr/lib64/pm-utils/sleep.d/00logging hibernate hibernate: Linux cell1 2.6.28 #3 SMP Thu Dec 25 18:52:29 CST 2008 x86_64
  11. Module                  Size  Used by
  12. xt_tcpudp               2304  3
  13. ipt_REJECT              2112  3
  14. nf_conntrack_ipv4       8920  2
  15. nf_defrag_ipv4           960  1 nf_conntrack_ipv4
  16. xt_state                1152  2
  17. nf_conntrack           42512  2 nf_conntrack_ipv4,xt_state
  18. iptable_filter          1344  1
  19. ip_tables              14096  1 iptable_filter
  20. x_tables               10760  4 xt_tcpudp,ipt_REJECT,xt_state,ip_tables
  21.              total       used       free     shared    buffers     cached
  22. Mem:       4033940     563108    3470832          0     168088     159888
  23. -/+ buffers/cache:     235132    3798808
  24. Swap:      4194296          0    4194296
  25. success.
  26. /usr/lib64/pm-utils/sleep.d/00powersave hibernate hibernate: success.
  27. /usr/lib64/pm-utils/sleep.d/01grub hibernate hibernate: disabled.
  28. /usr/lib64/pm-utils/sleep.d/49bluetooth hibernate hibernate: not applicable.
  29. /usr/lib64/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
  30. /usr/lib64/pm-utils/sleep.d/75modules hibernate hibernate: success.
  31. /usr/lib64/pm-utils/sleep.d/90chvt hibernate hibernate: success.
  32. /usr/lib64/pm-utils/sleep.d/90clock hibernate hibernate: disabled.
  33. /usr/lib64/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
  34. /usr/lib64/pm-utils/sleep.d/95led hibernate hibernate: not applicable.
  35. /usr/lib64/pm-utils/sleep.d/98smart-kernel-video hibernate hibernate: not applicable.
  36. /usr/lib64/pm-utils/sleep.d/99video hibernate hibernate: success.
  37. Thu Dec 25 23:48:06 CST 2008: performing hibernate
复制代码

内核cmdline
  1. dolvm quiet real_root=/dev/mapper/vg1-gentoo resume=/dev/mapper/vg1-swap root=/dev/ram0
复制代码

我的root和swap都在lvm上,内核和initrd是用“genkernel all --no-initrdmodules”生成的。到底是哪个环节出错了呢?

还有,/etc/init.d/hibernate-cleanup是否应该加入boot runlevel?我看它的介绍是把休眠信息都擦除掉,但是很多地方又都提到要把它加入。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表