Is there a way to detect whether a swap partition contains the memory of a hibernated system?
More specifically: suppose I have a Linux installation and that I hibernate it. This means that all the content of the RAM is dumped on the swap partition and then the computer is shut down.
Suppose that in the meantime I start another Linux on the same system (either because it resides on another partition, or because I use a live system). If I used the same swap partition, that would corrupt the data of the hibernated system, and I do not want that. So I would like to be able to tell whether a swap partition is keeping "interesting" data or just leftovers of a properly shut down system.
Is there a way to distinguish between these two cases just by looking to the content of the partition?
I am not asking whether data become corrupted or not. I am sure they will. I am asking if there is a way to detect whether the swap I would like to use contains data of an hibernated system, so that I can avoid turning it on if it does.