Bloc de code:
-bash-3.2# diskutil resizeVolume disk21s2 1800g jhfs+ Clone 0b
Resizing to 1800000000000 bytes and adding 1 partition
Started partitioning on disk21s2 MY PASSPORT
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk21s2
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume MY PASSPORT appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Shrinking file system
Modifying partition map
Initialized /dev/rdisk21s3 as a 186 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished partitioning on disk21s2 MY PASSPORT
/dev/disk21 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk21
1: EFI EFI 209.7 MB disk21s1
2: Apple_HFS MY PASSPORT 1.8 TB disk21s2
3: Apple_HFS Clone 199.9 GB disk21s3
-bash-3.2#