LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-02-2002, 12:18 PM   #1
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 63
Multiple distros...one kernel?


Ok, I've recently installed Mandy 8.2. I still have 8.1 and Slack 8.0 on my system as well. If I compile the same kernel under each (2.4.18), and have it under /boot, can I use the same kernel image to boot all three distros? (Obviously I would need to actually compile it under each distro, and make modules && make modules_install under each one as well).

Eg:

Label=Mandy81
image=/boot/k2.4.18
root=/dev/hda6
append="whatever goes here"

Label=Many82
image=/boot/k2.4.18
root=/dev/hda12
append="whatever..."

Label=Slack80
image=/boot/k2.4.18
root=/dev/hda13
append="whatever..."

Cheers,

--Thymox.
 
Old 05-02-2002, 01:59 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
I think the "/boot" is relative to the specified root partion, so you would actually have a separate kernel image on each partion.
 
Old 05-03-2002, 03:14 AM   #3
growler
Member
 
Registered: Apr 2002
Posts: 84

Rep: Reputation: 15
Quote:
Originally posted by zmedico
I think the "/boot" is relative to the specified root partion, so you would actually have a separate kernel image on each partion.
actually, I'm not sure. my boot partition is a separate device from my root, so I think this can be done. as long as all the fstabs point to the same device to mount at /boot, I think you're fine.

give it a shot and let us know what happens!
 
Old 05-03-2002, 06:32 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
I think it's possible but duno why.

I tried (long ago) to install Slackware on a hd with Mandrake. Instead of starting the instalation the Slack install Cd booted me linux using the old Mandrake kernel. Well it's was ugly (I never saw so much error during a boot!!) but I was near "working".

Good luck
 
Old 05-04-2002, 12:06 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Original Poster
Rep: Reputation: 63
Quote:
Originally posted by zmedico
I think the "/boot" is relative to the specified root partion, so you would actually have a separate kernel image on each partion.
Yep, but I have a separate /boot partition (hda7) that is only actively mounted in Mdk81. What I normally do when I run multiple distros is to install a new distro but not its bootloader. Boot into Mandy and copy its kernel image over to Mandy's actively mounted (hda7) /boot partition, then put it in Mandy's LILO and reboot. Since this partition is only about 7Mb (and I keep forgetting to delete kernel images), I frequently run out of space when I try many, many distros in a short time. I was wondering if I could save myself a little space by having 3 of my most frequently used distros use the same kernel image. It's not anything critical, but I don't really want to fart-arse about trying to increase the size of hda7 just to accomodate my needs - I would rather try doing things differently to accomodate my needs.

Cheers for the input. Gonna try it when I can be bothered, but I'll post my successes/failures here.
 
Old 05-04-2002, 04:36 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Yeah, of course it is Thy, I've got one machine, penta boot, where the LFS, Slack 8, and RH 7.2 all share the same boot partition (Wasn't a good idea when it got eaten... eggs eggs!!! basket basket!!!), so when it horked, I used tomsrtbt to mount all 3, copied a /lib/modules/2.4.18 pile of mods that I had compiled on a different box, over to all three partitions, copied the 2.4.18 kernel to /boot after it got mkext2fs'ed, chrooted to the slack partition and aimed all three partitions at the same kernel in lilo.conf, then re-ran Lilo.

Three distros, one 2.4.18 compile.

Cheers,

Finegan

In retrospect... this was a while ago, I used 16 I think.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple distros at once D10|\/|3|)3$ Linux - General 2 12-10-2004 08:38 PM
compile kernel once for multiple distros? rgiggs Mandriva 2 06-04-2004 02:25 AM
multiple distros zigmund555 Slackware 6 02-20-2004 11:17 AM
Multiple Boot - Multiple Distros noname Linux - Distributions 3 05-08-2002 10:01 AM
multiple distros jppw Linux - Newbie 0 03-25-2001 11:16 AM

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

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