Sharing a swap parition?

Tweakin

[H]ard|Gawd
Joined
Apr 14, 2003
Messages
1,280
Is it possible to share a swap partition between distros on a multi-boot setup? So, say I have a Gentoo, Ubuntu, and Fedora install on the same drive, would they all be able to access /dev/hda4 (a 2gb swap partition) without conflicts?
 
I can't see why not.

(Does the mkswap format change ... ever?)
(FreeBSD doesn't use mkswap, btw, it just silently accepts any partition as swap as long as it's writable. Yes, I've had accidents.)
 
You may need to play games with erasing and re-initializing the swap partition each boot, but it shouldn't be that bad.
 
Unless you are doing anything special with your swap partition(swsusping to it or something) then I doubt you'd have to do anything special when booting different distributions. Swap is swap.
 
Sharing swap partitions work fine. Most modern distro's will ask you what partition to use for swap, just point them to the same place and you are fine.
 
Back
Top