On 26.09.2024 14:51, YOYO wrote:
Hello everyone,
Recently, I need to cut off power supply with all my running tasks saved.
But it seems that the hibernate mode provided in Debian only allows me to
Suspend to Ram(STR, or S3 mode in ACPI).
Is there any way to Suspend to Disk (STD, or S4 Mode in ACPI) in Debian?
Thank you for your replies in advance.
Best Regards,
Richard
Do you have a swap partition? It has to be sufficient in size and is
necessary for Hibernation to work.
You need to edit "/etc/initramfs-tools/conf.d/resume" file to provide an
UUID of a swap partition, or a path,
in case of LVM, to a swap partition and run:
# update-initramfs -u
Example for traditional disk partitioning scheme:
$ cat /etc/fstab | grep -iE "swap"
UUID=e990fa6d-3f82-4d65-b6a1-542e240718fc none swap sw 0 0
$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=e990fa6d-3f82-4d65-b6a1-542e240718fc
Example for LVM partitioning scheme:
$ cat /etc/fstab | grep -iE "swap"
/dev/vg0-nvme/lv1-swap none swap sw 0 0
$ cat /etc/initramfs-tools/conf.d/resume
RESUME=/dev/vg0-nvme/lv1-swap
--
With kindest regards, Alexander.
Debian - The universal operating system
https://www.debian.org