Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #273295

Re: Is there any way to STD in Debian?

From "Alexander V. Makartsev" <avbetev@gmail.com>
Newsgroups linux.debian.user
Subject Re: Is there any way to STD in Debian?
Date 2024-09-26 13:10 +0200
Message-ID <JqUxH-eX0L-5@gated-at.bofh.it> (permalink)
References <JqTBD-eWsx-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is there any way to STD in Debian? "YOYO" <1530974299@qq.com> - 2024-09-26 12:10 +0200
  Re: Is there any way to STD in Debian? "Alexander V. Makartsev" <avbetev@gmail.com> - 2024-09-26 13:10 +0200
    Re: Is there any way to STD in Debian? eben@gmx.us - 2024-09-26 15:40 +0200
      Re: Is there any way to STD in Debian? Joe <joe@jretrading.com> - 2024-09-26 20:40 +0200
    Re: Is there any way to STD in Debian? "Alexander V. Makartsev" <avbetev@gmail.com> - 2024-09-26 17:30 +0200
    Re: Re: Is there any way to STD in Debian? "Alexander V. Makartsev" <avbetev@gmail.com> - 2024-09-26 17:50 +0200
    Re: Re: Is there any way to STD in Debian? Max Nikulin <manikulin@gmail.com> - 2024-09-27 03:50 +0200
  Re: Is there any way to STD in Debian? didier gaumet <didier.gaumet@gmail.com> - 2024-09-27 00:10 +0200
    Re: Is there any way to STD in Debian? "YOYO" <1530974299@qq.com> - 2024-09-27 03:30 +0200

csiph-web