this post was submitted on 25 Mar 2024
35 points (90.7% liked)

Linux

47361 readers
1163 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm experimenting with a 2014 macbook pro upgraded to macOS 14.4 (Sonoma) with OpenCore Legacy Patcher, Linux Mint 21.3 Virginia and Linux Mint 21.3 Xfce.

First, I installed Linux Mint 21.3 Virginia and I could boot both to macOS and Mint. Then, I created another partition and installed Mint Xfce on it.

Now, I can only access both linux operative systems and macOS has disappeared.

What I don't understand is why now the notebook boots directly to grub instead of booting to OpenCore Legacy Patcher

top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 5 months ago

you've got a grub bootloader in the efi partition. the computer is booting the efi partition's grub straight out of the gate. it doesn't know about the macos so it can't boot to it.

you can edit the grub config to put an option in to boot to macos from grub but you can also just use option-boot to select partitions when you power the computer on.

option-boot is when you hold the option key when you turn the computer on.

[–] [email protected] 1 points 5 months ago

Have you tried the good old #update-grub?

[–] [email protected] 13 points 5 months ago (1 children)

Odds are your Linux install overwrote OCLP. You'd need to install OCLP again and configure it to boot from either Mac OS or your Linux install.

And with GPT partition you can have 128 partitions so ~120 different OSes easily on a single drive.

[–] [email protected] 2 points 5 months ago

Even more with btrfs or LVM.

[–] [email protected] 6 points 5 months ago

If they all support EFI, you'll be out of disk space before you hit the limits of EFI partitioning.

Unless you're one if those challenge accepted people who will try installing 10,000 floppy drive-sized microlinuxes on one system.

We're assuming useful daily driver desktop as the benchmark here. Not boot to a console with nothing on it.

[–] [email protected] 3 points 5 months ago

Probably when you installed the second linux you overwrote the boot loader instead of adding a new UEFI entry point.

But I've never had a Mac, so take this with a pinch of salt, and honestly considering things can change based on what, in which order, and how you installed things.. it could be something else.

[–] [email protected] 2 points 5 months ago

Did you choose the right partition?

Do you still see your Mac partition when you do fdisk -l?

[–] [email protected] 4 points 5 months ago (2 children)

OSX doesn't seem to play nice with linux dual booting. I think holding the option key while booting should force the apple boot menu to show, at least it did when i tried.

[–] [email protected] 4 points 5 months ago

OP is using OpenCore Legacy Patcher to run an newer OS on an unsupported machine. The option boot menu won't work, they'd need to get back to the OCLP menu to boot Mac OS.

[–] [email protected] 7 points 5 months ago

You can always chainload bootloaders and have grub or refind pick the linux os

[–] [email protected] 8 points 5 months ago* (last edited 5 months ago)

Yes. It mostly comes down to two things: Bootloader and partitioning schema.

A properly configured bootloader should include an option for all of your OSes. In most cases, any installed OS should be autodetected an added to the menu. If not, as long as you can boot at least one linux distro, adding any missing ones isn't that hard. I suspect that in your case, the latest OS install didn't account for the missing OS during grub setup.

Partitioning schema isn't hard either, but it can be a bit hard to keep track of the various partitions during install. Just make sure that each OS gets its own partition(s), and that you don't mistakenly overwrite any during install.

[–] [email protected] 42 points 5 months ago

You can install as many OSes as you want.