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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-22-2004, 02:49 PM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 7
Rep:
|
Organized Install/Boot of Multiple Linux OSes
Hi,
I'm currently using a machine to evaluate multiple Linux distributions. I can multiboot them without problems using Grub.
However, I'd like to install and boot them in a more organized manner, possibly with a single swap space and a single home partition. Any suggestions or links on how I couldapproach this?
Thanks!
PB
|
|
|
10-22-2004, 03:00 PM
|
#2
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
make a /boot (so they all use the same kernel) and /home (so you keep your preferences).
only one swap partition is nessecary
The rest is done with lilo
|
|
|
10-22-2004, 03:04 PM
|
#3
|
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
|
NB:
You must keep the same User ID on each distribution, otherwise files may well become screwed!
Match user ID number to home directory!
Create the home partition on the first install only!
Add it to the other installations as an entry in /etc/fstab *after* the installation has been done
|
|
|
10-23-2004, 04:02 PM
|
#4
|
LQ Newbie
Registered: Jun 2004
Posts: 7
Original Poster
Rep:
|
Thanks, people! I'll try some of these suggestions and report back!
|
|
|
10-23-2004, 05:44 PM
|
#5
|
Member
Registered: Dec 2003
Location: Florida
Posts: 157
Rep:
|
Quote:
Originally posted by Disillusionist
NB:
You must keep the same User ID on each distribution, otherwise files may well become screwed!
Match user ID number to home directory!
Create the home partition on the first install only!
Add it to the other installations as an entry in /etc/fstab *after* the installation has been done
|
how do you do that? adding the other installs to /etc/fstab
Thanks
|
|
|
10-24-2004, 05:15 AM
|
#6
|
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039
Rep:
|
Please bear with me, it's been a while since I booted into linux.
Currently I've been using colinux to run my linux partition from within Windows XP.
Note down the partition used for /home on the first install:
grep home /etc/fstab
Possible output:
/home /dev/hda4 ext3 defaults 0 1
For Each additional installation:
1. Add this line into the /etc/fstab file
2. Ensure there is a directory under / called home
i. If there is create a backup of any subdirectories
ii. If not then type: mkdir /home
3. Type: mount /home
Get the user id numbers from /etc/passwd:
grep home /etc/passwd
Possible output:
bob:x:500:500:Example Account:/home/bob:/bin/bash
fred:x:501:501:Example Account 2:/home/fred:/bin/bash
Check Group ID's from /etc/group
bob:x:500:
fred:x:501:
For Each additional installation:
groupadd -g 500 bob
groupadd -g 501 fred
useradd -u 500 -g bob -c "Example Account" -d /home/bob bob
useradd -u 501 -g fred -c "Eaxmple Account 2" -d /home/fred fred
Job Done
|
|
|
All times are GMT -5. The time now is 07:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|