This question already has an answer here:

I am trying to dual boot two Linux distributions. My machine is running MintOs and I am trying to install kali Linux. I need to know whether I have to create a new swap area or can I use the old one.

marked as duplicate by Gilles, don_crissti, Kusalananda, Wildcard, icarus Feb 1 '17 at 1:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    beware hibernation though. – steve Jan 31 '17 at 19:06

Only one OS should be running at any given time so sharing the same swap partition between the two OS should be fine.

  • What about swap files – jiggunjer Feb 1 '17 at 17:43

A Swap partition is just used for storing temporary files and often for swapping primary memory contents when there is low primary memory and other program is being stacked up in memory. This allows the OS to temporarily store the currently inactive portions of some programs in Swap partition and load new ones. Since there would be only a single OS running at a time, and the Swap partition being just another hard disk partition with a "swap" flag, you can allocate the same space as Swap space for multiple OS.

Tldr; It is possible to share the swap space between two OS and you don't need to create separate swap space.

Have a look at this

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