对交换空间进行一些更改(即删除并重新创建交换空间)后,我的 Kubuntu 11.10 失去了休眠功能。尽管该按钮已返回,但休眠似乎只是表面上起作用,直到您尝试恢复系统 - 但您发现它正在重新启动,而不是恢复。
swapon -s
:
Filename Type Size Used Priority
/dev/sda5 partition 10237948 0 -1
分区:
/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
UUID=0b109499-4feb-4ec1-b368-c7f945194e44 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
#/dev/sda5 none swap sw 0 0
/dev/sda5 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
答案1
也许你错过了这个?
“使交换分区适用于休眠(可选)”,第三小节在这个 Ubuntu 社区帮助站点中。我认为这正是您所需要的,告诉resume
部分initramfs
交换位置(通过 GRUB)。