LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 12:00 PM   #1
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 14, -current. Slackware 14.1
Posts: 170

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, 12:13 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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, 12:27 PM   #3
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 14, -current. Slackware 14.1
Posts: 170

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

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
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 12:50 PM.
 
1 members found this post helpful.
Old 11-18-2011, 03:07 AM   #5
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 14, -current. Slackware 14.1
Posts: 170

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 03:16 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 11:46 AM
Swap partition needed for every drive? lagu2653 Linux - Hardware 2 06-21-2005 06:15 PM
SWAP partition fix needed for funky configuration BarkingBonefish Linux - Software 2 02-12-2004 10:15 AM
is swap partition really needed ? rajorshi Linux - General 10 07-27-2003 08:12 PM


All times are GMT -5. The time now is 02:50 PM.

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