diskutil list
macbook-air-de-mathilde:~ mathilde$ 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 116.9 GB disk1s1
2: APFS Volume Preboot 45.8 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 *2.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Maxtor 1.8 TB disk2s2
3: Apple_APFS Container disk3 199.9 GB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +199.9 GB disk3
Physical Store disk2s3
1: APFS Volume Clone 40.6 GB disk3s1
2: APFS Volume PreBoot 45.1 MB disk3s2
3: APFS Volume Recovery 517.5 MB disk3s3
4: APFS Volume VM 1.1 GB disk3s4
macbook-air-de-mathilde:~ mathilde$
diskutil list
#: 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 116.1 GB disk1s1
2: APFS Volume Preboot 45.8 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 *2.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Maxtor 1.8 TB disk2s2
3: Apple_APFS Container disk3 199.9 GB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +199.9 GB disk3
Physical Store disk2s3
1: APFS Volume Clone 40.7 GB disk3s1
2: APFS Volume PreBoot 45.1 MB disk3s2
3: APFS Volume Recovery 517.5 MB disk3s3
4: APFS Volume VM 1.1 GB disk3s4
macbook-air-de-mathilde:~ mathilde$
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 : diskutil list
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 : diskutil list
macbook-air-de-mathilde:~ mathilde$ diskutil eraseDisk apfs "Macintosh HD" gpt disk0 : diskutil list
Unknown partition scheme: disk0
macbook-air-de-mathilde:~ mathilde$
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list
macbook-air-de-mathilde:~ mathilde$ diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list
Started erase on disk0
Unmounting disk
Error: -69888: Couldn't unmount disk
/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 116.3 GB disk1s1
2: APFS Volume Preboot 45.8 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 *2.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Maxtor 1.8 TB disk2s2
3: Apple_APFS Container disk3 199.9 GB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +199.9 GB disk3
Physical Store disk2s3
1: APFS Volume Clone 40.7 GB disk3s1
2: APFS Volume PreBoot 45.1 MB disk3s2
3: APFS Volume Recovery 517.5 MB disk3s3
4: APFS Volume VM 1.1 GB disk3s4
macbook-air-de-mathilde:~ mathilde$
macbook-air-de-mathilde:~ mathilde$
diskutil umount force disk1s1
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list
macbook-air-de-mathilde:~ mathilde$ diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list
Started erase on disk0
Unmounting disk
Creating the partition map
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 121.1 GB disk0s2
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Maxtor 1.8 TB disk2s2
3: Apple_APFS Container disk3 199.9 GB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +199.9 GB disk3
Physical Store disk2s3
1: APFS Volume Clone 40.8 GB disk3s1
2: APFS Volume PreBoot 45.1 MB disk3s2
3: APFS Volume Recovery 517.5 MB disk3s3
4: APFS Volume VM 1.1 GB disk3s4
macbook-air-de-mathilde:~ mathilde$
diskutil ap deleteContainer -force disk0s2 "Macintosh HD" ; diskutil list disk0
macbook-air-de-mathilde:~ mathilde$ diskutil ap deleteContainer -force disk0s2 "Macintosh HD" ; diskutil list disk0
Started APFS operation on disk0s2
Deleting APFS Container with all of its APFS Volumes
Operating in the contingency (damaged APFS Container) mode. Only the specified APFS Physical Store disk is guaranteed to be reclaimed. Other APFS Physical Stores which may have defined this APFS Container might need to be reclaimed separately
Deleting Container
Switching content types
Reformatting former APFS disk
Initialized /dev/rdisk0s2 as a 113 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished APFS operation on disk0s2
/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_HFS Macintosh HD 121.0 GB disk0s2
macbook-air-de-mathilde:~ mathilde$
diskutil ap convert disk0s2 ; diskutil list