3: Apple_HFS 127.0 GB disk0s3
newfs_hfs -J -v Clone /dev/disk0s3 ; diskutil mount disk0s3 ; diskutil list disk0
Initialized /dev/rdisk0s3 as a 118 GB case-insensitive HFS Plus volume with a 16384k journal
Volume Clone on disk0s3 mounted
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 123.8 GB disk0s2
3: Apple_HFS Clone 127.0 GB disk0s3
3: Apple_HFS Clone 127.0 GB disk0s3
diskutil repairDisk disk0 ; diskutil list disk0
The partition map has been repaired
Finished partition map repair on disk0
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Clone 126.9 GB disk0s3
3: Apple_APFS Container disk1 123.8 GB disk0s2
diskutil ap convert disk0s3
-bash-3.2# diskutil ap convert disk0s3
Started APFS operation on disk0s3 Clone
Converting HFS Volume to an APFS Container which will export one APFS Volume
The target is the Journaled HFS+ volume "Clone" backed by the GPT partition disk0s3
The target is a macOS system disk
Found APFS EFI driver /usr/standalone/i386/apfs.efi to install into the APFS Container
The target is not encrypted
Unmounting disk0s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk0s3
Reporting pre-conversion statistics
Reporting post-conversion statistics
Successfully finished conversion from HFS to APFS
Successful conversion in commit mode so will switch type to APFS
Setting type of disk0s3 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk0s3 to terminate old content driver
Expecting the new APFS Container at Physical Store disk0s3
Confirmed existence of new unencrypted APFS Volume disk22s1
Mounting APFS Volume disk22s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk22s1
Finished APFS operation on disk0s3 Clone
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk22 126.9 GB disk0s3
3: Apple_APFS Container disk1 123.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +123.8 GB disk1
Physical Store disk0s2
1: APFS Volume MAC 13.4 GB disk1s1
2: APFS Volume PreBoot 65.1 MB disk1s2
3: APFS Volume Recovery 1.6 GB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *31.5 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Install macOS High S... 31.1 GB disk2s2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk3
1: Apple_HFS OS X Base System 2.0 GB disk3s1
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk21
/dev/disk22 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +126.9 GB disk22
Physical Store disk0s3
1: APFS Volume Clone 20.5 KB disk22s1
-bash-3.2#
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk2 126.9 GB disk0s2
3: Apple_APFS Container disk1 123.8 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +123.8 GB disk1
Physical Store disk0s3
1: APFS Volume MAC 14.1 GB disk1s1
2: APFS Volume PreBoot 65.1 MB disk1s2
3: APFS Volume Recovery 1.6 GB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +126.9 GB disk2
Physical Store disk0s2
1: APFS Volume Clone 12.4 GB disk2s1
2: APFS Volume PreBoot 22.5 MB disk2s2
3: APFS Volume Recovery 519.3 MB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
diskutil ap deleteContainer disk1 ; diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk2 0b ; diskutil rename disk2s1 MAC ; diskutil list
Started APFS operation on disk1
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Clone" on disk1s1
The volume "Clone" on disk1s1 couldn't be unmounted because it is in use by process 0 (kernel)
Error: -69888: Couldn't unmount disk
The target disk is in use by APFS as a Physical Store; use diskutil apfs deleteContainer
Started APFS operation
Error: -69743: The new size must be different than the existing size
Volume on disk2s1 renamed to MAC
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 126.9 GB disk0s2
3: Apple_APFS Container disk2 123.8 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +126.9 GB disk1
Physical Store disk0s2
1: APFS Volume Clone 12.6 GB disk1s1
2: APFS Volume PreBoot 22.5 MB disk1s2
3: APFS Volume Recovery 519.3 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +123.8 GB disk2
Physical Store disk0s3
1: APFS Volume MAC 14.1 GB disk2s1
2: APFS Volume PreBoot 65.1 MB disk2s2
3: APFS Volume Recovery 1.6 GB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
diskutil ap deleteContainer disk2 ; diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil rename disk1s1 MAC ; diskutil list
Started APFS operation on disk2
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "MAC" on disk2s1
Unmounting Volume "PreBoot" on disk2s2
Unmounting Volume "Recovery" on disk2s3
Unmounting Volume "VM" on disk2s4
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
Reformatting former APFS disks
Initialized /dev/rdisk0s3 as a 115 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation on disk2
Started erase on disk0s3 Untitled
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 123 924 295 680 bytes and targeting a new physical store size of 250 790 436 864 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 250 789 408 768 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 volume
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the object map
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking snapshot 1 of 1
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Verifying allocated space
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 126 866 141 184 to 250 790 436 864 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
Volume on disk1s1 renamed to MAC
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 250.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk1
Physical Store disk0s2
1: APFS Volume MAC 12.6 GB disk1s1
2: APFS Volume PreBoot 22.5 MB disk1s2
3: APFS Volume Recovery 519.3 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4