LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-28-2005, 02:06 PM   #1
meles meles
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
Multi-boot and common partitions


I multi-boot several distributions of Linux (Ubuntu, Xandros 3) with Windows XP.

Is it possible for the linuxes to share some common partitions - for example, swap and home ? If it is possible, how would I set about doing it ? Are there and great advantages in doing so ? Any dangers ? My reason for doing so is to have the users' files accessible from both Ubuntu and Xandros.
 
Old 08-28-2005, 02:40 PM   #2
sud_crow
Member
 
Registered: Aug 2003
Distribution: Arch Linux
Posts: 41

Rep: Reputation: 15
Hello,

It is possible to share swap partitions, and there is no problem in doing it.

On the other hand, if you share your home partition across different distributions you might end with unstable systems and weird problems, as most distros have different versions of the programs you have installed.

The best way to access another distribution files is to mount those partitions under some other directory, something like this:


1st: Check and write down (in paper) the partitions you want to mount, do this by looking in every /etc/fstab of every distro. You should look for a line like this one:

Code:
/dev/hdb5         /home     reiserfs         defaults           0           0
(Thats my home, check your hdXY part)


2nd: Once you have all the /dev/hdXY (with X being a letter: a, b... and Y being a number: 1, 2, 3...) written down, that is, all the homes you want to mount, restart to the first system you want to mount the other partitions in.

Now, create the mount points (directories, as root):

Code:
]# mkdir /mnt/1st-distro-name
]# mkdir /mnt/2nd-distro-name
And so on for each home you want of each distro.

Then mount it manually:
Code:
]# mount /dev/hdXY /mnt/1st-distro-name
...
Repeat changing as needed until you mounted all the partitions.

If you want to do this at system startup, you should copy and paste the line where you mount your HOME (as i showed mine above), and change the mount point and the partition accordingly.

Hope this can help!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Boot Multi Windows & Multi Linux olkar Linux - Newbie 5 10-03-2005 11:52 AM
Read multi partitions in Windows NTFS from linux java8964 Linux - General 5 11-19-2003 11:18 AM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 03:48 AM
Multi-Disk partitions???? clustered_chaos Linux - General 3 02-25-2003 08:29 PM
Common user access to mounted partitions? JoooN Slackware 2 02-16-2003 06:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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