LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2011, 11:00 AM   #1
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Rep: Reputation: 1
How many SWAP partition needed for 2 Linux OS?


How many SWAP partition needed for 2 Linux OS in a laptop with a single hard disc?

Is there any advantages if i set two swap partitions?
 
Old 11-17-2011, 11:13 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You only need one swap partition. There will be no advantages in having more than one swap partition.
 
1 members found this post helpful.
Old 11-17-2011, 11:27 AM   #3
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
Thank you
 
Old 11-17-2011, 11:47 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
With two swap partitions and configuring so each Linux install uses only one, you could get the ability to:

Suspend to disk in one install
Use the other for a while
Shutdown or suspend that
Resume the first suspended system.

That might be tricky to get working even if you have two swap partitions. It probably isn't something you even want to be able to do.

Quote:
Originally Posted by gabytf View Post
Is there any advantages if i set two swap partitions?
I stretched pretty hard above to reach the "maybe" answer to your question. The more likely answer is "no".

If the swap partition(s) are shared, I don't think you could resume a suspended Linux if you used the other one after suspending.

Last edited by johnsfine; 11-17-2011 at 11:50 AM.
 
1 members found this post helpful.
Old 11-18-2011, 02:07 AM   #5
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
Thank you both for the above sharing.
 
  


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
Can swap file or a swap partition be mounted and read? Mr-Bisquit Linux - General 3 06-08-2009 02:16 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Swap partition needed for every drive? lagu2653 Linux - Hardware 2 06-21-2005 05:15 PM
SWAP partition fix needed for funky configuration BarkingBonefish Linux - Software 2 02-12-2004 09:15 AM
is swap partition really needed ? rajorshi Linux - General 10 07-27-2003 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 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
Open Source Consulting | Domain Registration