Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-15-2015, 07:32 PM
|
#1
|
Member
Registered: Apr 2014
Posts: 276
Rep: 
|
multiple OSs and GRUB2
Preparing to install several distros on my external USB drive. Curious about GRUB2.
Should I install each OS in reverse order of likely use in order for successive GRUB2's to capture the existence of prior installs? Or is that even how it works?
|
|
|
07-16-2015, 02:22 AM
|
#2
|
Senior Member
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187
|
I recommend that you make sure that the installer does *not* install a bootloader and then reboot into the original distribution afterwards and run:
To generate a menu entry for the new distribution.
The key is that the last distribution to install GRUB "controls" the bootloader -- ie, the configuration file in that distribution is the file that is parsed by the bootloader.
|
|
1 members found this post helpful.
|
07-16-2015, 03:02 AM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,381
|
update-grub is a Debian-ism - not available in all distros.
Having once had the installer (Anaconda as it happens) refuse to install a kernel if you chose to not install the boot-loader, I am a little gun-shy of this now. I allow all systems to install a loader, but install the "favourite" system last - and boot into it to run mkconfig when the need arises.
As is usual in this namespace, more than one way to do it.
|
|
2 members found this post helpful.
|
07-16-2015, 06:12 AM
|
#4
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
Just a few days ago, I installed Ubuntu 14.04 on a system that had Centos 7.1. The Centos boot menus where totally messed up as a result - what was labeled "rescue" was the normal kernel and vice versa, and they ended up with the wrong root device.
I would create the final grub config file manually, or keep copies of the intermediate grub config files as you progress with you installs. As a minimum, check everything when you are done.
Changing the order of the menuentry clauses shouldn't be a big deal.
|
|
1 members found this post helpful.
|
07-17-2015, 01:12 AM
|
#5
|
Member
Registered: Apr 2014
Posts: 276
Original Poster
Rep: 
|
Thanks to all -- BIG help!
|
|
|
07-17-2015, 07:25 AM
|
#6
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,792
|
Here's my recipe for dealing with the situation:
Code:
Install 1st distro with separate boot partition mounted at /boot and grub2 in MBR
Unmount /boot, remount in /mnt/Boot
Copy everything in /mnt/Boot to /boot
Install grub in 1st OS's boot sector
Manually modify grub.cfg in boot partition to chainload 1st OS's bootloader
While additional OSs remain to be installed:
Install next distro in new partition (with grub in this partitions boot sector)
Manually modify grub.cfg in boot partition to chainload this OS's bootloader
Last edited by RockDoctor; 07-17-2015 at 07:26 AM.
Reason: formatting
|
|
|
All times are GMT -5. The time now is 12:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|