Linux - NewbieThis 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
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.
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.
I was wondering if anybody out there has more than 2 OS on their systems. What I was thinking was Win and 2 different versions of Linux (or more). If you were to do that would the second install of Linux overwrite Grub, or is it smart enough to just add the new Linux to the Grub list?
The second will overwrite grub of the first, if you let it (by writing it to the MBR). If you install grub to the root of the filesystem instead of the MBR, It won't overwrite grub on the first. However, you will have to manually edit /boot/grub/menu.lst on the first to add the second OS.
For a thorough read on how to boot more that two OSs via grub, look up LQ member Saikee. In his signature, there are links to articles he has written. One of them details how he has 145+ OSs booting.
I simply chainload. Let the first Linux install its GRUB to the MBR and make all the rest install GRUB to their own boot or / partition. Then all you need to do for those other distros is add this to the /boot/grub/menu.lst of the distro that has access to the MBR:
title distro_name
root (hdx,x) <----- points to the partition that has GRUB
chainloader +1
I have XP and four Linux distros on the same 160GB drive. Some distros (Unbuntu and PCLinuxOS in particular) are pretty good at recognizing the other operating systems and listing them in their menu.lst. But they don't always get it right and you have to manually add them to the menu.lst of the distro that provides grub. All I have ever done is when installing subsequent distros on the same drive is simply not install their bootloader and edit the menu.lst file. I prefer this method to chainloading because all of the OS's are listed on the opening boot screen. It is all quite easy.
How do you get a dist to not install their bootloader? When I did my install I dont recall anything where it gave me that option. For that matter how do you tell it to install grub to its own root dir.
You have to watch carefully during the installation. When you get to the part about bootloader installation/configuration, that's the place to select whether to install to the MBR or to the root of the installation.
must have misted something here. you have 4 primary partions. Extended partions you have little control over. This chap has only 2 or 3 primary partions; if his bootloader is on a partion then that comlicates issues especilally fof us idiots.
How would that complicate matters? I used to install each new GRUB to the MBR so that it overwrote the one that was already there. That works fine but there is one serious downside to this approach: kernel updates. If you have added the boot lines for your distro B to the GRUB of distro A, GRUB is not going to update itself when B gets a kernel update. Either you don't notice and you keep using the older boot line / kernel or you do but then you have to editi your GRUB again. If you simply chainload, distro B still has its own GRUB so it does get updated with each new kernel updates. A lot less complicated if you ask me.
How would that complicate matters? I used to install each new GRUB to the MBR so that it overwrote the one that was already there. That works fine but there is one serious downside to this approach: kernel updates. If you have added the boot lines for your distro B to the GRUB of distro A, GRUB is not going to update itself when B gets a kernel update. Either you don't notice and you keep using the older boot line / kernel or you do but then you have to editi your GRUB again. If you simply chainload, distro B still has its own GRUB so it does get updated with each new kernel updates. A lot less complicated if you ask me.
Good point. Linux is about choices, and since Dec, 1999 I have never updated a kernel, because that is complicated and I never had any problem which meant I needed to update. Clearly, if I were IT for a company, security requirements would mandate those updates, but I am not.
I don't like chainloading because I don't like seeing the Grub menu twice. Also, I do like control. I don't like things happening without my knowledge, such as Redmond does.
However, chainloading is a very good choice if one wants to do it, or if one routinely updates kernels.
I am an advocate of MGTOW, men going their own way, which mistakenly is usually linked to other issues, but for me it's everything. As my daughter says, whatever trips your trigger. I do like to know about the choices, though.
... I dont recall anything where it gave me that option. For that matter how do you tell it to install grub to its own root dir.
Sounds like Ubuntu the option to pick where GRUB is installed is hidden behind a button labeled advanced. It on the about to install information page.
I tried a dozen or so distros before getting lazy and settling on Ubuntu. They all had some way of letting me chose where to put GRUBS IPL code.
I use the chainloader or the configfile option when I've installed more than one OS on a PC. Sure you see 2 GRUB menus. But if you let the kernel get updated as I do. It helps keep things straight.
I think I'm being a bit slow but the purpose of having a bootloader on your hard drive is to make things simple and so I don't like the idea of having to edit the thing. Why do linux distros have a set way they deal with this? Grub maintains it will boot anything but if you have to write it yourself then surely it falls down- if everyone was a software writer then who needs an operating system?
Fred.
I install GAG to the mbr and subsequent bootloaders to the root partition. No fuss. Allows me to install and uninstall distros without messing with the primary(GAG) bootloader. I have booted up to 7.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.