LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-18-2005, 05:53 AM   #1
Haystack
Member
 
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, 08:38 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,580

Rep: Reputation: 107Reputation: 107
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, 06:43 PM   #3
Haystack
Member
 
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:
Code:
   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 06:50 PM.
 
  


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


All times are GMT -5. The time now is 07:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration