系统:配备 Intel & T2 的 Macbook Pro 2019,升级至 Sonoma。
目标:Fedora 双重启动。
问题:我不小心删除了 MacOS 上的 EFI 系统分区。现在,我有 T2Linux 的 EFI(EFI 无名称),但 macOS 没有。现在,使用 T2Linux Fedora,首先需要更新 MacOS 中的“firmware.sh”。
删除 MacOS 中的 EFI:
#: TYPE NAME SIZE IDENTIFIER
1: EFI EFI 314.6 MB disk0s1
当前的 diskutil 列表:(1 TB 分区:MacOS 为 400 GB,Linux 为 600 GB):
me@mes-MacBook-Pro ~ % diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: Apple_APFS Container disk1 400.2 GB disk0s1
2: EFI NO NAME 629.1 MB disk0s2
3: Linux Filesystem 1.1 GB disk0s3
4: Linux Filesystem 598.3 GB disk0s4
当前 GPT 分区:
me@mes-MacBook-Pro ~ % sudo gpt -r show disk0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 4 Pri GPT table
6 76800
76806 97715079 1 GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
97791885 115
97792000 153600 2 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
97945600 262144 3 GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
98207744 146068480 4 GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
244276224 36
244276260 4 Sec GPT table
244276264 1 Sec GPT header
尝试在 MacOS 上安装固件.sh 的输出:
me@mes-MacBook-Pro ~ % bash ~/Downloads/firmware.sh
Detected macOS
Mounting the EFI partition
Volume on disk0s1 failed to mount because it appears to be
an APFS Physical Store (or is the APFS Container already mounted?)
See "diskutil apfs list"
编辑:我尝试了以下步骤:但同样,没有创建 EFI:
# diskutil unmountDisk /dev/disk0
unmount of all voulmes on disk0 was successful
# gpt remove -i 1 /dev/disk0
/dev/disk0s1 removed
# gpt add -b 76806 -i 1 -s 97715079 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0s1
/dev/disk0s1 added
# diskutil repairVolume /dev/disk0s1
Finished file system repair on disk0s1
# diskutil mountDisk /dev/disk0s1
voulmes() mounted successfully
我不太擅长linux。那么,有人可以指导我非常简单的步骤吗?
解决方案:
只需一个
EFI
分区就足以在裸机上安装多个操作系统由于
EFI
MacOS 中的 被意外删除,我必须更改 中的脚本firmware.sh
,如下所示,如Discord for T2Linux for Fedora 中的建议:(1)打开脚本并更改
disk0s1 to disk0s2
(2)同时改变
nvme0n1p1 to nvme0n1p2
并且,MacOS Sonoma 和 T2Linux Fedora 的 Wifi 和蓝牙固件均已更新!