LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-25-2003, 10:06 AM   #1
Geeky_Kid
LQ Newbie
 
Registered: Dec 2003
Location: 22 Degrees by 44 Degrees
Distribution: Slack, OneBase, MDK mostly
Posts: 20

Rep: Reputation: 0
Can I have more than 1 Swap partition?


Guys,

If I have a SWAP partition and while installing another OS, I add another SWAP partition then is it:

(a) possible?
(b) how do I access it?
 
Old 12-25-2003, 10:07 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yes. Add it to /etc/fstab just like the other one.
 
Old 12-25-2003, 10:52 AM   #3
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
But why do u need to?

U can run all your linux distros off a songle swap partition.
 
Old 12-25-2003, 11:09 PM   #4
Geeky_Kid
LQ Newbie
 
Registered: Dec 2003
Location: 22 Degrees by 44 Degrees
Distribution: Slack, OneBase, MDK mostly
Posts: 20

Original Poster
Rep: Reputation: 0
Won't the distro be confused if I have two different sized SWAP partition enteries in /etc/fstab?

Which one will it use?
 
Old 12-26-2003, 01:17 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I thought you wanted to use both? Like LinuxLala says, the more usual way is multiple distros with a single swap rather than multiple swaps with a single distro but if you want to, for whatever reason, it's no problem. Basically, you can look at it like you've got 512 megs of physical RAM. So you add 256 megs of swap and you're basically creating a single memory area of 768 - 256 of which is slow. If you add a second swap it's no more 'confusing' than having a / and a /home of storage - you just extend your 'virtual' RAM to a gig, say. Long story short, it'll just use both.
 
Old 12-26-2003, 01:26 AM   #6
Geeky_Kid
LQ Newbie
 
Registered: Dec 2003
Location: 22 Degrees by 44 Degrees
Distribution: Slack, OneBase, MDK mostly
Posts: 20

Original Poster
Rep: Reputation: 0
Great. Thanks digiot and LinuxLala.
 
  


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
Swap partition Mojojo Linux - Hardware 10 01-20-2005 05:12 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
Should I be using a SWAP partition? Gene126 Linux - General 3 08-14-2002 09:03 PM
swap.partition anoop_chandran Linux - General 3 12-28-2001 09:48 AM
Swap partition Thomas_Delrue Linux - Newbie 3 07-12-2001 08:35 PM

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

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