转自: https://www.ibm.com/support/knowledgecenter/en/linuxonibm/com.ibm.linux.z.lgdd/lgdd_r_hibkernelparameter.html

You configure the suspend and resume support by adding parameters to the kernel parameter line.

Read syntax diagramSkip visual syntax diagram suspend and resume kernel parameter syntax

-resume=--+---------------------+--+-----------+->< '- no_console_suspend-' '- noresume-'

where:

resume=

specifies the standard device node of the swap partition with the data that is required for resuming the Linux instance.

no_console_suspend

prevents Linux consoles from being suspended early in the suspend process. Without this parameter, you cannot see the kernel messages that are issued by the suspend process.

noresume

boots the kernel without resuming a previously suspended Linux instance. Add this parameter to circumvent the resume process, for example, if the data written by the previous suspend process is damaged.

Example

To use a partition /dev/disk/by-path/ccw-0.0.2f50-part1 as the swap partition and prevent Linux consoles from being suspended early in the suspend process specify:

resume=/dev/disk/by-path/ccw-0.0.2f50-part1 no_console_suspend

The example uses a "by-path" definition of the disk to ensure that the correct device is used, for example, after a reboot.

标签: boot

添加新评论