Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two Ubuntu linux partitions, and each has its own swap space. Is it possible to make them use the same swap space?

share|improve this question

2 Answers 2

up vote 8 down vote accepted

You just have to edit your /etc/fstab files to list the same partition as swap for both. Beware however that if you hibernate one and then start the other the "hibernated" state will be gone.

share|improve this answer

Yes they can both use the same swap space. Just make sure the entry for them in /etc/fstab is the same for each distribution or you'll get errors about invalid swap signatures.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.