M
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_HFS Macintosh HD 120.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/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 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *15.5 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS 15.2 GB disk2s2
diskutil eraseDisk jhfs+ CLE gpt disk2
-bash-3.2# diskutil eraseDisk jhfs+ CLE gpt disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk2s2 as Mac OS Extended (Journaled) with name CLE
Initialized /dev/rdisk2s2 as a 14 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished erase on disk2
-bash-3.2#
hdiutil attach /Vol*/Mac*/Reco*
/Vol*/Reco/dmtest ensureRecoveryPartition /Vol*/CLE /Vol*/Reco/BaseSystem.dmg 0 0 /Vol*/Reco/BaseSystem.chunklist
c8c090c0=disk2s2 pole/pct=0/98.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7faec8f00070=disk2s2 str=Marquage de la partition de secours dict=(null)
<--[Local dmAsyncMessageForDisk:string:dictionary:]
->-[Local dmAsyncMessageForDisk:string:dictionary:]: del callback: DADR=0x7faec8f00590=disk2s2 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=0x7faec8e007c0=disk2s2 pole/pct=0/100.000000
<--[Local dmAsyncProgressForDisk:barberPole:percent:]
->-[Local dmAsyncFinishedForDisk:mainError:detailError:dictionary:]: del callback: DADR=0x7faec8f00b40=disk2s2 errMain=0 errAux=0 infoDict={
RecoveryDonorPartitionBSD = disk2s2;
RecoveryPartitionBSD = disk2s3;
RecoveryPartitionDADiskRef = "<DADisk 0x7faec8f00d00 [0x10a9ed440]>{id = /dev/disk2s3}";
}
<--[Local dmAsyncFinishedForDisk:mainError:detailError:dictionary:]
Creating recovery partition: finished
-bash-3.2#