Hey, we started the Linuxdoc.org blog. You want to write a guest post about your favorite Linux related topic? Just send us a mail.The Linux community would appreciate it.

linuxdoc.org is proudly hosted on a VPS by hosting.co.uk at no charge. Thanks for the support guys!

You need instant help?

Just look at our collection of HOWTOs

You want to visit our Linuxdoc.org blog?

Click here to get the latest Linux news and read some interesting articles about our favorite OS.

Sharing one SWAP partition with multipal distros of linux

0 votes

Will i encounter any problems sharing 1 swap partition with different distros of Linux? I have a 40 gig thumb drive that i want cram as many different distros of Linux as possible. Is it possible to have them all use the same swap space?

asked Feb 12 by admin (520 points)

2 Answers

0 votes

The swap space is only necessary in case you run out of RAM. Normally it is not used for permanent storage of data. I say normally because when using the "suspend" feature instead of shutting down the PC copies a complete RAM image to the swap space. When booting a different distro this might lead to troubles (haven't tried yet).

However, when avoiding "suspend" you should be able to use the swap space with as many distros as you like.

answered Feb 12 by admin (520 points)
0 votes

Not a good idea. If your system crashes, linux uses the info in swap to recover, which works very nicely -- as long as you don't use the same swap for more than one system. If you use suspend to disk, swap is necessarily used. With todays huge disks, the small amount of space used by a swap partition is negligable. If you are really worried about disk space you can reduce the size of swap to just a little bigger than real memory, which would still allow recovery from a crash, or restrore from suspend-to-disk.

answered Feb 12 by admin (520 points)
...