LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-22-2005, 08:07 PM   #1
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Rep: Reputation: 15
Same Swap for two Linuxes?


Is it a good idea to use one and the same swap-partition for two diferent Linux distributions installed in a dual-boot-system? I figure they don't run at the same time, but I don't know if anything is left on the swapdisk after Linux shuts down that could be mangled when using the same swapdisk with another Linux then...
 
Old 04-22-2005, 08:10 PM   #2
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

Rep: Reputation: 17
It's a good idea.
 
Old 04-23-2005, 03:58 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I use one swap partition for all my Linux distros and I everything works fine.
 
Old 04-24-2005, 11:33 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,674
Blog Entries: 9

Rep: Reputation: 45
The most that I had when I ran mulitple distros was 3, they had common /boot, /swap and /home partitions. Only the /root was seperate - I never did manage to get 2 booting at the same time!

regards

John
 
Old 04-24-2005, 11:56 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Re: Same Swap for two Linuxes?

Quote:
Originally posted by artificialGekko
I figure they don't run at the same time, but I don't know if anything is left on the swapdisk after Linux shuts down that could be mangled when using the same swapdisk with another Linux then...
Once you shutdown or reboot, anything in swap is wiped out. And swap should rarely be used doing routine computer stuff. If you notice you ever start using a lot of swap, either you need more ram or something is wrong with your ram.
 
Old 04-25-2005, 01:11 AM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
The only time it's an issue is if you use software-suspend/hibernate. Ram is saved to swap in that circumstance, and you could potentially lose quite a bit of data if you brought up another distro after suspending.

--Shade
 
Old 04-25-2005, 04:26 AM   #7
blabla
LQ Newbie
 
Registered: Jan 2005
Posts: 17

Rep: Reputation: 0
I've als got one swap for two distros and everything works fine.

Does anyone have any idea how this will work with the new software (incl. in Suse 9.3) where you can have any number of OSs running concurrently?

Cheers

Ingo
 
Old 04-26-2005, 09:38 AM   #8
artificialGekko
Member
 
Registered: Mar 2005
Posts: 77

Original Poster
Rep: Reputation: 15
Thanks for your answers.

And also sharing things like the /home-partition on multiple linuxes is a pretty awesome idea!
 
Old 04-26-2005, 09:43 AM   #9
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
It could be a little more complicated to share /home than sharing swap. You may want to have different custom configurations that use the same filename. I hope I do not violate the forum rules when I post this link (since it is in german):
http://www.linux-user.de/ausgabe/200...tri/index.html
They have some interesting hints how to accomplish a common /home.
 
Old 04-26-2005, 09:53 AM   #10
blabla
LQ Newbie
 
Registered: Jan 2005
Posts: 17

Rep: Reputation: 0
common home partitions might be undesirable as, depending on which distros you are planning to install, they might interfere with each other's stuff... (different version of KDE, Gnome etc.).

you might prefer to have an extra multimedia partition and one for work, but there is no real reason to separate the two...

have fun

ingo
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to have 2 linuxes? caminoix Linux - Newbie 6 06-08-2005 02:43 AM
Problems with Many Linuxes, *BSDs Kenji Miyamoto Linux - General 10 05-22-2005 11:49 PM
Two Linuxes, one email george_mercury Linux - Software 3 07-04-2004 02:14 PM
Dual-boot Two Linuxes undeadpenguin Linux - Newbie 1 10-16-2003 04:52 PM
Singlr Swap Partiotion for Multiple Linuxes? sarmadys Linux - General 3 10-09-2003 02:48 PM


All times are GMT -5. The time now is 05:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration