Skip to contentSkip to conversation

how to install 2 linux(es) on a PC?

DISCUSSION vick Julius 7 participants 8 messages Nov 4, 2003 – Nov 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi
I installed 2 Linux flavors (red Hat and mandrake) on my machine and I could not boot both of them. I mean in grub (or lilo) I could not have choice of the 2 Linuxes? Did someone install two linuxes on the same PC?
What should I do to have this luxury?

Vick

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

#1 lore raw
Quoted 9 lines · vick Julius

Hi
I installed 2 Linux flavors (red Hat and mandrake) on my machine and I could not boot both of them. I mean in grub (or lilo) I could not have choice of the 2 Linuxes?
Did someone install two linuxes on the same PC?
What should I do to have this luxury?

Vick

Which partitions are the 2 linuxes installed on? (I assume you installed them on separate partitions, for obvious reasons they can't be installed onto the same partition.)

What does your lilo.conf/grub conif file look like? Whats the error message that the boot loader gives you?

P.S. I'm just curious, why do you want to have 2 linuxes installed in the first place?

Quoted 8 lines

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 10 lines
"There are two kinds of researchers: those that have implemented
something and those that have not.  The latter will tell you that
there are 142 ways of doing things and that there isn't consensus
on which is best.  The former will simply tell you that 141 of
them don't work." - David Cheriton
-----------------------------------------------------------------------
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   | http://verify.stanford.edu/evote.html
#2 lore raw

on "11-4-2003" "Jim C. Brown" writ:

: Which partitions are the 2 linuxes installed on? (I assume you installed them : on separate partitions, for obvious reasons they can't be installed onto the : same partition.)

... i don't see why not. given 'one' partition, create two file systems, and make each distribution, descndant from the 'root' of each.

: What does your lilo.conf/grub conif file look like? Whats the error message : that the boot loader gives you?

"error" output is your friend.

: P.S. I'm just curious, why do you want to have 2 linuxes installed in the : first place?

i'm guessing "RH's" departure plays a part in it ...

Signature · 2 lines
... i'm a man, but i can change,
    if i have to , i guess ...
#3 lore raw
Quoted 9 lines · terry white

on "11-4-2003" "Jim C. Brown" writ:

: Which partitions are the 2 linuxes installed on? (I assume you installed them
: on separate partitions, for obvious reasons they can't be installed onto the
: same partition.)

... i don't see why not. given 'one' partition, create two file systems,

I'm not sure how one can make 2 file systems on the same partition. Seems tricky to me.
You might wanna either post an explaination on how it is done, or post a link to a page
which explains the process. (If he wanted he could also use 2 separate hard drives,
but I assume he can't afford that luxury so I pointed him into making 2 partitions,
which is tricky but at least it doesn't cost money.)

Also, AFAIK Lilo can only be made to select booting of PARTITIONS, so to be able to boot the 2 linuxes with Lilo, they'd have to be on separate partitions. If i'm wrong
please correct me. I don't know anything about GRUB so that might be different.

In any case, we are agreed: the 2 linuxes must at least be on separate file systems.

Quoted 10 lines

and make each distribution, descndant from the 'root' of each

: What does your lilo.conf/grub conif file look like? Whats the error message
: that the boot loader gives you?

"error" output is your friend.

I don't understand what you mean here. I'm asking for the output because I believe that
will reveal some information about the problem (as would the config files). The more
information we have the better.

Quoted 7 lines

: P.S. I'm just curious, why do you want to have 2 linuxes installed in the
: first place?

i'm guessing "RH's" departure plays a part in it ...

Ouch. I'm not familiar with RH's departure, but I have heard that its raised a lot of
issues.

Quoted 9 lines
Signature · 8 lines
-- 
... i'm a man, but i can change,
    if i have to , i guess ...

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
http://www.fastmail.fm - I mean, what is it about a decent email service?
#4 lore raw

on "11-5-2003" "[email protected]" writ:

: I'm not sure how one can make 2 file systems on the same partition. Seems : tricky to me.

... giving it 'some' thought, you're correct, and i stand corrected.

: Also, AFAIK Lilo can only be made to select booting of PARTITIONS, so to : be able to boot the 2 linuxes with Lilo, they'd have to be on separate : partitions.

that is correct, however, there's not a real restriction on how many
different bootable images can reside there.

: > "error" output is your friend.

: I don't understand what you mean here. I'm asking for the output : because I believe that will reveal some information about the problem : (as would the config files). The more information we have the better.

exactly, "error" output is your friend ...

Signature · 2 lines
... i'm a man, but i can change,
    if i have to , i guess ...
#5 lore raw
In reply to [email protected]
Quoted 8 lines · On Wed, 2003-11-05 at 21:17, [email protected] wrote:
Quoted 6 lines · terry white

on "11-4-2003" "Jim C. Brown" writ:
: Which partitions are the 2 linuxes installed on? (I assume you installed them : on separate partitions, for obvious reasons they can't be installed onto the : same partition.)

... i don't see why not. given 'one' partition, create two file systems,

Quoted 10 lines

Also, AFAIK Lilo can only be made to select booting of PARTITIONS, so to be able to boot the 2 linuxes with Lilo, they'd have to be on separate partitions. If i'm wrong
please correct me. I don't know anything about GRUB so that might be different.

In any case, we are agreed: the 2 linuxes must at least be on separate file systems.

Quoted 1 line

and make each distribution, descndant from the 'root' of each

it is perfectly reasonable and common to have various bootable OS's on a disk, each in its own partition/filesystem.

and it is perfectly reasonable and common to have various bootable kernels in any partition, which can be selected for booting by either lilo or grub.

but the term operating system does properly refer to more than just the kernel, indeed including that broad set of libraries and utilities that live throughout the filesystem.

since many if not most of those utilities are expected to be at a certain location (pathname), it is reasonable and usual to have "just one operating system" per filesystem.

although i could imagine having more than one, if the bootup procedure somewhere executed a "chroot", thus delineating a filesystem within a filesystem. but it would be difficult to imagine wanting to bother to make such a setup actually work.

Quoted 6 lines · vick Julius
Quoted 5 lines

I installed 2 Linux flavors (red Hat and mandrake) on my machine and I could not boot both of them. I mean in grub (or lilo) I could not have choice of the 2 Linuxes?
Did someone install two linuxes on the same PC?
What should I do to have this luxury?

i am presuming you installed them on separate partitions. the installer for redhat (and probably also for mandrake, tho i'm not familiar with it) has the ability to setup a chainload to the previously installed operating system. if you didn't make use of that feature at install time, you would have a situation where you can only boot to whichever one you installed last.

you can still add in the other one to the list of choices to be booted by either lilo or grub.

one way is to setup a chainload to the other partition. in order for this to work, that other partition must have a working boot record. grub can be setup to work in this way, i don't know about lilo.

the other way instead of chainload is for either grub or lilo to directly specify the location of the kernel to be booted in the other partition. to know the particulars of the boot command line to be given for that kernel, look at the grub.conf or lilo.conf of that system.

in order to look, all you have to do is mount that other partition.

#6 lore raw
Quoted 3 lines · greg
Quoted 2 lines · On Wed, 2003-11-05 at 21:17, [email protected] wrote:
Quoted 1 line · terry white

on "11-4-2003" "Jim C. Brown" writ:

I've been reading this chain from the begining and now I think I have an idea of the problem.

Is it that you cannot boot both systems? So only one is "bootable" at a given time.

If that's the problem, the solution is simple.
In both linuxes make lilo install the boot sector in the partition itself (/dev/hda1 for example instead of /dev/hda).
After that, in one of the distributions configure the boot loader to be installed in the MBR, with the usual settings for that distribution and configuring the other one as an other entry (as you would with a non-linux operating system). This way you can chain both boot systems.

Hope it helps.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to greg
Quoted 14 lines · greg
Quoted 12 lines · On Wed, 2003-11-05 at 21:17, [email protected] wrote:
Quoted 6 lines · terry white

on "11-4-2003" "Jim C. Brown" writ:
: Which partitions are the 2 linuxes installed on? (I assume you installed them : on separate partitions, for obvious reasons they can't be installed onto the : same partition.)

... i don't see why not. given 'one' partition, create two file systems,

Also, AFAIK Lilo can only be made to select booting of PARTITIONS, so to be able to boot the 2 linuxes with Lilo, they'd have to be on separate partitions. If i'm wrong please correct me.

[snip]

Quoted 4 lines

although i could imagine having more than one, if the bootup procedure somewhere executed a "chroot", thus delineating a filesystem within a filesystem. but it would be difficult to imagine wanting to bother to make such a setup actually work.

Although I prefer seperate partitions, this can be usefull if you only have one partition to build for instance LFS on http://linuxfromscratch.org/

A hint describing the process can be found here
http://www.nl.linuxfromscratch.org/hints/downloads/files/one-partition-hint.txt

Greetz,
Cor Lem