diskutil list internal
-bash-3.2# diskutil list internal
/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_HFS Macintosh HD 499.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
-bash-3.2#
diskutil resizeVolume disk0s2 400g jhfs+ Clone 0b
-bash-3.2# diskutil resizeVolume disk0s2 400g jhfs+ Clone 0b
Resizing to 400000000000 bytes and adding 1 partition
Started partitioning on disk0s2 Macintosh HD
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk0s2
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 Macintosh HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Shrinking file system
Copying booter
Modifying partition map
Initialized /dev/rdisk0s4 as a 92 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished partitioning on disk0s2 Macintosh HD
/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_HFS Macintosh HD 400.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s5
4: Apple_HFS Clone 99.1 GB disk0s4
-bash-3.2#
cp -av /Vol*/Macin*/* /Vol*/Clone
df -H
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 2.0G 1.3G 667M 67% 47930 4294919349 0% /
devfs 207k 207k 0B 100% 700 0 100% /dev
/dev/disk2 10M 5.4M 5.1M 52% 22 4294967257 0% /private/var/log
/dev/disk3 10M 262k 10M 3% 3 4294967276 0% /private/var/log/dm
/dev/disk4 524k 147k 377k 29% 5 4294967274 0% /Volumes
/dev/disk5 524k 147k 377k 29% 7 4294967272 0% /private/var/tmp
/dev/disk6 524k 156k 369k 30% 14 4294967265 0% /private/var/run
/dev/disk7 2.1M 152k 1.9M 8% 6 4294967273 0% /private/tmp
/dev/disk8 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk9 524k 307k 217k 59% 28 4294967251 0% /private/var/db
/dev/disk10 13M 7.4M 5.2M 59% 102 4294967177 0% /private/var/folders
/dev/disk11 4.2M 545k 3.6M 13% 47 4294967232 0% /private/var/root/Library
/dev/disk13 2.1M 373k 1.7M 18% 76 4294967203 0% /private/var/root/Library/Containers
/dev/disk14 524k 176k 348k 34% 13 4294967266 0% /Library/Preferences
/dev/disk15 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Preferences/Logging
/dev/disk16 524k 172k 352k 33% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk17 1.0M 201k 848k 20% 8 4294967271 0% /Library/Keychains
/dev/disk18 524k 143k 381k 28% 2 4294967277 0% /Library/Security/Trust Settings
/dev/disk19 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk20 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk21 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk22 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk0s2 400G 9.9G 390G 3% 441725 4294525554 0% /Volumes/Macintosh HD
/dev/disk0s4 99G 12G 87G 13% 440978 4294526301 0% /Volumes/Clone
-bash-3.2#
ls /Vol*/Macin*
-bash-3.2# ls /Vol*/Macin*
.DS_Store bin
.IAProductInfo cores
.OSInstallerMessages dev
.Spotlight-V100 etc
.file home
.fseventsd installer.failurerequests
.hotfiles.btree net
.vol private
Applications sbin
Library tmp
Network usr
System var
Users vm
Volumes
-bash-3.2#
sw_vers -productVersion
diskutil eraseVolume jhfs+ "Macintosh HD" disk0s2
-bash-3.2# diskutil eraseVolume jhfs+ "Macintosh HD" disk0s2
Started erase on disk0s2 Macintosh HD
Unmounting disk
Erasing
Initialized /dev/rdisk0s2 as a 373 GB case-insensitive HFS Plus volume with a 32768k journal
Mounting disk
Finished erase on disk0s2 Macintosh HD
-bash-3.2#