Started APFS operation Aligning grow delta to 260,050,452,480 bytes and targeting a new physical store size of 499,898,105,856 bytes Determined the maximum size for the targeted physical store of this APFS Container to be 499,897,077,760 bytes Resizing APFS Container designated by APFS Container Reference disk1 The specific APFS Physical Store being resized is disk0s2 Verifying storage system Using live mode Performing fsck_apfs -n -x -l /dev/disk0s2 Checking the container superblock Checking the EFI jumpstart record Checking the space manager Checking the space manager free queue trees Checking the object map Checking the encryption key structures Checking volume /dev/rdisk1s1 Checking the APFS volume superblock Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking the document ID tree Checking the fsroot tree Checking the extent ref tree Verifying volume object map space The volume /dev/rdisk1s1 appears to be OK Checking volume /dev/rdisk1s2 Checking the APFS volume superblock Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking the fsroot tree Checking the extent ref tree Verifying volume object map space The volume /dev/rdisk1s2 appears to be OK Checking volume /dev/rdisk1s3 Checking the APFS volume superblock Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking the fsroot tree Checking the extent ref tree Verifying volume object map space The volume /dev/rdisk1s3 appears to be OK Checking volume /dev/rdisk1s4 Checking the APFS volume superblock Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking the fsroot tree Checking the extent ref tree Verifying volume object map space The volume /dev/rdisk1s4 appears to be OK Checking volume /dev/rdisk1s5 Checking the APFS volume superblock Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking snapshot 1 of 1 (com.apple.os.update-018EB80C949FBD899...) Checking the fsroot tree Checking the file extent tree Checking the extent ref tree Verifying volume object map space The volume /dev/rdisk1s5 appears to be OK Checking volume /dev/rdisk1s6 Checking the APFS volume superblock Checking the object map Checking the snapshot metadata tree Checking the snapshot metadata Checking the fsroot tree Checking the extent ref tree Verifying volume object map space The volume /dev/rdisk1s6 appears to be OK Verifying allocated space The container /dev/disk0s2 appears to be OK Storage system check exit code is 0 Growing APFS Physical Store disk0s2 from 239,847,653,376 to 499,898,105,856 bytes Modifying partition map Growing APFS data structures Finished APFS operation
Repairing the partition map might erase disk0s1, proceed? (y/N) y Started partition map repair on disk0 Checking prerequisites Checking the partition list Adjusting partition map to fit whole disk as required Checking for an EFI system partition Checking the EFI system partition's size Checking the EFI system partition's file system Repairing the EFI system partition's file system Checking file system and repairing if necessary and if possible Volume is already unmounted Performing fsck_msdos -y /dev/rdisk0s1 ** /dev/rdisk0s1 ** Phase 1 - Preparing FAT ** Phase 2 - Checking Directories ** Phase 3 - Checking for Orphan Clusters Found orphan cluster(s) Fix? yes Marked 116 clusters as free Free space in FSInfo block (363872) not correct (363988) Fix? yes 813 files, 181994 KiB free (363988 clusters)
***** FILE SYSTEM WAS MODIFIED ***** File system check exit code is 0 Restoring the original state found as unmounted Checking the EFI system partition's folder content Checking all HFS data partition loader spaces Checking booter partitions Reviewing boot support loaders Checking Core Storage Physical Volume partitions The partition map has been repaired Finished partition map repair on disk0
本当に拡張
sudo diskutil apfs resizeContainer disk0s2 0
1 2 3 4 5
Started APFS operation Aligning grow delta to 260,050,452,480 bytes and targeting a new physical store size of 499,898,105,856 bytes Determined the maximum size for the targeted physical store of this APFS Container to be 499,897,077,760 bytes 長いので略 Finished APFS operation
/dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +499.9 GB disk1 Physical Store disk0s2
容量が変更されました。お疲れさまでした。
蛇足
使わなかったコマンド
sudo diskutil apfs resizeContainer disk0s2 limits
1 2 3 4 5
Resize limits for APFS Physical Store partition disk0s2: Current Physical Store partition size on map: 239.8 GB (239847653376 Bytes) Minimum (constrained by file/snapshot usage): 75.9 GB (75942068224 Bytes) Recommended minimum (if used with macOS): 86.7 GB (86679486464 Bytes) Maximum (constrained by partition map space): 499.9 GB (499897077760 Bytes)