diskutil eraseDisk apfs "Macintosh HD" gpt disk0
diskutil list
-bash-3.2# diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 121.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_HFS Macintosh HD 120.9 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS OS X Base System 2.0 GB disk1s1
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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 +2.1 MB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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 +6.3 MB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB 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 +1.0 MB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk17
hdiutil attach /Vol*/Mac*/Reco*
/Vol*/Reco/dmtest ensureRecoveryPartition /Vol*/Mac* /Vol*/Reco/BaseSystem.dmg 0 0 /Vol*/Reco/BaseSystem.chunklist
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbd11230=disk0s2 pole/pct=0/73.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7fdafbe09030=disk0s2 str=Copie de la liste de blocs de l’image système dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbc02330=disk0s2 pole/pct=0/74.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7fdafbd0fce0=disk0s2 str=Création du fichier plist de démarrage dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbe09030=disk0s2 pole/pct=0/75.279999
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbe035b0=disk0s2 pole/pct=0/81.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbe09030=disk0s2 pole/pct=0/87.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbe09030=disk0s2 pole/pct=0/95.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7fdafbf02620=disk0s2 str=Montage de la partition de secours dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7fdafbe0fa60=disk0s2 str=Validation du fichier de démarrage dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbe42c70=disk0s2 pole/pct=0/98.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7fdafbc02330=disk0s2 str=Marquage de la partition de secours dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7fdafbc02330=disk0s2 str=Détachement de l’image disque du système de base dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncProgressForDisk:barberPole:percent:]: del callback: DADR=0x7fdafbc02330=disk0s2 pole/pct=0/100.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncFinishedForDisk:mainError:detailError:dictionary:]: del callback: DADR=0x7fdafbe0fa60=disk0s2 errMain=0 errAux=0 infoDict={
RecoveryDonorPartitionBSD = disk0s2;
RecoveryPartitionBSD = disk0s3;
RecoveryPartitionDADiskRef = "<DADisk 0x7fdafbe430c0 [0x10b8f7da0]>{id = /dev/disk0s3}";
}
<--[Local dmAsyncFinishedForDisk:mainError:detailError:dictionary:]
Creating recovery partition: finished