4 ms·
Does it need a dedicated partition or can it be created with a loopback file on disk?
by _joel 6y ago
Does it need a dedicated partition or can it be created with a loopback file on disk?
- rhn_mk1 6y agoWake up from hibernation kicks in early in the boot process, before file systems are resumed. You must have a partition for that.
- _joel 6y agoI think it is possible https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_P...
- exikyut 6y agoThe default kernel resume implementation will look for a hibernate header in the visible swap partitions on boot. If you boot into an initramfs and make additional swap partitions visible, eg via losetup, you can then write the device major:minor into /sys/power/resume and kaboom the kernel will freeze userspace, read the hibernation image out of there, then jump to it.
- l3s2d 6y agoA swapfile can be used in place of a swap partition. https://wiki.archlinux.org/index.php/Swap#Swap_file https://wiki.archlinux.org/index.php/Swap#Swap_file
- AshamedCaptain 6y agoAt the cost of being practically forced to write your own initramfs, since few of the distro ones actually support this. Surprisingly how few projects use uswsusp anymore...