Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #273294 > unrolled thread
| Started by | "YOYO" <1530974299@qq.com> |
|---|---|
| First post | 2024-09-26 12:10 +0200 |
| Last post | 2024-09-27 03:30 +0200 |
| Articles | 9 — 6 participants |
Back to article view | Back to linux.debian.user
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
| From | "YOYO" <1530974299@qq.com> |
|---|---|
| Date | 2024-09-26 12:10 +0200 |
| Subject | Is there any way to STD in Debian? |
| Message-ID | <JqTBD-eWsx-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [next] | [standalone]
| From | "Alexander V. Makartsev" <avbetev@gmail.com> |
|---|---|
| Date | 2024-09-26 13:10 +0200 |
| Message-ID | <JqUxH-eX0L-5@gated-at.bofh.it> |
| In reply to | #273294 |
[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
[toc] | [prev] | [next] | [standalone]
| From | eben@gmx.us |
|---|---|
| Date | 2024-09-26 15:40 +0200 |
| Message-ID | <JqWSS-eYh1-3@gated-at.bofh.it> |
| In reply to | #273295 |
On 9/26/24 07:04, Alexander V. Makartsev wrote: > 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. >> > Do you have a swap partition? It has to be sufficient in size and is > necessary for Hibernation to work. While that is the easiest way by far, I was recently told that the "resume-from" kernel option can enable hibernation to a non-swap area. I think. I have not done this. Look in the archive for a thread this month (9/2024) entitled "hibernate area". But yes, I use hibernation every night. -- "It can be shown that for any nutty theory, beyond-the-fringe political view or strange religion there exists a proponent on the Net. The proof is left as an exercise for your kill-file." -- Bertil Jonell
[toc] | [prev] | [next] | [standalone]
| From | Joe <joe@jretrading.com> |
|---|---|
| Date | 2024-09-26 20:40 +0200 |
| Message-ID | <Jr1zb-f1as-1@gated-at.bofh.it> |
| In reply to | #273299 |
On Thu, 26 Sep 2024 09:32:13 -0400 eben@gmx.us wrote: > On 9/26/24 07:04, Alexander V. Makartsev wrote: > > 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. > >> > > Do you have a swap partition? It has to be sufficient in size and is > > necessary for Hibernation to work. > > While that is the easiest way by far, I was recently told that the > "resume-from" kernel option can enable hibernation to a non-swap > area. I think. I have not done this. Look in the archive for a > thread this month (9/2024) entitled "hibernate area". > https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition Basically create a swap file and configure it not to swap. -- Joe
[toc] | [prev] | [next] | [standalone]
| From | "Alexander V. Makartsev" <avbetev@gmail.com> |
|---|---|
| Date | 2024-09-26 17:30 +0200 |
| Message-ID | <JqYBj-eZsk-3@gated-at.bofh.it> |
| In reply to | #273295 |
[Multipart message — attachments visible in raw view] — view raw
On 26.09.2024 19:38, Nicholas Geovanis wrote: > > On Thu, Sep 26, 2024, 9:23 AM Alexander V. Makartsev > <avbetev@gmail.com> wrote: > > 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. > > > Do the usual rules-of-thumb for swap sizing apply in the case of > hibernation? Or should it be larger than that? My PC has 48GB of RAM and 8GB swap partition, so I have to check how much memory is used with "$ free -h" before hibernation. In my case it is usually around 6GB, after I close some memory hogs (VMs) and "sync" storage, so 8GB swap partition is enough for me. -- With kindest regards, Alexander. Debian - The universal operating system https://www.debian.org
[toc] | [prev] | [next] | [standalone]
| From | "Alexander V. Makartsev" <avbetev@gmail.com> |
|---|---|
| Date | 2024-09-26 17:50 +0200 |
| Subject | Re: Re: Is there any way to STD in Debian? |
| Message-ID | <JqYUF-eZyF-5@gated-at.bofh.it> |
| In reply to | #273295 |
[Multipart message — attachments visible in raw view] — view raw
On 26.09.2024 19:36, YOYO wrote: > Hi Alexander, Eben, and everyone in list, > Thank you for your replies. > The Debian 12 is running in VirtulBox 7.0.20. And I only assigned 2048 > MB RAM to it. > I'm pretty sure that I have setup a big enough SWAP of around 8 GB > when installing Debian 12. > When I click "Sleep" button in Windows running in VirtualBox 6.x, the > virtual machine will light the screen up again once the screen is off. > However, in this case, Debian 12 doesn't light the screen up nor > power-off the virtual machine. So the virtual machine goes into a > state that OS is not running, power is still on. And I have no way to > wake the OS up. All I can do is to fouce power-off and re-start it, > just to found all running tasks gone. I don't use VirtualBox and I think this is VirtualBox issue not Debian issue. VirtualBox is not even in Stable repos: $ rmadison virtualbox virtualbox | 7.0.20-dfsg-1 | unstable-debug/contrib | source virtualbox | 7.0.20-dfsg-1 | unstable/contrib | source, amd64 Maybe it is better to use a "save machine state" feature of the VirtualBox instead? https://www.virtualbox.org/manual/topics/Introduction.html#intro-save-machine-state -- With kindest regards, Alexander. Debian - The universal operating system https://www.debian.org
[toc] | [prev] | [next] | [standalone]
| From | Max Nikulin <manikulin@gmail.com> |
|---|---|
| Date | 2024-09-27 03:50 +0200 |
| Subject | Re: Re: Is there any way to STD in Debian? |
| Message-ID | <Jr8hj-f5eO-5@gated-at.bofh.it> |
| In reply to | #273295 |
On 26/09/2024 21:36, YOYO wrote:
> The Debian 12 is running in VirtulBox 7.0.20. And I only assigned 2048
> MB RAM to it.
[...]
> All I can do is to fouce power-off and re-start it, just to found all running tasks gone.
Have you read logs from the previous boot ("journalctl -b -1" as root)?
Are you sure that Debian was not running? I would arrange port
forwarding and would try to connect to VM using ssh to confirm that it
is not a GUI issue.
I have no idea if some stuff like virtualbox guest additions might be
involved.
[toc] | [prev] | [next] | [standalone]
| From | didier gaumet <didier.gaumet@gmail.com> |
|---|---|
| Date | 2024-09-27 00:10 +0200 |
| Message-ID | <Jr4Qq-f3fH-13@gated-at.bofh.it> |
| In reply to | #273294 |
Le 26/09/2024 à 11:51, YOYO a écrit : > 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 Hello, Is Secure Boot enabled? If so that would explain why hibernation does not work: https://wiki.debian.org/Hibernation#UEFI_.2F_Secure_Boot
[toc] | [prev] | [next] | [standalone]
| From | "YOYO" <1530974299@qq.com> |
|---|---|
| Date | 2024-09-27 03:30 +0200 |
| Subject | Re: Is there any way to STD in Debian? |
| Message-ID | <Jr7XX-f57d-1@gated-at.bofh.it> |
| In reply to | #273310 |
[Multipart message — attachments visible in raw view] — view raw
Hi, Well it's in VitrualBox legacy BIOS mode. And according to Alexander's suggestions, this may caused by VirtualBox instead of Debain. Thank you for your reply. Best Regards Richard. ------------------ Origin ------------------ From: "didier gaumet" <didier.gaumet@gmail.com>; Time: 2024年9月27日(星期五) 上午6:08 To: "debian-user"<debian-user@lists.debian.org>; Subject: Re: Is there any way to STD in Debian? Le 26/09/2024 à 11:51, YOYO a écrit : > 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 Hello, Is Secure Boot enabled? If so that would explain why hibernation does not work: https://wiki.debian.org/Hibernation#UEFI_.2F_Secure_Boot
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web