diskutil eraseDisk apfs Clone gpt disk2 ; diskutil list external
pc10:~ ericthiebaut$ diskutil eraseDisk apfs Clone gpt disk2 ; diskutil list external
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s2 as APFS with name Clone
Mounting disk
Finished erase on disk2
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *120.0 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_APFS Container disk3 119.8 GB disk2s2
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +119.8 GB disk3
Physical Store disk2s2
1: APFS Volume Clone 798.7 KB disk3s1
pc10:~ ericthiebaut$
diskutil list
pc10:~ ericthiebaut$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 113.8 GB disk1s1
2: APFS Volume Preboot 46.3 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *120.0 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_APFS Container disk3 119.8 GB disk2s2
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +119.8 GB disk3
Physical Store disk2s2
1: APFS Volume Clone 57.4 GB disk3s1
2: APFS Volume PreBoot 43.8 MB disk3s2
3: APFS Volume Recovery 517.6 MB disk3s3
pc10:~ ericthiebaut$
diskutil list
pc10:~ ericthiebaut$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 113.8 GB disk1s1
2: APFS Volume Preboot 46.3 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *120.0 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_APFS Container disk3 119.8 GB disk2s2
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +119.8 GB disk3
Physical Store disk2s2
1: APFS Volume Clone 57.6 GB disk3s1
2: APFS Volume PreBoot 46.3 MB disk3s2
3: APFS Volume Recovery 517.6 MB disk3s3
4: APFS Volume VM 1.1 GB disk3s4
pc10:~ ericthiebaut$
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
pc10:~ ericthiebaut$ diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
Started erase on disk0
Unmounting disk
Error: -69877: Couldn't open device
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 113.8 GB disk1s1
2: APFS Volume Preboot 46.3 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
pc10:~ ericthiebaut$
diskutil ap deleteContainer disk1 "Macintosh HD"
pc10:~ ericthiebaut$ diskutil ap deleteContainer disk1 "Macintosh HD"
Started APFS operation on disk1
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Macintosh HD" on disk1s1
The volume "Macintosh HD" on disk1s1 couldn't be unmounted because it is in use by process 0 (kernel)
Error: -69888: Couldn't unmount disk
pc10:~ ericthiebaut$
diskutil info /
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
diskutil ap deleteContainer disk1 "Macintosh HD"
avec là encore sensiblement le même résultat que la première foisdiskutil umountDisk force disk0