Bloc de code:
-bash-3.2# diskutil resizeVolume disk21s2 400g jhfs+ SOS 0b
Resizing to 400000000000 bytes and adding 1 partition
Started partitioning on disk21s2 Clone
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 Clone 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 1 TB case-insensitive HFS Plus volume with a 122880k journal
Mounting disk
Finished partitioning on disk21s2 Clone
/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 Clone 400.0 GB disk21s2
3: Apple_HFS SOS 1.6 TB disk21s3
-bash-3.2#