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 disk3 250.8 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +1.8 GB disk1
1: Apple_APFS Container disk2 1.8 GB disk1s1
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +1.8 GB disk2
Physical Store disk1s1
1: APFS Volume macOS Base System 1.6 GB disk2s1
2: APFS Volume Preboot 77.2 MB disk2s2
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk3
Physical Store disk0s2
1: APFS Volume Macintosh HD - Donné... 141.3 GB disk3s1
2: APFS Volume Preboot 91.2 MB disk3s2
3: APFS Volume Recovery 1.1 GB disk3s3
4: APFS Volume VM 1.1 GB disk3s4
5: APFS Volume Macintosh HD - Données 41.0 KB disk3s5
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS My Book Studio 800.0 GB disk4s2
3: Apple_APFS Container disk5 199.7 GB disk4s3
/dev/disk5 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +199.7 GB disk5
Physical Store disk4s3
1: APFS Volume Clone - Données - Do... 147.7 GB disk5s1
2: APFS Volume Preboot 77.2 MB disk5s2
3: APFS Volume Recovery 610.4 MB disk5s3
4: APFS Volume VM 20.5 KB disk5s4
5: APFS Volume Clone - Données 12.7 GB disk5s5
-bash-3.2#
ls /Vol*/Clo*\Do*\Do*
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
-bash-3.2# diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
Started erase on disk0
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk0s2 as APFS with name Macintosh HD
Mounting disk
Finished erase on disk0
/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 disk3 250.8 GB disk0s2
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk3
Physical Store disk0s2
1: APFS Volume Macintosh HD 24.6 KB disk3s1
-bash-3.2#
ls /Vol*/Clo*\Do*\Do*/Users