惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
M
MIT News - Artificial intelligence
量子位
N
Netflix TechBlog - Medium
The Cloudflare Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
B
Blog
博客园_首页
博客园 - Franky
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
H
Help Net Security
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments
Macbook Pro Late 2013 Retina (Page 17) / Laptop Issues
Leksii · 2026-06-28 · via Arch Linux Forums

I'll share my experience installing GRUB on HFS+. This issue hasn't been clearly discussed anywhere. Perhaps this will be helpful.
MacBook Pro 11.3 A1398 (EMC 2745).
Triple boot: macOS Big Sur + Windows 11 + Arch Linux.

Create a separate HFS+ partition (in macOS Big Sur). I recommend using the recovery environment or installation media—this will reduce unnecessary clutter.
# diskutil addPartition disk0 hfs+ "LinuxBoot" 100M
# reboot

In the Arch Linux installation environment.
Mount the HFS+ partition anywhere (for example, /hfsprt).
# mount --mkdir -t hfsplus -o rw /dev/sda5 /mnt/hfsprt

Preparing the HFS+ partition.
# touch /hfsprt/mach_kernel
# mkdir -p /hfsprt/System/Library/CoreServices
# mkdir -p /hfsprt/EFI/BOOT
# ln -f /hfsprt/mach_kernel /hfsprt/EFI/BOOT/mach_kernel

Install GRUB.
# pacman -S grub os-prober
# grub-install --target=x86_64-efi --efi-directory=/hfsprt --removable --no-nvram --disable-shim-lock

grub-install will generate all the necessary files (as described in the Arch Linux wiki), but in the /hfsprt/EFI/BOOT/ directory.

Align the HFS+ partition structure to the macOS boot drive using hard links.
# ln -f /hfsprt/EFI/BOOT/System/Library/CoreServices/SystemVersion.plist /hfsprt/System/Library/CoreServices/SystemVersion.plist
# ln -f /hfsprt/EFI/BOOT/System/Library/CoreServices/.disk_label /hfsprt/System/Library/CoreServices/.disk_label
# ln -f /hfsprt/EFI/BOOT/System/Library/CoreServices/.disk_label.contentDetails /hfsprt/System/Library/CoreServices/.disk_label.contentDetails
# ln -f /hfsprt/EFI/BOOT/System/Library/CoreServices/boot.efi /hfsprt/System/Library/CoreServices/boot.efi
# grub-mkconfig -o /boot/grub/grub.cfg
...
# reboot

Using blessing.
Start the computer in recovery mode (Command (⌘) + R)
# bless --folder /Volumes/LinuxBoot/System/Library/CoreServices/ --file /Volumes/LinuxBoot/System/Library/CoreServices/boot.efi --setBoot
# reboot

What is achieved?
The Linux boot partition behaves identically to the native macOS boot volume.
Arch Linux will always appear in the Mac startup manager (Option (⌥) menu) with a custom GRUB version label.
The system remains bootable and automatically restores its NVRAM boot entry even after an NVRAM reset.
The bootloader is isolated from the main EFI partition, preventing conflicts with the Windows boot manager.
GRUB updates are processed automatically by the system.

P.S.: Sorry for my English.

Last edited by Leksii (Today 22:35:08)