df -H
-bash-3.2# df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 1.9Gi 1.2Gi 686Mi 64% 45181 4294922098 0% /
devfs 204Ki 204Ki 0Bi 100% 704 0 100% /dev
/dev/disk3 5.0Mi 488Ki 4.5Mi 10% 20 4294967259 0% /private/var/log
/dev/disk4 512Ki 144Ki 368Ki 29% 5 4294967274 0% /Volumes
/dev/disk5 512Ki 144Ki 368Ki 29% 7 4294967272 0% /private/var/tmp
/dev/disk6 512Ki 152Ki 360Ki 30% 11 4294967268 0% /private/var/run
/dev/disk7 2.0Mi 140Ki 1.9Mi 7% 2 4294967277 0% /private/tmp
/dev/disk8 512Ki 140Ki 372Ki 28% 2 4294967277 0% /System/Installation
/dev/disk9 512Ki 288Ki 224Ki 57% 19 4294967260 0% /private/var/db
/dev/disk10 12Mi 3.0Mi 9.0Mi 25% 62 4294967217 0% /private/var/folders
/dev/disk11 4.0Mi 200Ki 3.8Mi 5% 21 4294967258 0% /private/var/root/Library
/dev/disk13 2.0Mi 140Ki 1.9Mi 7% 2 4294967277 0% /private/var/root/Library/Containers
/dev/disk14 512Ki 176Ki 336Ki 35% 11 4294967268 0% /Library/Preferences
/dev/disk15 512Ki 156Ki 356Ki 31% 5 4294967274 0% /Library/Preferences/SystemConfiguration
/dev/disk16 1.0Mi 188Ki 836Ki 19% 6 4294967273 0% /Library/Keychains
/dev/disk17 6.0Mi 172Ki 5.8Mi 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk18 6.0Mi 172Ki 5.8Mi 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk19 512Ki 140Ki 372Ki 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk20 2.0Mi 140Ki 1.9Mi 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk0s3 94Gi 41Gi 53Gi 44% 655266 4294312013 0% /Volumes/Clone
/dev/disk2s1 129Gi 38Gi 90Gi 30% 654356 9223372036854121451 0% /Volumes/MacOS
-bash-3.2#
diskutil ap deleteContainer disk2 macOS
-bash-3.2# diskutil ap deleteContainer disk2 MacOS
Started APFS operation on disk2
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "MacOS" 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/rdisk0s2 as a 129 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: disk0s2
Finished APFS operation on disk2
-bash-3.2#
diskutil list
Last login: Sat May 16 14:40:20 on console
iMac-de-Damien:~ damien$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 139.0 GB disk0s2
3: Apple_HFS Clone 100.7 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +139.0 GB disk1
Physical Store disk0s2
1: APFS Volume MacOS 34.5 GB disk1s1
2: APFS Volume Preboot 23.5 MB disk1s2
3: APFS Volume Recovery 512.1 MB disk1s3
4: APFS Volume VM 20.5 KB disk1s4
iMac-de-Damien:~ damien$
diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list
Last login: Sat May 16 18:01:09 on console
iMac-de-Damien:~ damien$ diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list
Started erase on disk0s3 Clone
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 100 847 656 960 bytes and targeting a new physical store size of 239 847 653 376 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 239 846 625 280 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 138 999 996 416 to 239 847 653 376 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 239.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +239.8 GB disk1
Physical Store disk0s2
1: APFS Volume MacOS 34.8 GB disk1s1
2: APFS Volume Preboot 23.5 MB disk1s2
3: APFS Volume Recovery 512.1 MB disk1s3
4: APFS Volume VM 20.5 KB disk1s4
iMac-de-Damien:~ damien$
-bash-3.2# diskutil list
/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 disk2 499.9 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +499.9 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD 156.4 GB disk2s1
2: APFS Volume Preboot 23.7 MB disk2s2
3: APFS Volume Recovery 507.4 MB disk2s3
4: APFS Volume VM 2.1 GB disk2s4
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk3
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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 +2.1 MB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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 +12.6 MB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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 +1.0 MB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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
-bash-3.2#
rm /Volumes/"Macintosh HD"/private/var/db/caches/opendirectory/mbr_cache
-bash-3.2# rm /Volumes/"Macintosh HD"/private/var/db/caches/opendirectory/mbr_cache
rm: /Volumes/Macintosh HD/private/var/db/caches/opendirectory/mbr_cache: No such file or directory
-bash-3.2#
ls -al /Vol*/Macin*/var/db/caches/open*/mbr*
-bash-3.2# ls -al /Volumes/Macintosh HD/var/db/caches/opendirectory/mbr_cache
ls: /Volumes/Macintosh: No such file or directory
ls: HD/var/db/caches/opendirectory/mbr_cache: No such file or directory
-bash-3.2#