swap file for hibernation or not?

Does openSUSE support hibernation or suspend to disk via a swap file (not swap partition)?

It is my current understanding that the older kernel method that could hibernate to a swap file easily is not used/reliable anymore and that user space programs are not supporting it either. Does anyone know the current state of things with openSUSE 12.2 and what about 12.3?

At this point I am thinking of shrinking a windows partition to put a swap partition onto an SSD disk for hibernation.

Not much into the technical background of hibernation / suspend, but here’s the SDB pages

These apply to 11.3 and lower, but might still provide the info you need, or at least make a good starting point.

On 2013-01-14 19:56, anika200 wrote:
> Does openSUSE support hibernation or suspend to disk via a swap file
> (not swap partition)?

I remember a thread where someone managed to get it running that way,
but I don’t remember exactly where, forum or mail list.

Me, I would not do it, too many loops to jump through.

Carlos E. R. (12.1 test at Minas-Anor)

Yes, I agree a good starting point. Thank you. I have already read through those and some from other distro’s and some things in kernel mail list. I still can not figure out what the current state is exactly. I think I will stick to partitions as per Carlos comment and not worry about it. I think I can actually pick up a 30GB SSD for $40 now anyway. If anyone is actually using the file method with 12.2 or 12.3 I would like to know the experience as far as reliability and speed in openSUSE.

I have the same question as topic starter. I was able to hibernate with swap file (file was located on partitions with XFS file system) but could not resume (instead of loading image into memory system starts to check and fix errors on file systems). I was using this https://ubuntuforums.org/showthread.php?t=1042946 HOWTO. And yes, suspend with swap file work fine without any configuration (just create and mount swap file).