public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] dual-linuxdistro-boot kernel question
@ 2005-08-16 13:12 Fernando Meira
  2005-08-16 13:19 ` Luke Albers
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Fernando Meira @ 2005-08-16 13:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

Hi,
I was told the following, which I don't agree, but in any case, I would like 
to hear from someone that knows :)
- when having 2 different distro on 1 pc, do they have to use the same 
kernel?
Even if they share the same swap partition and /boot is inside the root of 
one of the distros (and not in a separate partition)...

Cheers,
Fernando

[-- Attachment #2: Type: text/html, Size: 380 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 13:12 [gentoo-user] dual-linuxdistro-boot kernel question Fernando Meira
@ 2005-08-16 13:19 ` Luke Albers
  2005-08-16 13:31 ` Holly Bostick
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Luke Albers @ 2005-08-16 13:19 UTC (permalink / raw
  To: gentoo-user

On Tue, 2005-08-16 at 13:12 +0000, Fernando Meira wrote:

> - when having 2 different distro on 1 pc, do they have to use the same
> kernel?


no

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 13:12 [gentoo-user] dual-linuxdistro-boot kernel question Fernando Meira
  2005-08-16 13:19 ` Luke Albers
@ 2005-08-16 13:31 ` Holly Bostick
  2005-08-16 13:33 ` Christoph Gysin
  2005-08-16 15:59 ` Gyuri
  3 siblings, 0 replies; 12+ messages in thread
From: Holly Bostick @ 2005-08-16 13:31 UTC (permalink / raw
  To: gentoo-user

Fernando Meira schreef:
> Hi,
> I was told the following, which I don't agree, but in any case, I would
> like to hear from someone that knows :)
> - when having 2 different distro on 1 pc, do they have to use the same
> kernel?
> Even if they share the same swap partition and /boot is inside the root
> of one of the distros (and not in a separate partition)...
> 
> Cheers,
> Fernando

No, they do not-- in fact, I personally think it's weird for them to use
the same kernel (I never heard of doing this before recently).

Just to authenticate myself, I currently run Gentoo and SuSE on the same
PC, and previously ran Gentoo, RedHat9, Morphix, CollegeLinux, and
Mandrake (with Win 98 and Win2K) on the same PC.

Especially when one of the distros in question is a binary distro
(Mandrake, SuSE, RedHat/Fedora, and to some extent, Debian-based
distros, and Gentoo), you wouldn't want them to use the same kernel
anyway, as binary distros are well-known to patch their kernels for the
distribution (as does Gentoo, but the Gentoo patches are not as
'essential' to the kernel's proper running as, say, SuSE's are if you're
running SuSE). Naturally, I wouldn't expect the binary distro's kernel
patches to be compatible with Gentoo, or vice-versa.

Now, of course, you could use a vanilla kernel under both (or all)
relevant distros, but that would probably be a problem for the binary
distro (after all, if the kernel patches weren't necessary, they
wouldn't put all the work in to patch the kernel, would they?).

What I do is *copy* the binary distro's kernel to the /boot partition
(which is a separate mounted partition under Gentoo, but is a folder
under / in SuSE), so that way, both distros can use the kernel they
expect to see, and it all works fine.

Why you'd really want to have two or more distros using the same kernel
at all, I really can't get, but maybe I'm dim :-) .

Holly

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 13:12 [gentoo-user] dual-linuxdistro-boot kernel question Fernando Meira
  2005-08-16 13:19 ` Luke Albers
  2005-08-16 13:31 ` Holly Bostick
@ 2005-08-16 13:33 ` Christoph Gysin
  2005-08-16 13:49   ` Fernando Meira
  2005-08-16 15:59 ` Gyuri
  3 siblings, 1 reply; 12+ messages in thread
From: Christoph Gysin @ 2005-08-16 13:33 UTC (permalink / raw
  To: gentoo-user

Fernando Meira wrote:
> I was told the following, which I don't agree, but in any case, I would 
> like to hear from someone that knows :)
> - when having 2 different distro on 1 pc, do they have to use the same 
> kernel?
> Even if they share the same swap partition and /boot is inside the root 
> of one of the distros (and not in a separate partition)...

No, they don't have to. But they could ;-)

The bootloader could select the distribution by passing the "root=/dev/hda?" 
boot parameter.

Christoph
-- 
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 13:33 ` Christoph Gysin
@ 2005-08-16 13:49   ` Fernando Meira
  0 siblings, 0 replies; 12+ messages in thread
From: Fernando Meira @ 2005-08-16 13:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

That was exactly what I was thinking... 
My doubt arose when I got the following reply of a dual-boot installation 
with Ubuntu and Gentoo:
"you have to use the same kernel from the Ubuntu installation for Gentoo 
(unless or course you manually upgrade it), however either way you end up 
with vanilla."
Even that this guy/girl has /boot inside Ubuntu's partition, it still needs 
(in case he wants 2 different kernels) to place gentoo's kernel inside /boot 
so that he can start gentoo.

Thanks for the replies.
Fernando.

On 8/16/05, Christoph Gysin <cgysin@gmx.ch> wrote:
> 
> Fernando Meira wrote:
> > I was told the following, which I don't agree, but in any case, I would
> > like to hear from someone that knows :)
> > - when having 2 different distro on 1 pc, do they have to use the same
> > kernel?
> > Even if they share the same swap partition and /boot is inside the root
> > of one of the distros (and not in a separate partition)...
> 
> No, they don't have to. But they could ;-)
> 
> The bootloader could select the distribution by passing the 
> "root=/dev/hda?"
> boot parameter.
> 
> Christoph
> --
> echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
> --
> gentoo-user@gentoo.org mailing list
> 
>

[-- Attachment #2: Type: text/html, Size: 1690 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 15:59 ` Gyuri
@ 2005-08-16 14:52   ` Russell Slater
  2005-08-16 15:12     ` Holly Bostick
  0 siblings, 1 reply; 12+ messages in thread
From: Russell Slater @ 2005-08-16 14:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 111 bytes --]

Couldn't you place both kernels in /boot with different names and leverage 
grub to load the approriate one?

[-- Attachment #2: Type: text/html, Size: 110 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 14:52   ` Russell Slater
@ 2005-08-16 15:12     ` Holly Bostick
  2005-08-16 15:35       ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Holly Bostick @ 2005-08-16 15:12 UTC (permalink / raw
  To: gentoo-user

Russell Slater schreef:
> Couldn't you place both kernels in /boot with different names and
> leverage grub to load the approriate one?

Yes. Afaik, this is the 'traditional' method, both within a single
distro with multiple kernel versions, and with multiple distros that
each have a single kernel.

If you originally set up both distros to point to the same external
partition as /boot, then there is no problem, as the kernels will both
be installed to the same /boot partition, and will most likely have
different names by default.

If, like me, you installed one distro with /boot as just a folder on the
/ partition, then installed the second using a separate partition as
/boot, then you likely have to do what I did and copy one kernel (and
associated files) to the /boot of the distro whose bootloader you're
using, but of course, if you have to do that, you can easily rename the
copied kernel to something unique, if for some reason it isn't already
uniquely named.

Edit your bootloader config, and you're done.

Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 15:12     ` Holly Bostick
@ 2005-08-16 15:35       ` Neil Bothwick
  2005-08-16 15:45         ` Holly Bostick
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2005-08-16 15:35 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

On Tue, 16 Aug 2005 17:12:01 +0200, Holly Bostick wrote:

> If, like me, you installed one distro with /boot as just a folder on the
> / partition, then installed the second using a separate partition as
> /boot, then you likely have to do what I did and copy one kernel (and
> associated files) to the /boot of the distro whose bootloader you're
> using,

You don't have to copy anything, because the kernel doesn't have to be in
the same directory as the bootloader config. It's perfectly acceptable,
and a lot easier to manage, if all your secondary distros have their own
/boot directory, probably not a separate partition.

> but of course, if you have to do that, you can easily rename the
> copied kernel to something unique, if for some reason it isn't already
> uniquely named.


-- 
Neil Bothwick

Committee (noun): A group of people spending hours taking minutes

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 15:35       ` Neil Bothwick
@ 2005-08-16 15:45         ` Holly Bostick
  2005-08-16 17:50           ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Holly Bostick @ 2005-08-16 15:45 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick schreef:
> On Tue, 16 Aug 2005 17:12:01 +0200, Holly Bostick wrote:
> 
> 
>>If, like me, you installed one distro with /boot as just a folder on the
>>/ partition, then installed the second using a separate partition as
>>/boot, then you likely have to do what I did and copy one kernel (and
>>associated files) to the /boot of the distro whose bootloader you're
>>using,
> 
> 
> You don't have to copy anything, because the kernel doesn't have to be in
> the same directory as the bootloader config. It's perfectly acceptable,
> and a lot easier to manage, if all your secondary distros have their own
> /boot directory, probably not a separate partition.
> 

Maybe under normal circumstances it is, but SUSE really doesn't seem to
like booting from Gentoo's bootloader when the SUSE kernel is on the
other partition (not in the /boot partition my Gentoo uses). Of course,
the SUSE kernel doesn't like to boot from 'normal' entries, either-- I
recall when I was still using LiLO, that I had to physically copy the
SuSE entry from SuSE's lilo.conf to the lilo.conf I was actually using,
because just adding a standard entry to point to the SuSE
kernel/partition wouldn't boot SuSE.

But it's quite possible that SuSE is the only (or one of the very few)
distros that is that picky. And it's also possible that I did something
wrong so that it seemed that picky, when it really isn't (but I think it
really is :) ).

Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 13:12 [gentoo-user] dual-linuxdistro-boot kernel question Fernando Meira
                   ` (2 preceding siblings ...)
  2005-08-16 13:33 ` Christoph Gysin
@ 2005-08-16 15:59 ` Gyuri
  2005-08-16 14:52   ` Russell Slater
  3 siblings, 1 reply; 12+ messages in thread
From: Gyuri @ 2005-08-16 15:59 UTC (permalink / raw
  To: gentoo-user

Fernando Meira wrote:

> Hi,
> I was told the following, which I don't agree, but in any case, I 
> would like to hear from someone that knows :)
> - when having 2 different distro on 1 pc, do they have to use the same 
> kernel?
> Even if they share the same swap partition and /boot is inside the 
> root of one of the distros (and not in a separate partition)...
>
> Cheers,
> Fernando

No, but they can use a common kernel, if you want to. The same swap 
space can be used, it's not a question. (If you want to have 2 distros 
on 1 pc, a swap partition is recommended insted of a swap file for each) 
It can happen because at the same time, only one of them can boot up.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 15:45         ` Holly Bostick
@ 2005-08-16 17:50           ` Neil Bothwick
  2005-08-16 18:06             ` Holly Bostick
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2005-08-16 17:50 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

On Tue, 16 Aug 2005 17:45:37 +0200, Holly Bostick wrote:

> Maybe under normal circumstances it is, but SUSE really doesn't seem to
> like booting from Gentoo's bootloader when the SUSE kernel is on the
> other partition (not in the /boot partition my Gentoo uses). Of course,
> the SUSE kernel doesn't like to boot from 'normal' entries, either-- I
> recall when I was still using LiLO, that I had to physically copy the
> SuSE entry from SuSE's lilo.conf to the lilo.conf I was actually using,
> because just adding a standard entry to point to the SuSE
> kernel/partition wouldn't boot SuSE.

When I was dual-booting Gentoo and SUSE, I let SUSE install its
bootloader onto it's root partition and chainloaded it from Gentoo's
GRUB. It saved any such hassle.


-- 
Neil Bothwick

MIPS: Meaningless Indication of Processor Speed

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] dual-linuxdistro-boot kernel question
  2005-08-16 17:50           ` Neil Bothwick
@ 2005-08-16 18:06             ` Holly Bostick
  0 siblings, 0 replies; 12+ messages in thread
From: Holly Bostick @ 2005-08-16 18:06 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick schreef:
> On Tue, 16 Aug 2005 17:45:37 +0200, Holly Bostick wrote:
> 
> 
>>Maybe under normal circumstances it is, but SUSE really doesn't seem to
>>like booting from Gentoo's bootloader when the SUSE kernel is on the
>>other partition (not in the /boot partition my Gentoo uses). Of course,
>>the SUSE kernel doesn't like to boot from 'normal' entries, either-- I
>>recall when I was still using LiLO, that I had to physically copy the
>>SuSE entry from SuSE's lilo.conf to the lilo.conf I was actually using,
>>because just adding a standard entry to point to the SuSE
>>kernel/partition wouldn't boot SuSE.
> 
> 
> When I was dual-booting Gentoo and SUSE, I let SUSE install its
> bootloader onto it's root partition and chainloaded it from Gentoo's
> GRUB. It saved any such hassle.

Ah... *there's* the missing link. Chainloading. One of my blind spots,
meaning that I don't know anything about it except wrt Windows, which
was and is no longer a factor. So I didn't try that wrt SuSE.

Thanks. I learn something new every day around here.

Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-08-16 18:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-16 13:12 [gentoo-user] dual-linuxdistro-boot kernel question Fernando Meira
2005-08-16 13:19 ` Luke Albers
2005-08-16 13:31 ` Holly Bostick
2005-08-16 13:33 ` Christoph Gysin
2005-08-16 13:49   ` Fernando Meira
2005-08-16 15:59 ` Gyuri
2005-08-16 14:52   ` Russell Slater
2005-08-16 15:12     ` Holly Bostick
2005-08-16 15:35       ` Neil Bothwick
2005-08-16 15:45         ` Holly Bostick
2005-08-16 17:50           ` Neil Bothwick
2005-08-16 18:06             ` Holly Bostick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox