LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-22-2004, 02:49 PM   #1
bardanes
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
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
 
Old 10-22-2004, 03:00 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
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
 
Old 10-22-2004, 03:04 PM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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
 
Old 10-23-2004, 04:02 PM   #4
bardanes
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, people! I'll try some of these suggestions and report back!
 
Old 10-23-2004, 05:44 PM   #5
Junior41180
Member
 
Registered: Dec 2003
Location: Florida
Posts: 157

Rep: Reputation: 30
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
 
Old 10-24-2004, 05:15 AM   #6
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
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
 
  


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
Newbie questions: How do I set up a dual-boot system? What order to install OSes in? Dawnshadow Linux - Newbie 5 03-22-2005 02:59 PM
Trying to triple boot 3 Linux OSes gnumantsc Linux - Newbie 2 09-27-2004 06:22 PM
Multiple OSes Solaris, BSD Linux sovietpower Linux - Newbie 6 09-25-2004 05:57 PM
Ability to boot 2 OSes at once lobo235 Linux - Software 3 04-07-2003 12:36 PM
Sharing printers over multiple OSes mopron Linux - General 0 05-07-2002 09:03 PM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration