M
diskutil list
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk2 250.8 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk2
Physical Store disk0s2
1: APFS Volume macbook air 13 209.6 GB disk2s1
2: APFS Volume Preboot 53.7 MB disk2s2
3: APFS Volume Recovery 507.4 MB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
/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 +524.3 KB 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 +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk21
/dev/disk22 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *2.0 TB disk22
1: Windows_NTFS Seagate Expansion Drive 2.0 TB disk22s1
-bash-3.2#
diskutil eraseDisk apfs Clone gpt disk22
-bash-3.2# diskutil eraseDisk apfs Clone gpt disk22
Started erase on disk22
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk22s2 as APFS with name Clone
Mounting disk
Finished erase on disk22
-bash-3.2#
caffeinate -dimsu &
cp -av /Volumes/macbook*/* /Volumes/Clone
df -H
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 2.0G 1.3G 721M 64% 50309 4294916970 0% /
devfs 214k 214k 0B 100% 724 0 100% /dev
/dev/disk4 5.2M 438k 4.8M 9% 21 4294967258 0% /private/var/log
/dev/disk6 524k 147k 377k 29% 5 4294967274 0% /Volumes
/dev/disk7 524k 147k 377k 29% 7 4294967272 0% /private/var/tmp
/dev/disk8 524k 160k 365k 31% 15 4294967264 0% /private/var/run
/dev/disk9 2.1M 143k 2.0M 7% 2 4294967277 0% /private/tmp
/dev/disk10 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk11 524k 303k 221k 58% 21 4294967258 0% /private/var/db
/dev/disk12 13M 2.6M 10M 21% 74 4294967205 0% /private/var/folders
/dev/disk13 4.2M 209k 4.0M 5% 20 4294967259 0% /private/var/root/Library
/dev/disk15 2.1M 143k 2.0M 7% 2 4294967277 0% /private/var/root/Library/Containers
/dev/disk16 524k 184k 340k 36% 12 4294967267 0% /Library/Preferences
/dev/disk17 524k 160k 365k 31% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk18 1.0M 193k 856k 19% 8 4294967271 0% /Library/Keychains
/dev/disk19 524k 143k 381k 28% 2 4294967277 0% /Library/Security/Trust Settings
/dev/disk20 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk21 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk22 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk23 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk2s1 251G 210G 39G 85% 833228 9223372036853942579 0% /Volumes/macbook air 13
/dev/disk5s1 2.0T 215G 1.8T 11% 837474 9223372036853938333 0% /Volumes/Clone
-bash-3.2#
Passe la commande :
Bloc de code:df -H
- (H majuscule) qui mesure l'occupation de tous les volumes montés
Poste le tableau obtenu => qu'on compare l'occupation de Clone à celle de sa source.
215 Go d'occupation de Clone contre 210 Go pour macbook air 13. La commande cp consomme toujours un peu plus de blocs pour l'écriture des fichiers sur la destination > en comparaison de la source. +5 Go seulement => Clone est un bon clone.
- on peut passer à la suite > qui consiste d'abord dans la suppression / recréation de l'apfs interne : d'accord ?
diskutil eraseDisk apfs "macbook air 13" gpt disk0
-bash-3.2# diskutil eraseDisk apfs "macbook air 13" gpt disk0
Started erase on disk0
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk0s2 as APFS with name macbook air 13
Mounting disk
Finished erase on disk0
-bash-3.2#