Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 setting up a new dual boot system with Linux mint 21 as primary OS and OpenBSD as secondary OS. The latter OS is installed first and Linux last. When the computer boots, there is no choice, and Linux boots as if there were no OpenBSD. Therefore, grub will have to be configured in such a way that this choice is available. I just don't know how, so I'm asking you for advice. I would like to receive advice from one of you on how to do this job. Kind regards, Karel.
If Mint was installed last, I would have expected grub-mkconfig to be run at the end of the install and it would have detected the other OS. You could try booting Mint and running: sudo update-grub to see if you get a BSD entry.
Are both installs UEFI or both Legacy? Are they both on the same physical hard drive? The information on the page linked in post 2 should work for a Legacy install if you get the correct drive and partition.
I don't use any of the BSDs, but a quick search found this which seems a pretty good explanation.
The installations were performed on an old computer with a BIOS, with 2 hard drives, with Linux mint installed on the primary, and OpenBSD on the secondary hard drive.
Output from update-grub:
Sourcing file `etc/default/grub
Sourcing file `etc/default/grub.d/50_linuxmint.cfg
Sourcing file `etc/default/grub.d/90_custom.cfg
/usr/sbin/grub-mkconfig: 4: /etc/default/grub.d/90_custom.cfg: menuentry: not found
/etc/default/grub.d/50_linuxmint.cfg:
#! /bin/sh
set -e
GRUB_DISTRIBUTOR="Ubuntu"
GRUB_DISABLE_OS_PROBER=false
The file to edit is not
/etc/default/grub.d/40_custom.cfg
the fille to edit is
/etc/grub.d/40_custom
That does make a difference in scanning its bootable hard drives, but not on the end result. Now I have no menu anymore, and it seems to me that the Partition containing OpenBSD has not been found either.
Since you can boot Mint, why not run sudo fdisk -l to find which drive and partition BSD is seen on from the Mint Grub? Then boot and use the e key on the keyboard to edit the Grub menu to get the correct entry for the drive and partition on which BSD exists. the set root line should show (hd1,1) for the partition on which it resides. If fdisk shows BSD on the first partition of the second drive then (hd1,1) should work. Make a note of what you try. Sees ridiculous to be editing these files and making changes and saving changes and running update-grub when you don't know if anything you are trying will work. Editing from the boot menu is much simpler. Even editing the grub.cfg file and saving the changes is simpler. When you have an entry that works, make the change in the proper file in the grub.d directory.
According to fdisk the OpenBSD root partition is at sdb4, so the set root line should be (hd1,4). For some reason the 40_custom file is not read so the menu cannot be updated. Only the files grub, 50_linuxmint.cfg and init-select.cfg are used. The init-select.cfg file only consists of comments (with #), so it has no significance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.