PDA

View Full Version : [all variants] Dual Boot Linux: Hibernate and Swap space



stlu
June 26th, 2012, 09:54 PM
I understand that in a dual boot situation, setting one of the OS to hibernate will leave a resume image that could get ugly is the other OS is booted while the hibernate image remains.

So, is it a sound measure to provide two swap partitions, or does the kernel scan all swap rather then referring to /etc/mtab when looking for a resume image? Or do I need to adopt a policy of never letting either OS hibernate?

Thanks

stlu
July 20th, 2012, 08:19 AM
Ok, well I guess I will just never let them hibernate, since nobody has an answer.

oldfred
July 21st, 2012, 06:23 PM
Ubuntu boots fast enough that I do not find much advantage to hibernation.

Any auto installs will find all swaps, but if you edit fstab you can remove any or all swaps if you want.

https://help.ubuntu.com/community/SwapFaq
HOWTO: Use swapfile instead of partition and hibernate
http://ubuntuforums.org/showthread.php?t=1042946

But even if swap is not written into, any writes into the other install will corrupt hibernation and cause major issues. Best to then set any mount to read only. Even a separate shared partition if data is in hibernation may cause issues. I prefer to share data like my Firefox & Thunderbird profiles in every install including XP and multiple Ubuntu's. I cannot hibernate if I want the advantage of sharing data.

I do not do it (yet), but many suggest virtual installs as a way to have both systems running. Then there is not rebooting. You do need a bit more RAM to maintain system functionality.
https://help.ubuntu.com/community/VirtualBox/Installation