====== Install ======
sudo ./refind-install
====== refind conf ======
mkdir /Volumes/ESP
sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
cd /Volumes/ESP/EFI/refind
vim refind.conf
====== Gentoo refind ======
https://wiki.gentoo.org/wiki/Refind
FILE /boot/EFI/gentoo/refind_linux.conf
"Default" "root=/dev/sda2 rootfstype=ext4 ro quiet"
"Console" "root=/dev/sda2 rootfstype=ext4 ro quiet nox nogui"
"Emergency" "root=/dev/sda2 rootfstype=ext4 ro 1"
Custom (static) initramfs and microcode loading:
FILE /boot/EFI/gentoo/refind_linux.conf
"Standard boot" "root=LABEL=root initrd=intel-ucode.img initrd=initramfs-custom.img quiet"
"Single-user mode" "root=LABEL=root initrd=intel-ucode.img initrd=initramfs-custom.img single"
"Minimal options" "ro root=LABEL=root initrd=initramfs-custom.img"
====== disk info ======
diskutil list /dev/disk0
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *128.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 82.7 GB disk0s2
3: Linux Filesystem home 20.2 GB disk0s3
4: Linux Filesystem root 25.0 GB disk0s4
sudo gpt -r show /dev/disk0
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 161425800 2 GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
161835440 39406250 3 GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
201241690 48827957 4 GPT part - 0FC63DAF-8483-4772-8E79-3D69D8477DE4
250069647 32 Sec GPT table
250069679 1 Sec GPT header
可用: 11.84 GB(11,840,794,624 字节)
容量: 20.18 GB(20,175,998,976 字节)
装载点: /Volumes/home
文件系统: UFSD_EXTFS3
可写: 是
忽略所有权: 否
BSD 名称: disk0s3
宗卷 UUID: 0E5AF020-375A-403E-960F-BDC8A343987B
物理驱动器:
设备名称: M4-CT128M4SSD2
介质名称: M4-CT128M4SSD2 Media
介质类型: SSD
协议: SATA
内置: 是
分区图类型: GPT(GUID 分区表)
S.M.A.R.T. 状态: 已验证
root:
可用: 10.71 GB(10,705,485,824 字节)
容量: 25 GB(24,999,911,424 字节)
装载点: /Volumes/root
文件系统: UFSD_EXTFS3
可写: 是
忽略所有权: 否
BSD 名称: disk0s4
宗卷 UUID: CED68C6E-6AE0-4454-B662-3C206D78C659
物理驱动器:
设备名称: M4-CT128M4SSD2
介质名称: M4-CT128M4SSD2 Media
介质类型: SSD
协议: SATA
内置: 是
分区图类型: GPT(GUID 分区表)
S.M.A.R.T. 状态: 已验证
MAC OS X:
可用: 14.38 GB(14,379,962,368 字节)
容量: 82.65 GB(82,650,009,600 字节)
装载点: /
文件系统: APFS
可写: 是
忽略所有权: 否
BSD 名称: disk1s1
宗卷 UUID: 16C10D06-3D08-3FD7-9D70-A2F0B61A688D
物理驱动器:
设备名称: M4-CT128M4SSD2
介质名称: AppleAPFSMedia
介质类型: SSD
协议: SATA
内置: 是
分区图类型: 未知
S.M.A.R.T. 状态: 已验证
diskutil info /dev/disk0s3
Device Identifier: disk0s3
Device Node: /dev/disk0s3
Whole: No
Part of Whole: disk0
Volume Name: home
Mounted: Yes
Mount Point: /Volumes/home
Partition Type: Linux Filesystem
File System Personality: UFSD_EXTFS3
Type (Bundle): ufsd_ExtFS
Name (User Visible): extFS 3
OS Can Be Installed: No
Media Type: Generic
Protocol: SATA
SMART Status: Verified
Volume UUID: 0E5AF020-375A-403E-960F-BDC8A343987B
Disk / Partition UUID: 756477D1-35A7-4201-B2C4-042946C81597
Partition Offset: 82859745280 Bytes (161835440 512-Byte-Device-Blocks)
Disk Size: 20.2 GB (20176000000 Bytes) (exactly 39406250 512-Byte-Units)
Device Block Size: 512 Bytes
Volume Total Space: 20.2 GB (20175998976 Bytes) (exactly 39406248 512-Byte-Units)
Volume Used Space: 8.3 GB (8335204352 Bytes) (exactly 16279696 512-Byte-Units) (41.3%)
Volume Free Space: 11.8 GB (11840794624 Bytes) (exactly 23126552 512-Byte-Units) (58.7%)
Allocation Block Size: 4096 Bytes
Read-Only Media: No
Read-Only Volume: No
Device Location: Internal
Removable Media: Fixed
Solid State: Yes
Hardware AES Support: No
diskutil info /dev/disk0s4
Device Identifier: disk0s4
Device Node: /dev/disk0s4
Whole: No
Part of Whole: disk0
Volume Name: root
Mounted: Yes
Mount Point: /Volumes/root
Partition Type: Linux Filesystem
File System Personality: UFSD_EXTFS3
Type (Bundle): ufsd_ExtFS
Name (User Visible): extFS 3
OS Can Be Installed: No
Media Type: Generic
Protocol: SATA
SMART Status: Verified
Volume UUID: CED68C6E-6AE0-4454-B662-3C206D78C659
Disk / Partition UUID: 6F4F3FB7-01A9-4431-B2D1-CAFD67AFDEDD
Partition Offset: 103035745280 Bytes (201241690 512-Byte-Device-Blocks)
Disk Size: 25.0 GB (24999913984 Bytes) (exactly 48827957 512-Byte-Units)
Device Block Size: 512 Bytes
Volume Total Space: 25.0 GB (24999911424 Bytes) (exactly 48827952 512-Byte-Units)
Volume Used Space: 14.3 GB (14294425600 Bytes) (exactly 27918800 512-Byte-Units) (57.2%)
Volume Free Space: 10.7 GB (10705485824 Bytes) (exactly 20909152 512-Byte-Units) (42.8%)
Allocation Block Size: 4096 Bytes
Read-Only Media: No
Read-Only Volume: No
Device Location: Internal
Removable Media: Fixed
Solid State: Yes
Hardware AES Support: No
====== Reference ======
- https://blog.csdn.net/XiaoshaXs/article/details/52016628
- https://huataihuang.gitbooks.io/cloud-atlas/content/develop/mac/refind.html
- https://www.rodsbooks.com/refind/installing.html
- https://bbs.archlinux.org/viewtopic.php?id=190291
- https://superuser.com/questions/888000/refind-boot-manager-volume-as-guid