In the absence of a reply from
@dosdude1 as to why my APFS Boot prefpane is crashing, maybe someone else can help shed some light. I've had a look at the source code for the Catalina version on his gitbub repo - the Mojave version isn't on github. Assuming they are similar, what it appears to be doing is simply parsing the output from /usr/sbin/diskutil, so it should be fairly easy, for someone who knows what to look for, to figure out why mine fails. It may be that there's something amiss with my disk layout. As I've said before, the reason it crashes is due to an unhandled exception when trying to extract a substring of an empty string.
Here's the output from diskutil list:
Code:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 499.9 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +499.9 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 198.3 GB disk1s1
2: APFS Volume Preboot 41.8 MB disk1s2
3: APFS Volume Recovery 510.4 MB disk1s3
4: APFS Volume VM 5.4 GB disk1s4
And here's the output from diskutil info /
Code:
Device Identifier: disk1s1
Device Node: /dev/disk1s1
Whole: No
Part of Whole: disk1
Volume Name: Macintosh HD
Mounted: Yes
Mount Point: /
Partition Type: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
File System Personality: APFS
Type (Bundle): apfs
Name (User Visible): APFS
Owners: Enabled
OS Can Be Installed: Yes
Booter Disk: disk1s2
Recovery Disk: disk1s3
Media Type: Generic
Protocol: SATA
SMART Status: Verified
Volume UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Disk / Partition UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Disk Size: 499.9 GB (499898105856 Bytes) (exactly 976363488 512-Byte-Units)
Device Block Size: 4096 Bytes
Volume Total Space: 499.9 GB (499898105856 Bytes) (exactly 976363488 512-Byte-Units)
Volume Used Space: 204.1 GB (204112875520 Bytes) (exactly 398657960 512-Byte-Units) (40.8%)
Volume Free Space: 295.8 GB (295785230336 Bytes) (exactly 577705528 512-Byte-Units) (59.2%)
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
I don't know if the alphanumeric strings are sensitive, so I've obfuscated them.