Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-18-2005, 04:53 AM   #1
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65

Rep: Reputation: 15
Kernel-sharing, possible?

I'm tired of dealing with bootloader problems everytime I install a new Linux distribution on my harddisk... and I don't like it at all that I can't boot no more than 4 primary partitions. So this morning I had the following idea:

I'll create one primary 20MB partition for grub and (several) kernelimages, and three logical partitions with Slackware, Fedora Core and Debian, all using the kernel on the first partition. I think it should be possible, and easy to do.

Because I always mess things up I wonder if anyone has some ideas of things I should care about to not run into serious problems.

Thanks in advance,
Old 11-18-2005, 07:38 AM   #2
Senior Member
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,192

Rep: Reputation: 164Reputation: 164
You can share the swap partition.
I donīt think you can share the kernel, but if you try to use different kernels for the different distros, it might work.
But: why arenīt you using a extended partition for the harddisk?
Linux must not be installed on a primary partiton.
Old 11-18-2005, 05:43 PM   #3
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks for your input! I succesfully set up Slackware and Debian sharing the same kernel anyway. Very easy to do.

In short, this is how I did it: (just in case you're interested)

1. I repartitioned my /dev/hda:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda4               1        2697    21663621    5  Extended
/dev/hda5               1          63      505984+  82  Linux swap / Solaris
/dev/hda6   *          64          69       48163+  83  Linux <--my bootpartition
/dev/hda7              70         945     7036438+  83  Linux <--Debian
/dev/hda8             946        1821     7036438+  83  Linux <--Slackware
2. Installed Debian on hda7 with hda6 mounted on /boot, and Grub on the MBR
3. Installed Slackware like I normally would on hda8 (No LILO install off course)
4. Moved hda8/boot to hda8/bootbackup and mounted hda6 to it in fstab
5. Edited Grub's menu.lst to boot from hda6
6. Moved hda7/lib/modules/2.4.27-2-386 to the bootdisk and created a link to it in both hda7/lib/modules and hda8/lib/modules.

(I put a detailed follow-through on my site.)

Last edited by Haystack; 11-18-2005 at 05:50 PM.


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
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Sharing a kernel among two distros vash_stewy Linux - Newbie 1 08-09-2004 03:23 AM
Kernel 2.6 sharing USB disk via NFS 1kyle Linux - Networking 1 07-19-2004 06:59 AM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
How to check kernel (RH9) is support for Internet connection sharing?? TYLin Linux - Hardware 0 06-18-2003 02:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration