LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-11-2005, 05:29 AM   #1
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Sharing swap partitions


Can SUSE share its swap partition with another Linux install?
 
Old 10-11-2005, 07:40 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I can't imagine why it wouldn't be able to. When you install your other distro, just choose to use your existing swap partition, rather than create a new one. There should be an option for that somewhere.
 
Old 10-11-2005, 07:48 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,830
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
?

Do you mean when you're booted into one distro on a single machine then want to shut it down and boot into a different one on the same machine? If so it seems it would be OK.

If however you mean you have external storage and want to have two separate running servers share the same swap partition I doubt it would work. Even if you could somehow get that going you wouldn't want to because neither OS would respect items paged out to the disk by the other OS as they wouldn't know about it.
 
Old 10-12-2005, 04:50 AM   #4
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Nylex: I imagined I should be able to. Thanks.

jlightner: the first one
 
Old 10-12-2005, 06:21 AM   #5
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
Re: Sharing swap partitions

Quote:
Originally posted by Jongi
Can SUSE share its swap partition with another Linux install?
Hi!
Definitely YES! And not only SUSE but any other LINUX distribution. And not only two but a lot. Keep in mind that two such distributions can not be active concomitantly. Therefore each one (among a lot) if active, activates in turn the swap partition for its own use and disactivate it when shutting down.
 
Old 10-12-2005, 07:52 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,793

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
Provided there is no persistant data in swap, the enthusiastic advice offered above might hold.

An example of where it won't is Suse on a laptop, and suspend2 in use.
Nothing is ever as simple as it seems.
 
Old 10-12-2005, 08:02 AM   #7
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Well it's a desktop pc which will either have SUSE or FC4 running at any one time
 
Old 10-12-2005, 08:36 AM   #8
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
Hello!
Thanks syg00 for pointing out! Frankly, when I learned the idea of sharing swap (idea which I did verify and I'm now currently applying) I did ask miself whether or not "swap" could retain in some way useful data. So since not knowing of any such "way" I concluded that no way does even exist. Now I learn there is a "way" anyway
Quote:
Originally posted by syg00
Provided there is no persistant data in swap, the enthusiastic advice offered above might hold.

An example of where it won't is Suse on a laptop, and suspend2 in use.
Nothing is ever as simple as it seems.
Thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 swap partitions librano Linux - Newbie 6 08-25-2004 01:55 PM
eight swap partitions? linuxtesting2 Linux - General 7 07-20-2004 06:15 AM
/ and swap partitions (but want more) How to? acummings Slackware 3 07-17-2004 12:33 AM
swap partitions chappy011 Linux - Newbie 2 03-18-2002 01:44 PM
swap partitions rakemup Linux - Software 5 12-10-2001 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration