LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-26-2014, 06:50 AM   #1
TheMadness
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
A non-distro boot partition


(Skip this paragraph if you want) I'm a Linux beginner, currently with Windows 8.1 and Kali linux sharing a drive, and grub as my bootloader on a separate partition. Over time, I intend to have about 4 or so other Linux distro's added as I play around with it, sharing partitions where it makes sense to.

The question:

Rather than having each distro (or a single distro) auto-mount the current boot partition containing grub, could I instead have each distro keep its own /boot virtually empty under its root partition, and only load grub's boot partition when I'm about to update grub, then unmount again? As it seems to me, grub has everything it needs to run within its partition+mbr, and only needs the files from /etc folder during the install and update steps.

What I would like to do is have a grub boot partition that's not associated with any particular distro on the machine, but can be mounted and modified on-demand whenever I want to make changes.
 
Old 04-26-2014, 07:01 AM   #2
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
You can achive something similar with what you've said, but you failed to account of something.. Using one distro's grub is actually this exact thing..

Ohh, and you need each /boot/ since there lies most distributions kernels.. Grub is useless if it has nothing to load :P
 
Old 04-26-2014, 10:21 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
You can have a separate boot or even grub partition but the setup is quite a bit different than normal installs. Also, as Smokey_justme said, you need the kernel and initrd files for each distribution to boot. What exactly are you trying to accomplish?
 
Old 04-26-2014, 04:06 PM   #4
TheMadness
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
You can have a separate boot or even grub partition but the setup is quite a bit different than normal installs. Also, as Smokey_justme said, you need the kernel and initrd files for each distribution to boot. What exactly are you trying to accomplish?
Yeah, I was over-tired and missed those facts. Considering the initrd and kernel configs.... perhaps it's just better to share the boot partition between distros then?
 
Old 04-26-2014, 04:34 PM   #5
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Hmmm, well, am I to understand that currently you have a single boot partition for all your Linux OSs? Because that can actually cause problems if the kernel packages collide (for example if they use a symlink to point to the current kernel -- not to mention the initrd image which usually uses the same name across distributions)...

What I meant in my previous post is that you should let every system have it's own /boot directory in the root partition.. That way, you'll have no problems and all systems will be separated from each other..

Last edited by Smokey_justme; 04-26-2014 at 04:36 PM.
 
Old 04-26-2014, 05:44 PM   #6
TheMadness
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Smokey_justme View Post
Hmmm, well, am I to understand that currently you have a single boot partition for all your Linux OSs? Because that can actually cause problems if the kernel packages collide (for example if they use a symlink to point to the current kernel -- not to mention the initrd image which usually uses the same name across distributions)...

What I meant in my previous post is that you should let every system have it's own /boot directory in the root partition.. That way, you'll have no problems and all systems will be separated from each other..
So suppose I have 3 Linux distros on a disk, using grub as the bootloader. Each distro has its own /boot directory under its own main partition (the partition containing the root, etc). Then grub will exist in the mbr, plus extend into the boot directories of one of the distros. That about right? If so, I wanted to see if the boot directory containing grub could be disassociated with the one distro that installs it. As an ideal, I wanted to see if I could keep the boot-menu stuff away from any particular distro, and just on its own partition, mounted on-demand for reconfiguration. But if it's not feasible, I'm fine with leaving grub as part of one distro's boot directory, if that's what you suggest.
 
Old 04-26-2014, 06:11 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
If you had a separat boot or grub partition, it would have to be mounted in order for you to boot just as when you boot your system, the / partition needs to be mounted. Yes, you can create a separate boot or even just a grub partition.

The link below at Ubuntu (I think Kali is Ubuntu derived?) explains how to create a separate boot partition after Install for both Grub2 and Grub Legacy.

https://help.ubuntu.com/community/Cr...onAfterInstall

More information on this as well as creating a dedicated 'grub' partition at the site below, the posts by 'Herman' in particular and there is a link to more detailed information in post 2 by Herman. The link only discusses Grub Legacy and was written 8 years ago.

http://ubuntuforums.org/showthread.php?t=1320270

It seems a dedicated Grub partition might be a better option but it's never been worth the effort to me to try it.
 
1 members found this post helpful.
Old 04-26-2014, 06:39 PM   #8
TheMadness
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
If you had a separat boot or grub partition, it would have to be mounted in order for you to boot just as when you boot your system, the / partition needs to be mounted. Yes, you can create a separate boot or even just a grub partition.

The link below at Ubuntu (I think Kali is Ubuntu derived?) explains how to create a separate boot partition after Install for both Grub2 and Grub Legacy.

https://help.ubuntu.com/community/Cr...onAfterInstall

More information on this as well as creating a dedicated 'grub' partition at the site below, the posts by 'Herman' in particular and there is a link to more detailed information in post 2 by Herman. The link only discusses Grub Legacy and was written 8 years ago.

http://ubuntuforums.org/showthread.php?t=1320270

It seems a dedicated Grub partition might be a better option but it's never been worth the effort to me to try it.
I'll give it a look, thanks (to both).
 
  


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
In dual boot partition cant boot into linux after formatting the windows partition. SarahGurung Linux - General 9 08-27-2013 09:06 AM
boot partition wont boot my distro from logicle partition Knightron Linux - Newbie 8 08-25-2011 03:50 AM
Sharing /home partition in a multi-distro multi boot setup firewiz87 Linux - Distributions 6 08-24-2010 08:11 AM
Multi Distro Boot Partition seekermeister Linux From Scratch 8 04-19-2007 07:17 PM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 01:09 PM


All times are GMT -5. The time now is 08:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration