login
Header Space

 
 

Shared swap partition

October 10, 2008 - 1:31am
Submitted by sbrbot on October 10, 2008 - 1:31am.
Linux

I'm going to create multiple boot environment on my notebook machine (Windows with several Linux distros). Is it good idea to create only one swap partition and share it among all installed linuix distros? I mean the same swap space (partition) will be used as /swap for all installed distros. Could one distro jeopardize another one if they all use this same swap space?

No problem at all

October 10, 2008 - 6:11am

I did it several times and no worries. Remember that you need at least the same amount of disk space that you already have as RAM (never less) if you plan use suspend-to-disk.

Good luck

suspend-to-disk

October 10, 2008 - 6:18am

suspend-to-disk saves the system state in the swap space, which precludes using the same space for other things, while there is a suspend image (i.e. until resume).

Am I wrong?

October 12, 2008 - 9:23am

If the system goes to suspend-to-disk, when you wake it up again it should go back exactly at same point. But, wait, if you boot to another system in grub instead of choosing the restoration, other system might thrash all swap content.

You are Right

October 13, 2008 - 7:03am

Hi Ho!

Yes, you are right. The other system will thrash the swap so that you cannot restore the system being suspended.

Best regards,
Eus

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary