I am using dual-boot on my laptop, but I only have 1 swap partition which is shared. Hibernation is enabled for both OSes I have installed.
All works well except the case when I hibernate, and then choose the "wrong" OS from the GRUB menu - this leads to data loss from the hibernated session.
Question: is there any way to have such a configuration working properly? Ideally I'd like to automatically boot the system that has been hibernated, so data is not lost?
My SSD is just 120GB and that is why I would like to avoid having separate swap partitions.
Edit (additional info):
The two OSes I am using:
- Kubuntu LTS
- newest Kubuntu (sometimes it changes if I want to experiment with another distribution)
Both OSes update GRUB in case new kernel is available. GRUB configuration is the same. GRUB is installed on /dev/sda
I am using ext4 on both system partitions. No partition is being encrypted.