Bloc de code:
-bash-3.2# diskutil resizeVolume disk4s2 1800g jhfs+ TEST 0b
Resizing to 1800000000000 bytes and adding 1 partition
Started partitioning on disk4s2 Elements
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk4s2
Checking Journaled HFS Plus volume
Detected a case-sensitive volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking multi-linked directories
Checking volume bitmap
Checking volume information
The volume Elements 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/rdisk4s6 as a 93 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished partitioning on disk4s2 Elements
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS Elements 1.8 TB disk4s2
3: Apple_HFS TEST 99.9 GB disk4s6
4: Apple_HFS Clone 49.9 GB disk4s3
5: Apple_HFS Install macOS High S... 49.8 GB disk4s4
-bash-3.2#