我的 grub 引导设置中的 resume= 用于什么?

Ban*_*jer 7 grub sles

我一直注意到resume=/dev/foo/boot/grub/menu.lst 中的条目,它对应于交换分区,但我从未质疑过它的用途。

title SUSE Linux Enterprise Server 11 SP2 - 3.0.13-0.27 (default)
    root (hd0,0)
    kernel /boot/vmlinuz-3.0.13-0.27-default root=/dev/sda1 insmod=qla4xxx resume=/dev/sda2 crashkernel=256M-:128M showopts
    initrd /boot/initrd-3.0.13-0.27-default
Run Code Online (Sandbox Code Playgroud)

今天早上我正在重新启动服务器,看到一条引导消息指出Starting manual resume from disk. 听起来像是某种休眠。那么究竟什么是简历?我正在尝试使用 Google 搜索它,但我看到的只是 Linux 管理员的简历/简历 :)。

Ren*_*nan 6

内核参数列表

resume=     [SWSUSP]
        Specify the partition device for software suspend
Run Code Online (Sandbox Code Playgroud)

在哪里

SWSUSP  Software suspend (hibernation) is enabled.
Run Code Online (Sandbox Code Playgroud)

所以是的,它用于冬眠。

  • 感谢您提供信息和链接。删除 `resume=` 选项并指定 `noresume` 选项会禁用它。 (3认同)