Le 21/02/2018 à 14:07, Louis Wust a écrit :
Is your swap partition large enough to hold the contents of your RAM? It doesn't need to match (or exceed) the system memory capacity, but it should be reasonably large. Suspend-to-disk won't work if it is too small, but I'm not sure whether it would fail in the way that you have described.
I don't think so. It would fail during suspend, not resume.
You can also test the swap partition directly using badblocks(8): swapoff /dev/sda2 (assuming that swap is on sda2, for example) badblocks -vw /dev/sda2
Note that this destroys the swap metadata, including the UUID used to identify it in /etc/fstab and in the initramfs. You will have to recreate the swap with the same UUID using mkswap.