Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 1st, 2006, 8:54 AM   #1
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
Sharing a swap partition between Linux installations

Is this possible? E.g. can I have Slackware on one partition, Suse on another, and a third partition which each uses as a swap when it's running?
Klipt is offline   Reply With Quote
Old Jan 1st, 2006, 9:01 AM   #2
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
yes it is.
linuxpimp20 is offline   Reply With Quote
Old Jan 1st, 2006, 9:15 AM   #3
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
Thanks. Will try it then...
Klipt is offline   Reply With Quote
Old Jan 1st, 2006, 9:25 AM   #4
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
the swap doesn't even have to be on the same drive. I've had cases where a distro on hda and hdb where sharing the swap oh hda. Although maybe that was possible cuz there was a swap for the distro on hdb on hdb cuz at the time i didn't know they could share the swap (Both distros used both swaps)
linuxpimp20 is offline   Reply With Quote
Old Jan 1st, 2006, 10:30 AM   #5
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
Quote:
Originally Posted by linuxpimp20
the swap doesn't even have to be on the same drive. I've had cases where a distro on hda and hdb where sharing the swap oh hda. Although maybe that was possible cuz there was a swap for the distro on hdb on hdb cuz at the time i didn't know they could share the swap (Both distros used both swaps)
It doesn't matter, as long as the OS knows where the swap partition is then it would be used for multiple distros, a place for windows temp files over a network, whatever.. The actual idea behind UNIX was that becuase you can specify the mount point for drives, that each "main" directory would have it's own physical drive (or at least it's own parition). /var/, /etc/, /usr/, and so fourth would all have seperate disks.
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Jan 1st, 2006, 10:52 AM   #6
Nebula
Hobbyist Programmer
 
Nebula's Avatar
 
Join Date: Oct 2005
Posts: 193
Rep Power: 3 Nebula is on a distinguished road
Send a message via AIM to Nebula
It is absolutly possible. Thats how you dual-boot but then you have to set up the boot loader, E.G. GRUB.
__________________
When will Jesus bring the porkchops?
Nebula is offline   Reply With Quote
Old Jan 1st, 2006, 3:04 PM   #7
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
Swap space has nothing to do with the boot loader...
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted.
Got 'Nux?—GNU/Linux and other free software support.
It's GNU/Linux, not just Linux.
a thing is offline   Reply With Quote
Old Jan 1st, 2006, 11:30 PM   #8
Nebula
Hobbyist Programmer
 
Nebula's Avatar
 
Join Date: Oct 2005
Posts: 193
Rep Power: 3 Nebula is on a distinguished road
Send a message via AIM to Nebula
Quote:
Originally Posted by a thing
Swap space has nothing to do with the boot loader...
I was talking about having 2 different distros on the same drive...

I have Windows, Fedora, then a swap partition on the same drive as well.
__________________
When will Jesus bring the porkchops?
Nebula is offline   Reply With Quote
Old Jan 2nd, 2006, 5:42 AM   #9
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by linuxpimp20
the swap doesn't even have to be on the same drive. I've had cases where a distro on hda and hdb where sharing the swap oh hda. Although maybe that was possible cuz there was a swap for the distro on hdb on hdb cuz at the time i didn't know they could share the swap (Both distros used both swaps)
It is even recommended to put the swap on the other disk, because your pc will run faster: it doesn't have to be on two places on the disk at one time .
Polyphemus_ is offline   Reply With Quote
Old Jan 2nd, 2006, 12:47 PM   #10
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Quote:
Originally Posted by Polyphemus_
it doesn't have to be on two places on the disk at one time .
Stupid laws of physics.

Anyway, since only one is running at a time, no problem
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC