LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2006, 09:35 PM   #1
VIR3NT
Member
 
Registered: Sep 2005
Posts: 58

Rep: Reputation: 15
Multiple Linux's use Same Swap?


Can i have all my different linux distros use the same Swap partition?
 
Old 04-24-2006, 10:15 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by VIR3NT
Can i have all my different linux distros use the same Swap partition?
Ya sure. And its the right way of doing.
while installing the second distro, just point the swap to the earlier disto's swap.
regards

Last edited by b0nd; 04-24-2006 at 10:16 PM.
 
Old 04-24-2006, 10:22 PM   #3
swooshonln
LQ Newbie
 
Registered: Apr 2006
Location: USA
Distribution: 2006.0 Gentoo Linux (gentoo-sources-2.6.15-r1)
Posts: 23

Rep: Reputation: 15
and since were on the same topic, I dont see anything wrong with the same boot partition eather. You will just need to create a new root partition.
 
Old 04-24-2006, 10:39 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by swooshonln
and since were on the same topic, I dont see anything wrong with the same boot partition eather. You will just need to create a new root partition.
Ya just one thing has to be kept in mind that the various vmlinuz/system.map etc. files should be renamed according to the distro so that they don't overwrite each other.

regards
 
Old 04-24-2006, 11:12 PM   #5
VIR3NT
Member
 
Registered: Sep 2005
Posts: 58

Original Poster
Rep: Reputation: 15
What about my GRUB. I have GRUB loaded with options for loading Suse and windows, if I install another distro will grub be able to automatically pick up on it or how do i configure the additional distros to appear on my grub menu?
 
Old 04-24-2006, 11:28 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by VIR3NT
What about my GRUB. I have GRUB loaded with options for loading Suse and windows, if I install another distro will grub be able to automatically pick up on it or how do i configure the additional distros to appear on my grub menu?
You can choose not to install a bootloader and then configure your Suse bootloader to boot the other Linux distros.
 
Old 04-24-2006, 11:52 PM   #7
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
But no, GRUB will not automatically know it's there.
 
Old 04-25-2006, 12:02 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could do something similar with the /home partition. For example, the /etc/passwd file indicates where a users home directory is, so for fedora-core you could have a home directory for user "vir3nt" be /home/vir3nt-fc and for SuSE be /home/vir3nt-su. It is the UID that is important, and not the actual name of the users home partition which is indicated by the $HOME variable and expanded with the "~/" characters.

If you share the /boot partition, then make sure that you only update grub or lilo from the same distro every time. You will need to manually edit the lilo.conf or menu.lst file when adding a new distro. The entry for you first distro can serve as a model.

You may have it configured so that /tmp is cleared everytime you reboot. That would be easy to share. Another candidate is /usr/local. The contents of the /usr/local hierarchal tree are left alone by the distros, so you can install shared tarball installations there. You may need to make sure that the paths are defined for each distro to use it, and check if any /etc/ files are installed when running the "make install" target. Running "find" with the -cmin option can help locate where all the new and modified files are located. Another option is to use "tee" to save the output of the "make install" phase.

Last edited by jschiwal; 04-25-2006 at 12:03 AM.
 
  


Reply



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
1 swap, multiple distros microsoft/linux Linux - General 2 06-17-2005 08:46 PM
Mobility Between linux's ZyRo70 Fedora 10 02-19-2005 02:10 AM
Multiple swap partitions? [GOD]Anck Slackware 10 01-01-2004 11:00 PM
Is Linux's graphics better than.... chutsu Slackware 23 11-13-2003 02:05 PM
Singlr Swap Partiotion for Multiple Linuxes? sarmadys Linux - General 3 10-09-2003 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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