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.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
The reason you don't edit this yourself is because as soon as a new kernel is installed Grub will update and totally screw the modified file.
When grub resides in a separate partition and you chainload you do not have to worry about kernel updates or distro changes, it will boot the partition.
Quote:
It isn't worth it if you are using multiple OSs on a regular drive in a regular PC and if you don't know what you are doing.
Read this article, chainloads 145 systems with grub legacy, but same applies to grub2
Thanks for the advice. Larry Webb, I think I will try your suggestion. Before I do though, would this work and be easier?
1 - Install Fedora or Mint (or any other distro that uses Grub2) on /dev/sdb8.
2 - When asked where to install the bootloader, select /dev/sdb2.
3 - Let the installer create all the necessary boot files in /dev/sdb2.
4 - Once the installation is complete, the computer should boot up with a generic grub.cfg (containing the distro at minimum).
5 - Reinstall distro in step 1 a second time to the same location. Have it format the partition and select /dev/sdb8 this time when asked where to install the bootloader.
6 - Edit /dev/sdb2 grub.cfg file to point to /dev/sdb6, 7, 8, etc.
7 - Any time I update the kernel for any of the installed distro's, they should not touch /dev/sdb2 since their individual bootloaders are in their respective partitions. Would that be true?
Thanks again everyone for the education. I truly appreciate it.
I see that I did not submit my reply for a few hours. Sorry to repeat some of what you said Larry. That article is the exact reason I am trying this. Albeit, I only want about 10 distro's for now. Being new to Linux, though, makes it a bit of a challenge to say the least.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Larry Webb
When grub resides in a separate partition and you chainload you do not have to worry about kernel updates or distro changes, it will boot the partition.
But don't you have to "adjust" something everytime you update to a newer kernel.
Quote:
Originally Posted by Larry Webb
Read this article, chainloads 145 systems with grub legacy, but same applies to grub2
I have read it and, even though it is an excellent resource, I wonder how functional it is in the real world. I currently have 14 on this laptop, by the time I am finished setting it up I will have 28. All using Grub2, all with their own / and no separate /boot. I may even throw XP and Vista (only because I have them) on it but realistically I will need a bigger hard drive. So far os-prober works perfectly.
But don't you have to "adjust" something everytime you update to a newer kernel.
No, you are booting the partition not the kernel. I do adjust the timeout time on the distro grub.cfg so that I do not have to wait on the boot to start.
Quote:
I have read it and, even though it is an excellent resource, I wonder how functional it is in the real world. I currently have 14 on this laptop, by the time I am finished setting it up I will have 28. All using Grub2, all with their own / and no separate /boot. I may even throw XP and Vista (only because I have them) on it but realistically I will need a bigger hard drive. So far os-prober works perfectly.
There is nothing wrong with the way you are installing. It is just a personal preference.
Last edited by Larry Webb; 03-02-2012 at 06:35 PM.
Thanks for the advice. Larry Webb, I think I will try your suggestion. Before I do though, would this work and be easier?
1 - Install Fedora or Mint (or any other distro that uses Grub2) on /dev/sdb8.
2 - When asked where to install the bootloader, select /dev/sdb2.
3 - Let the installer create all the necessary boot files in /dev/sdb2.
4 - Once the installation is complete, the computer should boot up with a generic grub.cfg (containing the distro at minimum).
5 - Reinstall distro in step 1 a second time to the same location. Have it format the partition and select /dev/sdb8 this time when asked where to install the bootloader.
6 - Edit /dev/sdb2 grub.cfg file to point to /dev/sdb6, 7, 8, etc.
7 - Any time I update the kernel for any of the installed distro's, they should not touch /dev/sdb2 since their individual bootloaders are in their respective partitions. Would that be true?
Thanks again everyone for the education. I truly appreciate it.
2 . No, it will install the mbr instructions there.
3 . No a distro when installed will not install grub to a separate partition, just the mbr.
4 . No
7 . True
The way I explained in my earlier post is the easiest way.
That took care of it Larry. Windows XP, Ubuntu and Fedora are all launching using the boot partition and chainloading. Now I need to install a few more distro's and update the grub.cfg file to point to them.
I appreciate the help you and everyone else have given me. I have a lot to learn and hope to be able to contribute to the group at some point in the near future.
That took care of it Larry. Windows XP, Ubuntu and Fedora are all launching using the boot partition and chainloading. Now I need to install a few more distro's and update the grub.cfg file to point to them.
I appreciate the help you and everyone else have given me. I have a lot to learn and hope to be able to contribute to the group at some point in the near future.
Please use the 'Thread Tools Button' at the top of the post window to mark as "Solved".
OK, new problem. I installed OpenSUSE in /dev/sdb8 (next empty partition). During installation I told it to use /dev/sdb16 for /home (I am trying to use a common partition for all installations. Unlike Fedora and Ubuntu, OpenSUSE did not make it really clear where to set the boot partition. Or it did and I completely missed it. I thought I had set / for boot. Now, instead of Grub2 on /dev/sdb2 running at boot up, OpenSUSE on /dev/sdb8 appears to have taken over. Is there a way to reset my chainloading Grub2 installation on /dev/sdb2 as my MBR? Thanks in advance. Sorry for more newbie questions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.