diskutil list
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 999.3 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS OS X Base System 2.0 GB disk1s1
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *61.8 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Install macOS High S... 61.5 GB disk2s2
/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: FDisk_partition_scheme *1.0 TB disk21
1: Apple_HFS PHILIPPE 2 1.0 TB disk21s1
-bash-3.2#
diskutil eraseDisk jhfs+ Clone gpt disk21
-bash-3.2# diskutil eraseDisk jhfs+ Clone gpt disk21
Started erase on disk21
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk21s2 as Mac OS Extended (Journaled) with name Clone
Initialized /dev/rdisk21s2 as a 931 GB case-insensitive HFS Plus volume with a 81920k journal
Mounting disk
Finished erase on disk21
-bash-3.2#
caffeinate -dimsu &
cp -av /Volumes/"Macintosh HD"/* /Volumes/Clone
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 2.0G 1.3G 715M 65% 45155 4294922124 0% /
devfs 209k 209k 0B 100% 708 0 100% /dev
/dev/disk3 5.2M 1.7M 3.5M 34% 22 4294967257 0% /private/var/log
/dev/disk4 524k 147k 377k 29% 7 4294967272 0% /Volumes
/dev/disk5 524k 147k 377k 29% 7 4294967272 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 147k 377k 29% 3 4294967276 0% /System/Installation
/dev/disk9 524k 311k 213k 60% 22 4294967257 0% /private/var/db
/dev/disk10 13M 5.1M 7.4M 41% 81 4294967198 0% /private/var/folders
/dev/disk11 4.2M 4.0M 180k 96% 325 4294966954 0% /private/var/root/Library
/dev/disk13 2.1M 143k 2.0M 7% 2 4294967277 0% /private/var/root/Library/Containers
/dev/disk14 524k 184k 340k 36% 11 4294967268 0% /Library/Preferences
/dev/disk15 524k 164k 360k 32% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk16 1.0M 184k 864k 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 143k 2.0M 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk2s2 62G 5.5G 56G 9% 1079 4294966200 0% /Volumes/Install macOS High Sierra
/dev/disk0s3 650M 540M 103M 84% 18 4294967261 0% /Volumes/Image Volume
/dev/disk0s2 999G 568G 431G 57% 1388961 4293578318 0% /Volumes/Macintosh HD
/dev/disk21s2 1000 577G 423G 58% 1278316 4293688963 0% /Volumes/Clone
-bash-3.2#
diskutil eraseVolume jhfs+ "Macintosh HD" disk0s2
-bash-3.2# caffeinate -dimsu &
[1] 768
-bash-3.2# diskutil eraseVolume jhfs+ "Macinstosh HD" disk0s2
Started erase on disk0s2 Macintosh HD
Unmounting disk
Erasing
Initialized /dev/rdisk0s2 as a 931 GB case-insensitive HFS Plus volume with a 81920k journal
Mounting disk
Finished erase on disk0s2 Macinstosh HD
-bash-3.2#