LinuxQuestions.org
Review your favorite Linux distribution.
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 04-21-2004, 04:42 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.2 (multilib)
Posts: 1,221

Rep: Reputation: 58
Question Sharing swap partition


I have a slackware installation and would like to install knoppix as well in a separate partition. Do I need a second swap partition or can the two distros share it?

Thanks
 
Old 04-21-2004, 05:46 AM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Re: Sharing swap partition

Hi,

I figure you will dual boot the different Distro's.
Then both can use the same swap partition.

You should only never _ever_ use the same swap partition with 2 or more Systems at the same time!


Have fun!

PankRat
 
Old 04-21-2004, 07:05 AM   #3
patoche2
LQ Newbie
 
Registered: Apr 2004
Location: germany
Distribution: mandrake9.1, mandrake9.2
Posts: 5

Rep: Reputation: 0
Hi pankrat,

I'm planning to install as a debian and a slackware .And as arubin, I would like to use the same swap and home for both distro's. Do you know were to find a complete tuto ?

thanks
 
Old 04-21-2004, 07:15 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,929

Rep: Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824
The installer should either detect that you already have a swap partition or during the process of creating partitions for the install be able to select an existing partition to be used as swap.
 
Old 04-21-2004, 09:25 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.2 (multilib)
Posts: 1,221

Original Poster
Rep: Reputation: 58
Thanks.

Does that mean that when the system is shutdown the swap partition is empty?
 
Old 04-21-2004, 09:43 AM   #6
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
Quote:
Originally posted by arubin
Thanks.

Does that mean that when the system is shutdown the swap partition is empty?
When the system shuts down, all the filesystems are unmounted, swap included, as far as I know. I am currently dual-booting Slackware and Gentoo, and sharing the swap partition. Gentoo was the first one installed, and Slackware recognized that there already was a swap partition. There is no problem with it.
 
Old 04-21-2004, 12:09 PM   #7
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Quote:
Originally posted by arubin
Thanks.

Does that mean that when the system is shutdown the swap partition is empty?
No, the swappartition is left as is,
when the operatingsystem boots up,
it wil initialize the swap as if it was dirty,
and will cleanup the parts before writing to it.

The OS asumes it is the only active OS writing to the swappartition,
and will write pretty anywhere it feels fit.

So, to answer the original question:

No, don't share swap between to OSses running simultaniously.
Yes, it is ok toouse one swap between OSses while dual(tripple) booting.
 
  


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
Sharing swap partitions Jongi SUSE / openSUSE 7 10-12-2005 08:36 AM
sharing swap partition abunsair Linux - Software 2 07-08-2005 01:53 PM
Swap Sharing? Synesthesia Linux - General 1 05-06-2005 02:40 AM
Swap Partition (Sharing -- Dual boot) podollb Linux - Software 2 10-27-2003 12:36 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

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

All times are GMT -5. The time now is 10:09 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