diskutil list
-bash-3.2# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: *4.1 GB disk0
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *1.2 GB disk1
1: Apple_partition_map 30.7 KB disk1s1
2: Apple_HFS Mac OS X Base System 1.2 GB disk1s2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk3
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk4
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk5
-bash-3.2# diskutil list
$/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *1.2 GB disk1
1: Apple_partition_map 30.7 KB disk1s1
2: Apple_HFS Mac OS X Base System 1.2 GB disk1s2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk3
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk4
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk5
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk6
/dev/disk7
#: TYPE NAME SIZE IDENTIFIER
0: untitled *6.3 MB disk7
/dev/disk8
#: TYPE NAME SIZE IDENTIFIER
0: untitled *2.1 MB disk8
/dev/disk9
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk9
/dev/disk10
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk10
/dev/disk11
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk11
/dev/disk12
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk12
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk13
1: EFI 209.7 MB disk13s1
2: Apple_HFS Sans titre 999.3 GB disk13s2
3: Apple_Boot Recovery HD 650.0 MB disk13s3
-bash-3.2# $
diskutil resizeVolume disk13s2 700g jhfs+ Clone 0b
-bash-3.2# diskutil resizeVolume disk13s2 700g jhfs+ Clone 0b
Started partitioning on disk13s2 Sans titre
Verifying the disk
Checking file system
Checking Journaled HFS Plus 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 Sans titre appears to be OK
Resizing
Waiting for the disks to reappear
Formatting disk13s4 as Mac OS Extended (Journaled) with name Clone
Initialized /dev/rdisk13s4 as a 279 GB HFS Plus volume with a 24576k journal
Mounting disk
Finished partitioning on disk13s2 Sans titre
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk13
1: EFI 209.7 MB disk13s1
2: Apple_HFS Sans titre 700.0 GB disk13s2
3: Apple_Boot Recovery HD 650.0 MB disk13s3
4: Apple_HFS Clone 299.2 GB disk13s4
-bash-3.2#
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk13
1: EFI 209.7 MB disk13s1
2: Apple_HFS Sans titre 700.0 GB disk13s2
3: Apple_Boot Recovery HD 650.0 MB disk13s3
4: Apple_HFS Clone 299.2 GB disk13s4
df -H
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s2 1.2G 1.1G 38M 97% 281961 9340 97% /
devfs 199k 199k 0B 100% 672 0 100% /dev
/dev/disk2 524k 147k 377k 29% 34 92 27% /Volumes
/dev/disk3 524k 143k 381k 28% 33 93 26% /private/var/tmp
/dev/disk4 524k 160k 365k 31% 37 89 29% /private/var/run
/dev/disk5 524k 143k 381k 28% 33 93 26% /System/Installation
/dev/disk6 524k 274k 250k 53% 65 61 52% /private/var/db
/dev/disk7 6.3M 1.9M 4.4M 30% 458 1076 30% /private/var/folders
/dev/disk8 2.1M 225k 1.9M 11% 53 457 10% /private/var/root/Library
/dev/disk9 1.0M 147k 901k 15% 34 220 13% /Library/ColorSync/Profiles/Displays
/dev/disk10 524k 172k 352k 33% 40 86 32% /Library/Preferences
/dev/disk11 524k 156k 369k 30% 36 90 29% /Library/Preferences/SystemConfiguration
/dev/disk12 1.0M 176k 872k 17% 41 213 16% /Library/Keychains
/dev/disk13s4 299G 424M 299G 1% 103607 72945930 0% /Volumes/Clone
/dev/disk13s2 700G 207G 493G 30% 50573000 120325435 30% /Volumes/Sans titre
-bash-3.2#
caffeinate -dimsu &
cp -av /Volumes/"Sans titre"/* /Volumes/Clone
df -H
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s2 1.2G 1.1G 38M 97% 281961 9340 97% /
devfs 198k 198k 0B 100% 670 0 100% /dev
/dev/disk2 524k 147k 377k 29% 34 92 27% /Volumes
/dev/disk3 524k 143k 381k 28% 33 93 26% /private/var/tmp
/dev/disk4 524k 160k 365k 31% 37 89 29% /private/var/run
/dev/disk5 524k 143k 381k 28% 33 93 26% /System/Installation
/dev/disk6 524k 274k 250k 53% 65 61 52% /private/var/db
/dev/disk7 6.3M 2.5M 3.8M 40% 600 934 39% /private/var/folders
/dev/disk8 2.1M 1.9M 147k 93% 474 36 93% /private/var/root/Library
/dev/disk9 1.0M 147k 901k 15% 34 220 13% /Library/ColorSync/Profiles/Displays
/dev/disk10 524k 172k 352k 33% 40 86 32% /Library/Preferences
/dev/disk11 524k 160k 365k 31% 37 89 29% /Library/Preferences/SystemConfiguration
/dev/disk12 1.0M 176k 872k 17% 41 213 16% /Library/Keychains
/dev/disk13s4 299G 202G 97G 68% 49395238 23654299 68% /Volumes/Clone
/dev/disk13s2 700G 207G 493G 30% 50565056 120333379 30% /Volumes/Sans titre
-bash-3.2#
diskutil eraseVolume jhfs+ "Macintosh HD" disk13s2