diskutil ap resizeContainer disk2 600g jhfs+ Clone 0b
-bash-3.2# diskutil ap resizeContainer disk2 600g jhfs+ Clone 0b
Started APFS operation
Aligning shrink delta to 399 995 129 856 bytes and targeting a new physical store size of 600 000 000 000 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 252 312 588 288 bytes
Resizing APFS Container designated by APFS Container Reference disk2
The specific APFS Physical Store being resized is disk1s2
Verifying storage system
Performing fsck_apfs -n -x -S /dev/disk1s2
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 volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by hfs_convert (945.241.4) and last modified by apfs_kext (945.241.4)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
error: alloced_size (2576384) of dstream (id 30292814) does not match calculated size (0)
error: xf : INO_EXT_TYPE_DSTREAM : invalid dstream
error: inode_val: object (oid 0x1ce3bbc): invalid xfields
fsroot tree is invalid
The volume /dev/disk1s2 could not be verified completely
Storage system check exit code is 0
Shrinking APFS Physical Store disk1s2 from 999 995 129 856 to 600 000 000 000 bytes
Shrinking APFS data structures
APFS Container Resize error code is 49168
Error: -69606: A problem occurred while resizing APFS Container structures
-bash-3.2#
diskuti list
df -H
-bash-3.2# diskutil list
/dev/disk0 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk0
1: Apple_HFS OS X Base System 2.0 GB disk0s1
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk2 1000.0 GB disk1s2
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +1000.0 GB disk2
Physical Store disk1s2
1: APFS Volume Macintosh HD 239.3 GB disk2s1
2: APFS Volume Preboot 49.5 MB disk2s2
3: APFS Volume Recovery 517.0 MB disk2s3
4: APFS Volume VM 4.3 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 +6.3 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 +524.3 KB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk20
/dev/disk21 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *499.4 GB disk21
1: Apple_partition_map 32.3 KB disk21s1
2: Apple_HFS My Passport 499.3 GB disk21s3
-bash-3.2#
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s1 2.0G 1.3G 714M 65% 50681 4294916598 0% /
devfs 210k 210k 0B 100% 712 0 100% /dev
/dev/disk3 5.2M 4.6M 610k 89% 21 4294967258 0% /private/var/log
/dev/disk4 524k 147k 377k 29% 5 4294967274 0% /Volumes
/dev/disk5 524k 152k 373k 29% 8 4294967271 0% /private/var/tmp
/dev/disk6 524k 160k 365k 31% 12 4294967267 0% /private/var/run
/dev/disk7 2.1M 143k 2.0M 7% 2 4294967277 0% /private/tmp
/dev/disk8 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk9 524k 303k 221k 58% 21 4294967258 0% /private/var/db
/dev/disk10 13M 6.3M 6.3M 50% 224 4294967055 0% /private/var/folders
/dev/disk11 4.2M 1.9M 2.3M 46% 129 4294967150 0% /private/var/root/Library
/dev/disk13 2.1M 422k 1.7M 21% 76 4294967203 0% /private/var/root/Library/Containers
/dev/disk14 524k 188k 336k 36% 11 4294967268 0% /Library/Preferences
/dev/disk15 524k 164k 360k 32% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk16 1.0M 180k 868k 18% 6 4294967273 0% /Library/Keychains
/dev/disk17 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk18 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk19 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk20 2.1M 1.7M 381k 82% 36 4294967243 0% /Library/Logs/DiagnosticReports
/dev/disk2s1 1.0T 239G 756G 25% 1187661 9223372036853588146 0% /Volumes/Macintosh HD
/dev/disk21s3 499G 436G 63G 88% 2319517 4292647762 0% /Volumes/My Passport
-bash-3.2#
-bash-3.2# diskutil list
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk20
/dev/disk21 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *499.4 GB disk21
1: Apple_partition_map 32.3 KB disk21s1
2: Apple_HFS My Passport 499.3 GB disk21s3
/dev/disk22 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *1.0 TB disk22
1: Windows_NTFS My Passport 1.0 TB disk22s1
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s1 2.0G 1.3G 714M 65% 50681 4294916598 0% /
devfs 213k 213k 0B 100% 720 0 100% /dev
/dev/disk3 5.2M 4.9M 385k 93% 21 4294967258 0% /private/var/log
/dev/disk4 524k 147k 377k 29% 6 4294967273 0% /Volumes
/dev/disk5 524k 152k 373k 29% 8 4294967271 0% /private/var/tmp
/dev/disk6 524k 160k 365k 31% 12 4294967267 0% /private/var/run
/dev/disk7 2.1M 143k 2.0M 7% 2 4294967277 0% /private/tmp
/dev/disk8 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk9 524k 303k 221k 58% 21 4294967258 0% /private/var/db
/dev/disk10 13M 6.3M 6.3M 50% 224 4294967055 0% /private/var/folders
/dev/disk11 4.2M 1.9M 2.3M 46% 130 4294967149 0% /private/var/root/Library
/dev/disk13 2.1M 422k 1.7M 21% 76 4294967203 0% /private/var/root/Library/Containers
/dev/disk14 524k 188k 336k 36% 11 4294967268 0% /Library/Preferences
/dev/disk15 524k 164k 360k 32% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk16 1.0M 180k 868k 18% 6 4294967273 0% /Library/Keychains
/dev/disk17 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk18 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk19 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk20 2.1M 1.8M 266k 88% 38 4294967241 0% /Library/Logs/DiagnosticReports
/dev/disk2s1 1.0T 239G 756G 25% 1187661 9223372036853588146 0% /Volumes/Macintosh HD
/dev/disk21s3 499G 436G 63G 88% 2319517 4292647762 0% /Volumes/My Passport
/dev/disk22s1 1.0T 154G 846G 16% 133840 826640540 0% /Volumes/My Passport 1
-bash-3.2#
diskutil info disk22s1
-bash-3.2# diskutil info disk22s1
Device Identifier: disk22s1
Device Node: /dev/disk22s1
Whole: No
Part of Whole: disk22
Volume Name: My Passport
Mounted: Yes
Mount Point: /Volumes/My Passport 1
Partition Type: Windows_NTFS
File System Personality: NTFS
Type (Bundle): ntfs
Name (User Visible): Windows NT File System (NTFS)
OS Can Be Installed: No
Media Type: Generic
Protocol: USB
SMART Status: Not Supported
Partition Offset: 1048576 Bytes (2048 512-Byte-Device-Blocks)
Disk Size: 1.0 TB (1000169537536 Bytes) (exactly 1953456128 512-Byte-Units)
Device Block Size: 512 Bytes
Volume Total Space: 1.0 TB (1000169533440 Bytes) (exactly 1953456120 512-Byte-Units)
Volume Used Space: 153.7 GB (153689669632 Bytes) (exactly 300175136 512-Byte-Units) (15.4%)
Volume Free Space: 846.5 GB (846479863808 Bytes) (exactly 1653280984 512-Byte-Units) (84.6%)
Allocation Block Size: 4096 Bytes
Read-Only Media: No
Read-Only Volume: Yes
Device Location: External
Removable Media: Fixed
-bash-3.2#
File System Personality: NTFS
-bash-3.2# diskutil list
/dev/disk0 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk0
1: Apple_HFS OS X Base System 2.0 GB disk0s1
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk2 1000.0 GB disk1s2
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +1000.0 GB disk2
Physical Store disk1s2
1: APFS Volume Macintosh HD 239.3 GB disk2s1
2: APFS Volume Preboot 49.5 MB disk2s2
3: APFS Volume Recovery 517.0 MB disk2s3
4: APFS Volume VM 4.3 GB disk2s4
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk3
(...)
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk20
/dev/disk21 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk21
1: EFI EFI 209.7 MB disk21s1
2: Apple_HFS WD NE 2019 999.8 GB disk21s2
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s1 2.0G 1.3G 714M 65% 50681 4294916598 0% /
devfs 211k 211k 0B 100% 716 0 100% /dev
/dev/disk3 5.2M 4.4M 872k 84% 36 4294967243 0% /private/var/log
/dev/disk4 524k 147k 377k 29% 5 4294967274 0% /Volumes
/dev/disk5 524k 152k 373k 29% 8 4294967271 0% /private/var/tmp
/dev/disk6 524k 156k 369k 30% 11 4294967268 0% /private/var/run
/dev/disk7 2.1M 143k 2.0M 7% 2 4294967277 0% /private/tmp
/dev/disk8 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk9 524k 303k 221k 58% 21 4294967258 0% /private/var/db
/dev/disk10 13M 8.5M 4.1M 68% 224 4294967055 0% /private/var/folders
/dev/disk11 4.2M 2.0M 2.2M 47% 135 4294967144 0% /private/var/root/Library
/dev/disk13 2.1M 422k 1.7M 21% 76 4294967203 0% /private/var/root/Library/Containers
/dev/disk14 524k 188k 336k 36% 11 4294967268 0% /Library/Preferences
/dev/disk15 524k 164k 360k 32% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk16 1.0M 180k 868k 18% 6 4294967273 0% /Library/Keychains
/dev/disk17 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk18 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk19 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk20 2.1M 2.1M 37k 99% 42 4294967237 0% /Library/Logs/DiagnosticReports
/dev/disk2s1 1.0T 239G 756G 25% 1187661 9223372036853588146 0% /Volumes/Macintosh HD
/dev/disk21s2 1000 664M 999G 1% 85 4294967194 0% /Volumes/WD NE 2019
-bash-3.2#
diskutil rename disk21s2 Clone
caffeinate -dimsu &
cp -av /Volumes/"Macintosh HD"/* /Volumes/Clone