this post was submitted on 06 Aug 2026
32 points (97.1% liked)

Linux

14782 readers
185 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

Hi all,

Is there a method out there that can "save a hibernate state" to disk, and just permanently boot immediately into that state every time?

It would be OK to lose data used after this point. And ot would also be OK if it required building a custom image based on the hardware, similar to embedded systems.

The goal is to be able to, as quickly as possible, spin up a GPU server when needed, but without using suspend/resume.

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] Die4Ever@retrolemmy.com 12 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Pretty sure you just have to enable hibernation and give it a file to write to? Then just set your PC to go into hibernate on idle

I kind of doubt you would have to change distros. What distro are you on now?

[–] Fmstrat@lemmy.world 1 points 2 weeks ago

Oh hibernate to LUKS I have working. What I want is a permanent static version of that. I.E. boot to the same spot every time. This way I'm not writing 64GB to disk every time.

[–] HelloRoot@lemy.lol 0 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

For my two systems (pc and laptop)with 32GB RAM each it takes ~4 minutes to boot from hibernation.

Which is expexted afaik.

Thats the opposite of "instant".

[–] khleedril@cyberplace.social 6 points 2 weeks ago (1 children)

@HelloRoot @Die4Ever There is something wrong with your setup.

[–] HelloRoot@lemy.lol 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

No not really.

It's how long it takes to read 32GB from my swap. 170 MB/s continuous read speed ≈ 188 sec (3 min 8 sec) add the normal boot time to it (bios, grub, kernel initramfs) and you get the 4 minutes.

When the system boots cold it doesn't have to read 32GB, just 0.5-2GB maybe.

[–] Fmstrat@lemmy.world 4 points 2 weeks ago (1 children)

If you are writing the full 32GB, something is wrong. Shared memory isn't written twice.

[–] HelloRoot@lemy.lol 1 points 2 weeks ago

You might be right. But I still have no clue how to properly set it up.