Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 am currently running Debian Sid with Grub2 as my main OS. What is happening is that grub2 is picking up the Debian kernels, but not Gentoo nor Windows?
I tried to edit the /boot/grub/grub.cfg but on an update-grub2 those entries would be deleted. I then noticed the file actually says not to edit it.
I have had a look at the files in /etc/grub.d/ but they do not help me in sorting out how I would add an entry like the below permanently
Code:
menuentry "Gentoo" {
set root=hd(0,6)
chainloader +1
}
In desperation I even tried adding the below to /boot/grub/grub.cfg
Code:
### BEGIN /etc/grub.d/50_personal ###
### END /etc/grub.d/50_personal ###
And then setting that file as follows (and ran chmod a+x):
I have only played with some stuff in vbox as I have only one system partition and if I change distros...it will overwrite there.
I am wondering if you have tried something easier?....to use the os prober function...I am now thinking it needs to find bootable partitions.
2) If you have the time to test, run a live cd and run gparted or some other partition tool and mod your Gentoo partition to make it bootable.
then boot back into sid or whatever your grub2 is on...and run update-grub...(after making a backup of course)...and see if the script for os prober worked and grub.cfg has changed?
3) if you feel like doing this....and it is confirmed....I will edit my wiki and give you credit.
regards
EDIT
4) if not gparted...fdisk /dev/sdX...x likely to be a
press m for help and a is the bootable command
I normally run multiple OSes with one designated as my main OS (for the last 3-4 years this has been Debian). Every other OS I intsall I then install grub to that partition. I do this so when I change kernels and the like the grub for that distro does its business without issue.
So in the Debian grub, I need to have entries that point to the partition of the other OSes using chainloader. I used osprober a couple of times but it didn't pick up all my OSes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.